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.AbelianScheme.TateComparison.Duality |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Superlattice |
| 3 | import OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.ElementaryUniqueness |
| 4 | |
| 5 | /-! # Relative Position From Kernel -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.RelativePositionFromKernel |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Read the actual finite quotient type as a relative lattice position. |
| 12 | Only TateComparison's stated elementary-divisor input is used. The quotient calculation |
| 13 | and uniqueness of rank-three elementary groups are the checked IsogenyQuotient proofs. -/ |
| 14 | |
| 15 | theorem relativePosition_of_quotient_type (q : ℕ) [Fact q.Prime] |
| 16 | (hElementaryDivisors : Duality.ElementaryDivisorsInput ℤ_[q] ℚ_[q]) |
| 17 | (L M : Duality.RankThreeLattice ℤ_[q] ℚ_[q]) (hLM : L.val ≤ M.val) |
| 18 | (a : Fin 3 → ℕ) (ha : Antitone a) |
| 19 | (hgroup : M.val ⧸ (L.val.comap M.val.subtype).toAddSubgroup ≃+ |
| 20 | (∀ i : Fin 3, ZMod (q ^ a i))) : |
| 21 | Duality.RelativePosition (q : ℤ_[q]) (fun i => (a i : ℤ)) L M := by |
| 22 | obtain ⟨b, ⟨hb, e, hL, hM⟩, _⟩ := hElementaryDivisors (q : ℤ_[q]) PadicInt.irreducible_p |
| 23 | L.val M.val L.property M.property |
| 24 | change M.val = IsogenyQuotient.LatticeBounds.Construction.diagonalLattice (q : ℤ_[q]) e b at hM |
| 25 | have hdiag : IsogenyQuotient.LatticeBounds.Construction.diagonalLattice (q : ℤ_[q]) e (fun _ => 0) ≤ IsogenyQuotient.LatticeBounds.Construction.diagonalLattice (q : ℤ_[q]) e b := by |
| 26 | rw [IsogenyQuotient.LatticeBounds.Construction.diagonalLattice_zero, ← hL, ← hM] |
| 27 | exact hLM |
| 28 | have hnonpos := (IsogenyQuotient.LatticeBounds.Construction.diagonalLattice_le_iff (q : ℤ_[q]) PadicInt.irreducible_p e (fun _ => 0) b).mp hdiag |
| 29 | let c : Fin 3 → ℕ := fun i => (-b i).toNat |
| 30 | have hc (i : Fin 3) : (c i : ℤ) = -b i := Int.toNat_of_nonneg (neg_nonneg.mpr (hnonpos i)) |
| 31 | have hcanti : Antitone c := by |
| 32 | intro i j hij |
| 33 | apply Int.ofNat_le.mp |
| 34 | rw [hc, hc] |
| 35 | exact neg_le_neg (hb hij) |
| 36 | have hneg : (fun i => -(c i : ℤ)) = b := by |
| 37 | funext i |
| 38 | rw [hc, neg_neg] |
| 39 | have hM' : M.val = IsogenyQuotient.LatticeBounds.Construction.diagonalLattice (q : ℤ_[q]) e (fun i => -(c i : ℤ)) := by |
| 40 | rw [hneg] |
| 41 | exact hM |
| 42 | have htype := IsogenyQuotient.Superlattice.Construction.superlatticeQuotientEquiv q L.val M.val hLM e c hL hM' |
| 43 | have hac : a = c := IsogenyQuotient.ElementaryUniqueness.Construction.rankThree_elementary_exponents_unique q Fact.out a c ha hcanti |
| 44 | (hgroup.symm.trans htype) |
| 45 | refine ⟨e, hL, ?_⟩ |
| 46 | change M.val = IsogenyQuotient.LatticeBounds.Construction.diagonalLattice (q : ℤ_[q]) e (fun i => -(a i : ℤ)) |
| 47 | rw [hac] |
| 48 | exact hM' |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.RelativePositionFromKernel |