Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.RepresentationTheory.Theta.Adelic.QuadraticNormCharacter |
| 2 | import Mathlib.Analysis.Normed.Unbundled.SpectralNorm |
| 3 | import Mathlib.Algebra.QuadraticAlgebra.NormDeterminant |
| 4 | |
| 5 | /-! # Quadratic Local Field -/ |
| 6 | |
| 7 | namespace OAI.RepresentationTheory.Theta.Adelic.QuadraticLocalField |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! An actual normed-field realization of a nonsplit quadratic algebra. |
| 12 | The spectral norm is used on a type copy; its topology is compared with |
| 13 | the existing coefficient topology rather than replacing that topology. -/ |
| 14 | |
| 15 | open scoped Classical |
| 16 | |
| 17 | def FieldModel (k : Type) [Field k] (d : k) (_hns : ¬ IsSquare d) : Type := Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d |
| 18 | |
| 19 | section Algebra |
| 20 | variable (k : Type) [Field k] (d : k) (hns : ¬ IsSquare d) |
| 21 | |
| 22 | instance modelField : Field (FieldModel k d hns) := by |
| 23 | let : Fact (∀ r : k, r ^ 2 ≠ d + 0 * r) := ⟨by |
| 24 | intro r hr |
| 25 | apply hns |
| 26 | exact ⟨r, by simpa only [zero_mul, add_zero, pow_two] using hr.symm⟩⟩ |
| 27 | exact inferInstanceAs (Field (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d)) |
| 28 | |
| 29 | instance modelAlgebra : Algebra k (FieldModel k d hns) := |
| 30 | inferInstanceAs (Algebra k (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d)) |
| 31 | |
| 32 | def algebraEquiv : FieldModel k d hns ≃ₐ[k] Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d := AlgEquiv.refl |
| 33 | |
| 34 | instance modelFinite : FiniteDimensional k (FieldModel k d hns) := |
| 35 | inferInstanceAs (FiniteDimensional k (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d)) |
| 36 | |
| 37 | theorem model_finrank : Module.finrank k (FieldModel k d hns) = 2 := |
| 38 | QuadraticAlgebra.finrank_eq_two d 0 |
| 39 | |
| 40 | def modelBasis : Module.Basis (Fin 2) k (FieldModel k d hns) := |
| 41 | (QuadraticAlgebra.basis d 0).map (algebraEquiv k d hns).symm.toLinearEquiv |
| 42 | |
| 43 | def quadraticConjugation : Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d ≃ₐ[k] Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d where |
| 44 | __ := (starRingAut : Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d ≃+* Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d) |
| 45 | commutes' a := by |
| 46 | change star (algebraMap k (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d) a) = algebraMap k (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d) a |
| 47 | ext <;> simp |
| 48 | |
| 49 | def conjugation : FieldModel k d hns ≃ₐ[k] FieldModel k d hns := |
| 50 | (algebraEquiv k d hns).trans ((quadraticConjugation k d).trans (algebraEquiv k d hns).symm) |
| 51 | |
| 52 | theorem conjugation_nontrivial [CharZero k] : |
| 53 | ∃ x : FieldModel k d hns, conjugation k d hns x ≠ x := by |
| 54 | refine ⟨(algebraEquiv k d hns).symm ⟨0, 1⟩, ?_⟩ |
| 55 | intro h |
| 56 | have hi := congrArg (fun x => ((algebraEquiv k d hns) x).im) h |
| 57 | change -(1 : k) = 1 at hi |
| 58 | norm_num at hi |
| 59 | |
| 60 | theorem model_norm (x : FieldModel k d hns) : |
| 61 | Algebra.norm k x = QuadraticAlgebra.norm (algebraEquiv k d hns x) := by |
| 62 | rw [← Algebra.norm_eq_of_algEquiv (algebraEquiv k d hns)] |
| 63 | exact QuadraticAlgebra.det_toLinearMap_eq_norm _ |
| 64 | |
| 65 | end Algebra |
| 66 | |
| 67 | variable (k : Type) [NontriviallyNormedField k] [CompleteSpace k] [IsUltrametricDist k] |
| 68 | variable (d : k) (hns : ¬ IsSquare d) |
| 69 | |
| 70 | instance modelNormedField : NontriviallyNormedField (FieldModel k d hns) := |
| 71 | spectralNorm.nontriviallyNormedField k (FieldModel k d hns) |
| 72 | |
| 73 | instance modelNormedAlgebra : NormedAlgebra k (FieldModel k d hns) := |
| 74 | spectralNorm.normedAlgebra k (FieldModel k d hns) |
| 75 | |
| 76 | instance modelComplete : CompleteSpace (FieldModel k d hns) := |
| 77 | FiniteDimensional.complete k (FieldModel k d hns) |
| 78 | |
| 79 | def coordinates : FieldModel k d hns ≃L[k] (Fin 2 → k) := |
| 80 | (modelBasis k d hns).equivFun.toContinuousLinearEquiv |
| 81 | |
| 82 | theorem coordinates_apply (x : FieldModel k d hns) : |
| 83 | coordinates k d hns x = ![(algebraEquiv k d hns x).re, (algebraEquiv k d hns x).im] := rfl |
| 84 | |
| 85 | instance modelLocallyCompact [LocallyCompactSpace k] : LocallyCompactSpace (FieldModel k d hns) := |
| 86 | (coordinates k d hns).toHomeomorph.isClosedEmbedding.locallyCompactSpace |
| 87 | |
| 88 | instance modelMeasurable : MeasurableSpace (FieldModel k d hns) := borel _ |
| 89 | instance modelBorel : BorelSpace (FieldModel k d hns) := ⟨rfl⟩ |
| 90 | |
| 91 | theorem model_nondiscrete : ¬ DiscreteTopology (FieldModel k d hns) := by |
| 92 | intro h |
| 93 | let : DiscreteTopology (FieldModel k d hns) := h |
| 94 | exact not_isOpen_singleton (0 : FieldModel k d hns) (isOpen_discrete _) |
| 95 | |
| 96 | def coefficientHomeomorph : FieldModel k d hns ≃ₜ Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d where |
| 97 | toEquiv := (algebraEquiv k d hns).toEquiv |
| 98 | continuous_toFun := by |
| 99 | rw [Weil.AdelicSplitting.QuadraticTopology.Construction.quadratic_continuous_iff] |
| 100 | exact ⟨(continuous_apply 0).comp (coordinates k d hns).continuous, |
| 101 | (continuous_apply 1).comp (coordinates k d hns).continuous⟩ |
| 102 | continuous_invFun := by |
| 103 | have hc : Continuous (fun x : Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d => ![x.re, x.im]) := by |
| 104 | apply continuous_pi |
| 105 | intro i |
| 106 | fin_cases i |
| 107 | · exact Weil.AdelicSplitting.QuadraticTopology.Construction.quadratic_continuous_re d |
| 108 | · exact Weil.AdelicSplitting.QuadraticTopology.Construction.quadratic_continuous_im d |
| 109 | have he : (fun x : Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d => (algebraEquiv k d hns).symm x) = |
| 110 | (fun x => (coordinates k d hns).symm ![x.re, x.im]) := by |
| 111 | funext x |
| 112 | apply (coordinates k d hns).injective |
| 113 | rw [ContinuousLinearEquiv.apply_symm_apply, coordinates_apply, AlgEquiv.apply_symm_apply] |
| 114 | change Continuous (fun x : Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d => (algebraEquiv k d hns).symm x) |
| 115 | rw [he] |
| 116 | exact (coordinates k d hns).symm.continuous.comp hc |
| 117 | |
| 118 | end |
| 119 | |
| 120 | end OAI.RepresentationTheory.Theta.Adelic.QuadraticLocalField |