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.Picard.ThetaConstruction.PolarizationFactor |
| 2 | import OAI.RepresentationTheory.Theta.Geometric.IntegralDualLattice |
| 3 | import Mathlib.LinearAlgebra.FreeModule.Finite.Quotient |
| 4 | import OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion |
| 5 | |
| 6 | /-! # Integral Dual Le -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Picard.ThetaConstruction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! The imaginary part of the actual ThetaConstruction Riemann form gives a |
| 15 | nondegenerate real pairing. Its integral dual is a constructed full |
| 16 | discrete lattice, canonically identified with the integer dual. -/ |
| 17 | |
| 18 | section |
| 19 | open OAI.AlgebraicGeometry.Picard.ThetaConstruction.PolarizationFactor.Geometric |
| 20 | |
| 21 | variable {g : ℕ} {E : DefinitionsIntegral.IntegralMatrix g} (T : DefinitionsIntegral.MarkedPolarizedTorus g E) |
| 22 | |
| 23 | def DefinitionsIntegral.MarkedPolarizedTorus.imaginaryForm : LinearMap.BilinForm ℝ (DefinitionsIntegral.Tangent g) where |
| 24 | toFun u := Complex.imCLM.toLinearMap.comp ((T.riemannForm u).restrictScalars ℝ) |
| 25 | map_add' u v := by |
| 26 | apply LinearMap.ext |
| 27 | intro w |
| 28 | change (T.riemannForm (u + v) w).im = (T.riemannForm u w).im + (T.riemannForm v w).im |
| 29 | rw [map_add, LinearMap.add_apply, Complex.add_im] |
| 30 | map_smul' r u := by |
| 31 | apply LinearMap.ext |
| 32 | intro v |
| 33 | change (T.riemannForm (r • u) v).im = r * (T.riemannForm u v).im |
| 34 | have hr : r • u = (r : ℂ) • u := (IsScalarTower.algebraMap_smul ℂ r u).symm |
| 35 | rw [hr, map_smulₛₗ, LinearMap.smul_apply] |
| 36 | simp |
| 37 | |
| 38 | theorem DefinitionsIntegral.MarkedPolarizedTorus.imaginaryForm_skew (u v : DefinitionsIntegral.Tangent g) : T.imaginaryForm v u = -T.imaginaryForm u v := by |
| 39 | change (T.riemannForm v u).im = -(T.riemannForm u v).im |
| 40 | rw [T.hermitian] |
| 41 | rfl |
| 42 | |
| 43 | theorem DefinitionsIntegral.MarkedPolarizedTorus.imaginaryForm_nondegenerate : T.imaginaryForm.Nondegenerate := by |
| 44 | have hleft : T.imaginaryForm.SeparatingLeft := by |
| 45 | intro u hu |
| 46 | by_contra hne |
| 47 | have hz := hu (Complex.I • u) |
| 48 | have hpos := T.positive u hne |
| 49 | change (T.riemannForm u (Complex.I • u)).im = 0 at hz |
| 50 | rw [map_smul] at hz |
| 51 | simp only [smul_eq_mul, Complex.mul_im, Complex.I_re, Complex.I_im, |
| 52 | zero_mul, one_mul, zero_add] at hz |
| 53 | exact (ne_of_gt hpos) hz |
| 54 | refine ⟨hleft, ?_⟩ |
| 55 | intro u hu |
| 56 | apply hleft u |
| 57 | intro v |
| 58 | rw [T.imaginaryForm_skew v u, hu v, neg_zero] |
| 59 | |
| 60 | def DefinitionsIntegral.MarkedPolarizedTorus.integralDualLattice : Submodule ℤ (DefinitionsIntegral.Tangent g) := |
| 61 | T.imaginaryForm.dualSubmodule (ProjectivePeriodData.Geometric.projectivePeriodData T).periodIntegerLattice |
| 62 | |
| 63 | instance DefinitionsIntegral.MarkedPolarizedTorus.integralDualLattice_discrete : DiscreteTopology T.integralDualLattice := |
| 64 | RepresentationTheory.Theta.Geometric.IntegralDualLattice.dualLattice_discrete (ProjectivePeriodData.Geometric.projectivePeriodData T).periodIntegerLattice |
| 65 | (DefinitionsIntegral.Geometric.integralLatticeBasis T) T.imaginaryForm T.imaginaryForm_nondegenerate |
| 66 | |
| 67 | instance DefinitionsIntegral.MarkedPolarizedTorus.integralDualLattice_full : IsZLattice ℝ T.integralDualLattice := |
| 68 | RepresentationTheory.Theta.Geometric.IntegralDualLattice.dualLattice_full (ProjectivePeriodData.Geometric.projectivePeriodData T).periodIntegerLattice |
| 69 | (DefinitionsIntegral.Geometric.integralLatticeBasis T) T.imaginaryForm T.imaginaryForm_nondegenerate |
| 70 | |
| 71 | def DefinitionsIntegral.MarkedPolarizedTorus.integralDualEquiv : T.integralDualLattice ≃ₗ[ℤ] |
| 72 | ((ProjectivePeriodData.Geometric.projectivePeriodData T).periodIntegerLattice →ₗ[ℤ] ℤ) := |
| 73 | RepresentationTheory.Theta.Geometric.IntegralDualLattice.integralDualLatticeEquiv (ProjectivePeriodData.Geometric.projectivePeriodData T).periodIntegerLattice |
| 74 | (DefinitionsIntegral.Geometric.integralLatticeBasis T) T.imaginaryForm T.imaginaryForm_nondegenerate |
| 75 | |
| 76 | theorem DefinitionsIntegral.MarkedPolarizedTorus.lattice_le_integralDual : (ProjectivePeriodData.Geometric.projectivePeriodData T).periodIntegerLattice ≤ T.integralDualLattice := by |
| 77 | intro u hu v hv |
| 78 | exact Submodule.mem_one.mpr ⟨DefinitionsIntegral.Geometric.integralLatticeForm T ⟨u, hu⟩ ⟨v, hv⟩, |
| 79 | (DefinitionsIntegral.Geometric.integralLatticeForm_riemann T ⟨u, hu⟩ ⟨v, hv⟩).symm⟩ |
| 80 | |
| 81 | def DefinitionsIntegral.MarkedPolarizedTorus.integralDualInclusion : (ProjectivePeriodData.Geometric.projectivePeriodData T).periodIntegerLattice →ₗ[ℤ] T.integralDualLattice := |
| 82 | Submodule.inclusion T.lattice_le_integralDual |
| 83 | |
| 84 | theorem DefinitionsIntegral.MarkedPolarizedTorus.integralDualEquiv_inclusion (u v : (ProjectivePeriodData.Geometric.projectivePeriodData T).periodIntegerLattice) : |
| 85 | T.integralDualEquiv (T.integralDualInclusion u) v = DefinitionsIntegral.Geometric.integralLatticeForm T u v := by |
| 86 | apply Int.cast_injective (α := ℝ) |
| 87 | exact (T.imaginaryForm.dualSubmoduleParing_spec (T.integralDualInclusion u) v).trans |
| 88 | (DefinitionsIntegral.Geometric.integralLatticeForm_riemann T u v) |
| 89 | |
| 90 | end |
| 91 | |
| 92 | namespace IntegralDualLe.Geometric.MarkedPolarizedTorus |
| 93 | |
| 94 | end IntegralDualLe.Geometric.MarkedPolarizedTorus |
| 95 | |
| 96 | end |
| 97 | |
| 98 | section |
| 99 | |
| 100 | /-! The original lattice has finite index in its integral dual. |
| 101 | The finite discriminant group supplies an actual positive common |
| 102 | denominator, without assuming a polarization type or dual variety. -/ |
| 103 | |
| 104 | section |
| 105 | open OAI.AlgebraicGeometry.Picard.ThetaConstruction.PolarizationFactor.Geometric |
| 106 | |
| 107 | variable {g : ℕ} {E : DefinitionsIntegral.IntegralMatrix g} (T : DefinitionsIntegral.MarkedPolarizedTorus g E) |
| 108 | |
| 109 | theorem DefinitionsIntegral.MarkedPolarizedTorus.integralDualInclusion_injective : Function.Injective T.integralDualInclusion := by |
| 110 | intro u v h |
| 111 | apply Subtype.ext |
| 112 | exact congrArg (fun w : T.integralDualLattice => w.val) h |
| 113 | |
| 114 | instance DefinitionsIntegral.MarkedPolarizedTorus.integralDualDiscriminant_finite : Finite (T.integralDualLattice ⧸ T.integralDualInclusion.range) := by |
| 115 | let : Module.Free ℤ T.integralDualLattice := ZLattice.module_free ℝ T.integralDualLattice |
| 116 | let : Module.Finite ℤ T.integralDualLattice := ZLattice.module_finite ℝ T.integralDualLattice |
| 117 | apply Submodule.finiteQuotientOfFreeOfRankEq |
| 118 | rw [LinearMap.finrank_range_of_inj T.integralDualInclusion_injective, |
| 119 | ZLattice.rank ℝ (ProjectivePeriodData.Geometric.projectivePeriodData T).periodIntegerLattice, |
| 120 | ZLattice.rank ℝ T.integralDualLattice] |
| 121 | rfl |
| 122 | |
| 123 | def DefinitionsIntegral.MarkedPolarizedTorus.integralDualDiscriminantEquiv : |
| 124 | (T.integralDualLattice ⧸ T.integralDualInclusion.range) ≃ₗ[ℤ] |
| 125 | (((ProjectivePeriodData.Geometric.projectivePeriodData T).periodIntegerLattice →ₗ[ℤ] ℤ) ⧸ (DefinitionsIntegral.Geometric.integralLatticeForm T).range) := |
| 126 | Submodule.Quotient.equiv _ _ T.integralDualEquiv (by |
| 127 | let φ : (ProjectivePeriodData.Geometric.projectivePeriodData T).periodIntegerLattice →ₗ[ℤ] |
| 128 | ((ProjectivePeriodData.Geometric.projectivePeriodData T).periodIntegerLattice →ₗ[ℤ] ℤ) := DefinitionsIntegral.Geometric.integralLatticeForm T |
| 129 | have hcomp : T.integralDualEquiv.toLinearMap.comp T.integralDualInclusion = φ := by |
| 130 | apply LinearMap.ext |
| 131 | intro u |
| 132 | apply LinearMap.ext |
| 133 | intro v |
| 134 | exact T.integralDualEquiv_inclusion u v |
| 135 | exact (LinearMap.range_comp T.integralDualInclusion T.integralDualEquiv.toLinearMap).symm.trans |
| 136 | (congrArg LinearMap.range hcomp)) |
| 137 | |
| 138 | theorem DefinitionsIntegral.MarkedPolarizedTorus.integralDual_bounded_denominator : |
| 139 | ∃ n : ℕ, 0 < n ∧ ∀ v : T.integralDualLattice, |
| 140 | n • v.val ∈ (ProjectivePeriodData.Geometric.projectivePeriodData T).periodIntegerLattice := by |
| 141 | let Q := T.integralDualLattice ⧸ T.integralDualInclusion.range |
| 142 | refine ⟨Nat.card Q, Nat.card_pos, ?_⟩ |
| 143 | intro v |
| 144 | have hz : (Submodule.Quotient.mk (Nat.card Q • v) : Q) = 0 := by |
| 145 | rw [Submodule.Quotient.mk_smul] |
| 146 | exact card_nsmul_eq_zero' |
| 147 | obtain ⟨u, hu⟩ := (Submodule.Quotient.mk_eq_zero _).mp hz |
| 148 | have h := congrArg Subtype.val hu |
| 149 | change u.val = Nat.card Q • v.val at h |
| 150 | exact h ▸ u.property |
| 151 | |
| 152 | end |
| 153 | |
| 154 | namespace IntegralDualLe.Geometric.MarkedPolarizedTorus |
| 155 | |
| 156 | end IntegralDualLe.Geometric.MarkedPolarizedTorus |
| 157 | |
| 158 | end |
| 159 | |
| 160 | /-! The actual integral dual lattice forms a projective complex torus. |
| 161 | A positive common denominator makes the original Hermitian form integral |
| 162 | on the dual lattice and constructs its projective period data. -/ |
| 163 | |
| 164 | section |
| 165 | open OAI.AlgebraicGeometry.Picard.ThetaConstruction.PolarizationFactor.Geometric |
| 166 | |
| 167 | variable {g : ℕ} {E : DefinitionsIntegral.IntegralMatrix g} (T : DefinitionsIntegral.MarkedPolarizedTorus g E) |
| 168 | |
| 169 | theorem DefinitionsIntegral.MarkedPolarizedTorus.integralDual_positive_integral : |
| 170 | ∃ H : DefinitionsIntegral.Tangent g →ₗ⋆[ℂ] DefinitionsIntegral.Tangent g →ₗ[ℂ] ℂ, |
| 171 | (∀ u v, H v u = star (H u v)) ∧ |
| 172 | (∀ u, u ≠ 0 → 0 < (H u u).re) ∧ |
| 173 | (∀ u ∈ T.integralDualLattice, ∀ v ∈ T.integralDualLattice, |
| 174 | ∃ m : ℤ, (H u v).im = (m : ℝ)) := by |
| 175 | obtain ⟨n, hn, hL⟩ := T.integralDual_bounded_denominator |
| 176 | refine ⟨(n * n) • T.riemannForm, ?_, ?_, ?_⟩ |
| 177 | · intro u v |
| 178 | change (n * n) • T.riemannForm v u = star ((n * n) • T.riemannForm u v) |
| 179 | rw [T.hermitian, star_nsmul] |
| 180 | · intro u hu |
| 181 | change (((n * n) • T.riemannForm u u) : ℂ).re > 0 |
| 182 | rw [Complex.re_nsmul, nsmul_eq_mul] |
| 183 | exact mul_pos (Nat.cast_pos.mpr (Nat.mul_pos hn hn)) (T.positive u hu) |
| 184 | · intro u hu v hv |
| 185 | let a : T.lattice := ⟨n • u, hL ⟨u, hu⟩⟩ |
| 186 | let b : T.lattice := ⟨n • v, hL ⟨v, hv⟩⟩ |
| 187 | have he := DefinitionsIntegral.Geometric.integralLatticeForm_riemann T a b |
| 188 | refine ⟨DefinitionsIntegral.Geometric.integralLatticeForm T a b, ?_⟩ |
| 189 | have hscale : T.riemannForm (n • u) (n • v) = (n * n) • T.riemannForm u v := by |
| 190 | have hfirst := congrArg (fun l : DefinitionsIntegral.Tangent g →ₗ[ℂ] ℂ => l (n • v)) |
| 191 | (map_nsmul T.riemannForm.toAddMonoidHom n u) |
| 192 | have hsecond := map_nsmul (T.riemannForm u).toAddMonoidHom n v |
| 193 | exact hfirst.trans ((congrArg (fun w : ℂ => n • w) hsecond).trans (smul_smul n n _)) |
| 194 | exact (congrArg Complex.im hscale).symm.trans he |
| 195 | |
| 196 | instance DefinitionsIntegral.MarkedPolarizedTorus.integralDualTorus_compact : CompactSpace ((DefinitionsIntegral.Tangent g) ⧸ T.integralDualLattice.toAddSubgroup) := by |
| 197 | apply isCompact_univ_iff.mp |
| 198 | have hc := IsZLattice.isCompact_range_of_periodic T.integralDualLattice |
| 199 | (QuotientAddGroup.mk : DefinitionsIntegral.Tangent g → (DefinitionsIntegral.Tangent g) ⧸ T.integralDualLattice.toAddSubgroup) |
| 200 | QuotientAddGroup.continuous_mk (by |
| 201 | intro u v hv |
| 202 | rw [QuotientAddGroup.mk_add, (QuotientAddGroup.eq_zero_iff v).mpr hv, add_zero]) |
| 203 | rwa [Set.range_eq_univ.mpr QuotientAddGroup.mk_surjective] at hc |
| 204 | |
| 205 | local instance DefinitionsIntegral.MarkedPolarizedTorus.integralDual_addSubgroup_discrete : DiscreteTopology T.integralDualLattice.toAddSubgroup := |
| 206 | T.integralDualLattice_discrete |
| 207 | |
| 208 | def DefinitionsIntegral.MarkedPolarizedTorus.integralDualPeriodData : RepresentationTheory.Theta.Geometric.Torus.Data.CM.ProjectivePeriodData where |
| 209 | space := DefinitionsIntegral.Tangent g |
| 210 | periodIntegerLattice := T.integralDualLattice |
| 211 | periodIntegerLattice_discrete := T.integralDualLattice_discrete |
| 212 | periodIntegerLattice_full := T.integralDualLattice_full |
| 213 | projective := (Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.riemann_projectivity_criterion (DefinitionsIntegral.Tangent g) |
| 214 | T.integralDualLattice.toAddSubgroup).mpr T.integralDual_positive_integral |
| 215 | |
| 216 | end |
| 217 | |
| 218 | namespace IntegralDualLe.Geometric.MarkedPolarizedTorus |
| 219 | |
| 220 | end IntegralDualLe.Geometric.MarkedPolarizedTorus |
| 221 | |
| 222 | end |
| 223 | |
| 224 | end OAI.AlgebraicGeometry.Picard.ThetaConstruction |