Formalized functional analysis with semilinear maps
Linear and conjugate-linear maps are treated as separate concepts in formalized mathematics, despite being instances of a common generalization. This separation causes duplication when proving theorems that hold generically over real and complex Hilbert spaces.
Semilinear maps, which generalize linear maps by twisting the scalar action with a ring homomorphism, are implemented in Lean's mathlib library. This unifies linear and conjugate-linear maps under a single framework, enabling generic proofs over both real and complex settings.
Key results formalized include the Frechet-Riesz representation theorem and the spectral theorem for compact self-adjoint operators, proved generically over real and complex Hilbert spaces. A case of a theorem by Dieudonne and Manin on isocrystals is also formalized.
