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.Geometric.Period.DualLattice |
| 2 | import Mathlib.GroupTheory.OrderOfElement |
| 3 | |
| 4 | /-! # Dual Quotient -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.Geometric |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The discriminant group of the actual period lattice has exactly |
| 11 | the prescribed doubled elementary divisors. -/ |
| 12 | |
| 13 | variable {E K : Type} [Field E] [NumberField E] [NumberField.IsCMField E] |
| 14 | [Field K] [NumberField K] {s q : ℕ} [Fact q.Prime] |
| 15 | {Index Ga MpR MpF MpA : Type} [Fintype Index] [DecidableEq Index] |
| 16 | [Group Ga] [TopologicalSpace Ga] [Group MpR] [Group MpF] [Group MpA] |
| 17 | (D : Data.ActiveHeckeThetaData E K s q Index Ga MpR MpF MpA) |
| 18 | |
| 19 | def Data.ActiveHeckeThetaData.periodDualReferenceEquiv (hg : D.pel.HasIntegralModelGeometry) (x : D.domain) : |
| 20 | D.periodDualLattice hg x ≃ₗ[ℤ] (D.pel.reference.lattice →ₗ[ℤ] ℤ) := |
| 21 | (D.periodDualLatticeEquiv hg x).trans (D.periodLatticeEquiv hg x).dualMap |
| 22 | |
| 23 | def Data.ActiveHeckeThetaData.periodLatticeDualInclusion (hg : D.pel.HasIntegralModelGeometry) (x : D.domain) : |
| 24 | D.pel.reference.lattice →ₗ[ℤ] D.periodDualLattice hg x := |
| 25 | (Submodule.inclusion (D.periodLattice_le_dual hg x)).comp |
| 26 | (D.periodLatticeEquiv hg x).toLinearMap |
| 27 | |
| 28 | theorem Data.ActiveHeckeThetaData.periodDualReferenceEquiv_inclusion (hg : D.pel.HasIntegralModelGeometry) (x : D.domain) |
| 29 | (u : D.pel.reference.lattice) : |
| 30 | D.periodDualReferenceEquiv hg x (D.periodLatticeDualInclusion hg x u) = |
| 31 | D.pel.reference.integralForm u := by |
| 32 | ext v |
| 33 | apply Int.cast_injective (α := ℝ) |
| 34 | change (algebraMap ℤ ℝ) |
| 35 | (LinearMap.BilinForm.dualSubmoduleParing (D.periodImaginaryForm hg x) |
| 36 | (D.periodLatticeDualInclusion hg x u) (D.periodLatticeEquiv hg x v)) = _ |
| 37 | exact (LinearMap.BilinForm.dualSubmoduleParing_spec (D.periodImaginaryForm hg x) |
| 38 | (D.periodLatticeDualInclusion hg x u) (D.periodLatticeEquiv hg x v)).trans |
| 39 | (D.periodImaginaryForm_integral hg x u v) |
| 40 | |
| 41 | def Data.ActiveHeckeThetaData.periodDiscriminantEquiv (hg : D.pel.HasIntegralModelGeometry) (x : D.domain) : |
| 42 | (D.periodDualLattice hg x ⧸ (D.periodLatticeDualInclusion hg x).range) ≃ₗ[ℤ] |
| 43 | ((D.pel.reference.lattice →ₗ[ℤ] ℤ) ⧸ D.pel.reference.integralForm.range) := |
| 44 | Submodule.Quotient.equiv _ _ (D.periodDualReferenceEquiv hg x) (by |
| 45 | rw [← LinearMap.range_comp] |
| 46 | congr 1 |
| 47 | ext u v |
| 48 | exact LinearMap.congr_fun (D.periodDualReferenceEquiv_inclusion hg x u) v) |
| 49 | |
| 50 | theorem Data.ActiveHeckeThetaData.periodDiscriminant_type (hg : D.pel.HasIntegralModelGeometry) (x : D.domain) : |
| 51 | Nonempty ((D.periodDualLattice hg x ⧸ (D.periodLatticeDualInclusion hg x).range) ≃+ |
| 52 | ((∀ i : Fin (3 * s), ZMod (D.pel.reference.polarizationType i)) × |
| 53 | (∀ i : Fin (3 * s), ZMod (D.pel.reference.polarizationType i)))) := by |
| 54 | rcases hg.reference_admissible with |
| 55 | ⟨_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, ht, _⟩ |
| 56 | exact ⟨(D.periodDiscriminantEquiv hg x).toAddEquiv.trans ht.some⟩ |
| 57 | |
| 58 | theorem Data.ActiveHeckeThetaData.periodDiscriminant_finite (hg : D.pel.HasIntegralModelGeometry) (x : D.domain) : |
| 59 | Finite (D.periodDualLattice hg x ⧸ (D.periodLatticeDualInclusion hg x).range) := by |
| 60 | rcases hg.reference_admissible with |
| 61 | ⟨_, _, _, _, _, _, _, _, _, _, _, _, _, hpos, _⟩ |
| 62 | let (i : Fin (3 * s)) : NeZero (D.pel.reference.polarizationType i) := ⟨ne_of_gt (hpos i)⟩ |
| 63 | exact Finite.of_equiv _ (D.periodDiscriminant_type hg x).some.toEquiv.symm |
| 64 | |
| 65 | theorem Data.ActiveHeckeThetaData.periodDualLattice_bounded_denominator (hg : D.pel.HasIntegralModelGeometry) (x : D.domain) : |
| 66 | ∃ n : ℕ, 0 < n ∧ ∀ v : D.periodDualLattice hg x, |
| 67 | n • v.val ∈ (D.canonicalPeriodData hg x).periodIntegerLattice := by |
| 68 | let Q := D.periodDualLattice hg x ⧸ (D.periodLatticeDualInclusion hg x).range |
| 69 | let := D.periodDiscriminant_finite hg x |
| 70 | refine ⟨Nat.card Q, Nat.card_pos, ?_⟩ |
| 71 | intro v |
| 72 | have hz : (Submodule.Quotient.mk (Nat.card Q • v) : Q) = 0 := by |
| 73 | rw [Submodule.Quotient.mk_smul] |
| 74 | exact card_nsmul_eq_zero' |
| 75 | obtain ⟨u, hu⟩ := (Submodule.Quotient.mk_eq_zero _).mp hz |
| 76 | have hv := congrArg Subtype.val hu |
| 77 | change (D.periodLatticeEquiv hg x u).val = Nat.card Q • v.val at hv |
| 78 | exact hv ▸ (D.periodLatticeEquiv hg x u).property |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.RepresentationTheory.Theta.Geometric |