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.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Datum |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Trace |
| 3 | import OAI.NumberTheory.ArithmeticGroups.Algebraic |
| 4 | import Mathlib.LinearAlgebra.QuadraticForm.Basic |
| 5 | import Mathlib.LinearAlgebra.Dimension.Constructions |
| 6 | import Mathlib.LinearAlgebra.FiniteDimensional.Basic |
| 7 | import Mathlib.Tactic |
| 8 | |
| 9 | /-! # Degree Two Fixed Scalars -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! Supporting reduction for the degree-two exclusion. A CM field of |
| 16 | rational degree two has rational fixed scalars, so the negative diagonal |
| 17 | coefficient of the original datum is a negative rational. The isotropy |
| 18 | argument needed to exclude this case is not asserted here. -/ |
| 19 | |
| 20 | open _root_.NumberField ComplexEmbedding |
| 21 | |
| 22 | variable {E : Type*} [Field E] [NumberField E] [Algebra ℚ E] |
| 23 | [NumberField.IsCMField E] |
| 24 | |
| 25 | theorem DegreeTwoFixedScalars.cmRealSubfield_finrank_one_of_degree_two |
| 26 | (hdegree : Module.finrank ℚ E = 2) : |
| 27 | Module.finrank ℚ (maximalRealSubfield E) = 1 := by |
| 28 | have h := Module.finrank_mul_finrank ℚ (maximalRealSubfield E) E |
| 29 | rw [Algebra.IsQuadraticExtension.finrank_eq_two (maximalRealSubfield E) E, hdegree] at h |
| 30 | omega |
| 31 | |
| 32 | theorem DegreeTwoFixedScalars.cmFixedScalar_isRational_of_degree_two |
| 33 | (hdegree : Module.finrank ℚ E = 2) (b : E) |
| 34 | (hb : NumberField.IsCMField.complexConj E b = b) : |
| 35 | ∃ q : ℚ, algebraMap ℚ E q = b := by |
| 36 | let a : maximalRealSubfield E := |
| 37 | ⟨b, (NumberField.IsCMField.complexConj_eq_self_iff E b).mp hb⟩ |
| 38 | obtain ⟨q, hq⟩ := _root_.exists_smul_eq_of_finrank_eq_one |
| 39 | (DegreeTwoFixedScalars.cmRealSubfield_finrank_one_of_degree_two hdegree) |
| 40 | (one_ne_zero : (1 : maximalRealSubfield E) ≠ 0) a |
| 41 | rw [Algebra.smul_def, mul_one] at hq |
| 42 | refine ⟨q, ?_⟩ |
| 43 | calc |
| 44 | algebraMap ℚ E q = |
| 45 | algebraMap (maximalRealSubfield E) E |
| 46 | (algebraMap ℚ (maximalRealSubfield E) q) := |
| 47 | IsScalarTower.algebraMap_apply ℚ (maximalRealSubfield E) E q |
| 48 | _ = b := congrArg (algebraMap (maximalRealSubfield E) E) hq |
| 49 | |
| 50 | theorem DegreeTwoFixedScalars.cmNegativeFixedScalar_isNegativeRational_of_degree_two |
| 51 | (hdegree : Module.finrank ℚ E = 2) (b : E) |
| 52 | (hb : NumberField.IsCMField.complexConj E b = b) |
| 53 | (φ : E →+* ℂ) (hnegative : (φ b).re < 0) : |
| 54 | ∃ q : ℚ, q < 0 ∧ algebraMap ℚ E q = b := by |
| 55 | obtain ⟨q, hq⟩ := DegreeTwoFixedScalars.cmFixedScalar_isRational_of_degree_two hdegree b hb |
| 56 | have hqre : (q : ℝ) = (φ b).re := by |
| 57 | rw [← hq] |
| 58 | simp |
| 59 | have hqnegative : (q : ℝ) < 0 := hqre.trans_lt hnegative |
| 60 | refine ⟨q, ?_, hq⟩ |
| 61 | exact_mod_cast hqnegative |
| 62 | |
| 63 | theorem Datum.RankThreePELDatum.rational_negative_b_of_degree_two |
| 64 | {s : ℕ} (P : Datum.RankThreePELDatum E s) (hP : P.IsAdmissible) |
| 65 | (hdegree : Module.finrank ℚ E = 2) : |
| 66 | ∃ q : ℚ, q < 0 ∧ algebraMap ℚ E q = P.b := |
| 67 | DegreeTwoFixedScalars.cmNegativeFixedScalar_isNegativeRational_of_degree_two hdegree P.b hP.2.1 |
| 68 | P.μ hP.2.2.2.1 |
| 69 | |
| 70 | /-- On the fixed field in rational degree two, rational trace has no |
| 71 | nonzero kernel. This is a scalar statement, not an isotropy theorem. -/ |
| 72 | theorem DegreeTwoFixedScalars.cmFixedScalar_trace_zero_iff_of_degree_two |
| 73 | (hdegree : Module.finrank ℚ E = 2) (b : E) |
| 74 | (hb : NumberField.IsCMField.complexConj E b = b) : |
| 75 | Algebra.trace ℚ E b = 0 ↔ b = 0 := by |
| 76 | obtain ⟨q, rfl⟩ := DegreeTwoFixedScalars.cmFixedScalar_isRational_of_degree_two hdegree b hb |
| 77 | constructor |
| 78 | · intro ht |
| 79 | have hmul : (2 : ℚ) * q = 0 := by |
| 80 | have htrace := Algebra.trace_algebraMap (R := ℚ) (S := E) q |
| 81 | have hn : Module.finrank ℚ E • q = 0 := htrace.symm.trans ht |
| 82 | simpa only [hdegree, nsmul_eq_mul, Nat.cast_ofNat] using hn |
| 83 | have hq : q = 0 := (mul_eq_zero.mp hmul).resolve_left (by norm_num) |
| 84 | rw [hq, map_zero] |
| 85 | · intro hz |
| 86 | rw [hz, map_zero] |
| 87 | |
| 88 | theorem DegreeTwoFixedScalars.cmDegreeTwo_hermitian_trace_zero_iff |
| 89 | (hdegree : Module.finrank ℚ E = 2) (b : E) |
| 90 | (hb : NumberField.IsCMField.complexConj E b = b) (v : NumberTheory.ArithmeticGroups.Data.CongruenceLevel.VE E) : |
| 91 | Algebra.trace ℚ E (NumberTheory.ArithmeticGroups.Data.CongruenceLevel.hermitian b v v) = 0 ↔ NumberTheory.ArithmeticGroups.Data.CongruenceLevel.hermitian b v v = 0 := |
| 92 | DegreeTwoFixedScalars.cmFixedScalar_trace_zero_iff_of_degree_two hdegree (NumberTheory.ArithmeticGroups.Data.CongruenceLevel.hermitian b v v) |
| 93 | (NumberTheory.ArithmeticGroups.Trace.CongruenceLevel.hermitian_conjugate b hb v v) |
| 94 | |
| 95 | /-- The admissibility hypothesis gives anisotropy of the actual rational |
| 96 | trace form in degree two. Proving that an indefinite rational form of |
| 97 | this dimension is isotropic remains a separate mathematical obligation. -/ |
| 98 | theorem Datum.RankThreePELDatum.trace_hermitian_zero_iff_of_degree_two |
| 99 | {s : ℕ} (P : Datum.RankThreePELDatum E s) (hP : P.IsAdmissible) |
| 100 | (hdegree : Module.finrank ℚ E = 2) (v : NumberTheory.ArithmeticGroups.Data.CongruenceLevel.VE E) : |
| 101 | Algebra.trace ℚ E (NumberTheory.ArithmeticGroups.Data.CongruenceLevel.hermitian P.b v v) = 0 ↔ v = 0 := by |
| 102 | constructor |
| 103 | · intro ht |
| 104 | exact hP.2.2.2.2.2.1 v |
| 105 | ((DegreeTwoFixedScalars.cmDegreeTwo_hermitian_trace_zero_iff hdegree P.b hP.2.1 v).mp ht) |
| 106 | · intro hv |
| 107 | subst v |
| 108 | simp [NumberTheory.ArithmeticGroups.Data.CongruenceLevel.hermitian] |
| 109 | |
| 110 | /-- The actual rational trace of the original diagonal Hermitian form, |
| 111 | using the existing native bilinear trace construction. -/ |
| 112 | def DegreeTwoFixedScalars.cmHermitianTraceQuadraticForm (b : E) : QuadraticForm ℚ (NumberTheory.ArithmeticGroups.Data.CongruenceLevel.VE E) := |
| 113 | (NumberTheory.ArithmeticGroups.Algebraic.CongruenceLevel.traceBilinear b 1).toQuadraticMap |
| 114 | |
| 115 | @[simp] theorem DegreeTwoFixedScalars.cmHermitianTraceQuadraticForm_apply (b : E) (v : NumberTheory.ArithmeticGroups.Data.CongruenceLevel.VE E) : |
| 116 | DegreeTwoFixedScalars.cmHermitianTraceQuadraticForm b v = Algebra.trace ℚ E (NumberTheory.ArithmeticGroups.Data.CongruenceLevel.hermitian b v v) := by |
| 117 | rw [DegreeTwoFixedScalars.cmHermitianTraceQuadraticForm, LinearMap.BilinMap.toQuadraticMap_apply, |
| 118 | NumberTheory.ArithmeticGroups.Algebraic.CongruenceLevel.traceBilinear_apply, NumberTheory.ArithmeticGroups.Trace.CongruenceLevel.rationalTrace, one_mul] |
| 119 | |
| 120 | theorem DegreeTwoFixedScalars.cmHermitianTraceQuadraticForm_axis (b : E) (i : Fin 3) : |
| 121 | DegreeTwoFixedScalars.cmHermitianTraceQuadraticForm b (Pi.single i 1) = |
| 122 | Algebra.trace ℚ E (if i = 2 then b else 1) := by |
| 123 | rw [DegreeTwoFixedScalars.cmHermitianTraceQuadraticForm_apply, NumberTheory.ArithmeticGroups.Trace.CongruenceLevel.hermitian_axis, |
| 124 | Pi.single_eq_same, mul_one] |
| 125 | |
| 126 | omit [NumberField.IsCMField E] in |
| 127 | theorem DegreeTwoFixedScalars.cmDegreeTwo_vector_finrank (hdegree : Module.finrank ℚ E = 2) : |
| 128 | Module.finrank ℚ (NumberTheory.ArithmeticGroups.Data.CongruenceLevel.VE E) = 6 := by |
| 129 | change Module.finrank ℚ (Fin 3 → E) = 6 |
| 130 | rw [Module.finrank_pi_fintype] |
| 131 | norm_num [hdegree] |
| 132 | |
| 133 | theorem Datum.RankThreePELDatum.traceQuadraticForm_anisotropic_of_degree_two |
| 134 | {s : ℕ} (P : Datum.RankThreePELDatum E s) (hP : P.IsAdmissible) |
| 135 | (hdegree : Module.finrank ℚ E = 2) : |
| 136 | (DegreeTwoFixedScalars.cmHermitianTraceQuadraticForm P.b).Anisotropic := by |
| 137 | intro v hv |
| 138 | apply (P.trace_hermitian_zero_iff_of_degree_two hP hdegree v).mp |
| 139 | simpa only [DegreeTwoFixedScalars.cmHermitianTraceQuadraticForm_apply] using hv |
| 140 | |
| 141 | theorem Datum.RankThreePELDatum.traceQuadraticForm_has_both_signs_of_degree_two |
| 142 | {s : ℕ} (P : Datum.RankThreePELDatum E s) (hP : P.IsAdmissible) |
| 143 | (hdegree : Module.finrank ℚ E = 2) : |
| 144 | ∃ u v : NumberTheory.ArithmeticGroups.Data.CongruenceLevel.VE E, |
| 145 | 0 < DegreeTwoFixedScalars.cmHermitianTraceQuadraticForm P.b u ∧ |
| 146 | DegreeTwoFixedScalars.cmHermitianTraceQuadraticForm P.b v < 0 := by |
| 147 | obtain ⟨q, hqnegative, hq⟩ := P.rational_negative_b_of_degree_two hP hdegree |
| 148 | have htrace : Algebra.trace ℚ E (1 : E) = 2 := by |
| 149 | simpa [hdegree] using (Algebra.trace_algebraMap (R := ℚ) (S := E) (1 : ℚ)) |
| 150 | have hzero : DegreeTwoFixedScalars.cmHermitianTraceQuadraticForm P.b (Pi.single (0 : Fin 3) 1) = 2 := by |
| 151 | rw [DegreeTwoFixedScalars.cmHermitianTraceQuadraticForm_axis] |
| 152 | simpa using htrace |
| 153 | have htwo : DegreeTwoFixedScalars.cmHermitianTraceQuadraticForm P.b (Pi.single (2 : Fin 3) 1) = |
| 154 | (2 : ℚ) * q := by |
| 155 | rw [DegreeTwoFixedScalars.cmHermitianTraceQuadraticForm_axis, ite_eq_left rfl, ← hq, |
| 156 | Algebra.trace_algebraMap, hdegree] |
| 157 | simp [nsmul_eq_mul] |
| 158 | refine ⟨Pi.single (0 : Fin 3) 1, Pi.single (2 : Fin 3) 1, ?_, ?_⟩ |
| 159 | · rw [hzero] |
| 160 | norm_num |
| 161 | · rw [htwo] |
| 162 | exact mul_neg_of_pos_of_neg (by norm_num) hqnegative |
| 163 | |
| 164 | /-- The explicit obstruction to degree-two admissibility. Closing the |
| 165 | exclusion requires proving the general rational isotropy theorem; that |
| 166 | theorem is neither assumed nor introduced as an axiom here. -/ |
| 167 | theorem Datum.RankThreePELDatum.degreeTwo_rationalQuadratic_obstruction |
| 168 | {s : ℕ} (P : Datum.RankThreePELDatum E s) (hP : P.IsAdmissible) |
| 169 | (hdegree : Module.finrank ℚ E = 2) : |
| 170 | ∃ Q : QuadraticForm ℚ (NumberTheory.ArithmeticGroups.Data.CongruenceLevel.VE E), Q.Anisotropic ∧ |
| 171 | Module.finrank ℚ (NumberTheory.ArithmeticGroups.Data.CongruenceLevel.VE E) = 6 ∧ |
| 172 | ∃ u v : NumberTheory.ArithmeticGroups.Data.CongruenceLevel.VE E, 0 < Q u ∧ Q v < 0 := |
| 173 | ⟨DegreeTwoFixedScalars.cmHermitianTraceQuadraticForm P.b, |
| 174 | P.traceQuadraticForm_anisotropic_of_degree_two hP hdegree, |
| 175 | DegreeTwoFixedScalars.cmDegreeTwo_vector_finrank hdegree, |
| 176 | P.traceQuadraticForm_has_both_signs_of_degree_two hP hdegree⟩ |
| 177 | |
| 178 | end |
| 179 | |
| 180 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily |