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 Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 2 | import Mathlib.Algebra.Homology.HomologicalComplexAbelian |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.HomologicalComplex |
| 4 | |
| 5 | /-! # Cochain Classes -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Module.CochainClasses |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Concrete cycle classes in the original homology of a module cochain complex. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory Limits |
| 14 | |
| 15 | universe u v |
| 16 | |
| 17 | variable {R : Type u} [CommRing R] (K : CochainComplex (ModuleCat.{v} R) ℕ) |
| 18 | |
| 19 | abbrev cycles (n : ℕ) : Submodule R (K.X n) := (K.d n (n + 1)).hom.ker |
| 20 | |
| 21 | abbrev short (n : ℕ) := K.sc' ((ComplexShape.up ℕ).prev n) n (n + 1) |
| 22 | |
| 23 | def boundaries (n : ℕ) : Submodule R (cycles K n) := |
| 24 | (short K n).moduleCatToCycles.range |
| 25 | |
| 26 | def quotientIso (n : ℕ) : K.homology n ≅ ModuleCat.of R (cycles K n ⧸ boundaries K n) := |
| 27 | K.homologyIsoSc' _ n (n + 1) rfl (CochainComplex.next ℕ n) ≪≫ |
| 28 | (short K n).moduleCatHomologyIso |
| 29 | |
| 30 | def classMap (n : ℕ) : cycles K n →ₗ[R] K.homology n := |
| 31 | (quotientIso K n).inv.hom.comp (boundaries K n).mkQ |
| 32 | |
| 33 | theorem classMap_surjective (n : ℕ) : Function.Surjective (classMap K n) := |
| 34 | (ModuleCat.epi_iff_surjective (quotientIso K n).inv).mp inferInstance |>.comp |
| 35 | (Submodule.mkQ_surjective (boundaries K n)) |
| 36 | |
| 37 | theorem classMap_eq_zero_iff (n : ℕ) (x : cycles K n) : |
| 38 | classMap K n x = 0 ↔ ∃ y : K.X ((ComplexShape.up ℕ).prev n), |
| 39 | K.d ((ComplexShape.up ℕ).prev n) n y = x.val := by |
| 40 | have h0 : classMap K n x = 0 ↔ (boundaries K n).mkQ x = 0 := by |
| 41 | constructor |
| 42 | · intro h |
| 43 | apply (ModuleCat.mono_iff_injective (quotientIso K n).inv).mp inferInstance |
| 44 | exact h.trans (quotientIso K n).inv.hom.map_zero.symm |
| 45 | · intro h |
| 46 | change (quotientIso K n).inv.hom ((boundaries K n).mkQ x) = 0 |
| 47 | rw [h, map_zero] |
| 48 | rw [h0] |
| 49 | change Submodule.Quotient.mk x = 0 ↔ _ |
| 50 | rw [Submodule.Quotient.mk_eq_zero] |
| 51 | constructor |
| 52 | · rintro ⟨y, hy⟩ |
| 53 | exact ⟨y, congrArg Subtype.val hy⟩ |
| 54 | · rintro ⟨y, hy⟩ |
| 55 | exact ⟨y, Subtype.ext hy⟩ |
| 56 | |
| 57 | theorem classMap_succ_eq_zero_iff (n : ℕ) (x : cycles K (n + 1)) : |
| 58 | classMap K (n + 1) x = 0 ↔ ∃ y : K.X n, K.d n (n + 1) y = x.val := by |
| 59 | have hprev : (ComplexShape.up ℕ).prev (n + 1) = n := (ComplexShape.up ℕ).prev_eq' rfl |
| 60 | have h := classMap_eq_zero_iff K (n + 1) x |
| 61 | rwa [hprev] at h |
| 62 | |
| 63 | theorem classMap_zero_eq_zero_iff (x : cycles K 0) : |
| 64 | classMap K 0 x = 0 ↔ x = 0 := by |
| 65 | rw [classMap_eq_zero_iff] |
| 66 | have hprev : (ComplexShape.up ℕ).prev 0 = 0 := CochainComplex.prev_nat_zero |
| 67 | rw [hprev] |
| 68 | rw [K.shape 0 0 (by simp)] |
| 69 | change (∃ _ : K.X 0, (0 : K.X 0) = x.val) ↔ x = 0 |
| 70 | constructor |
| 71 | · rintro ⟨_, h⟩ |
| 72 | exact Subtype.ext h.symm |
| 73 | · rintro rfl |
| 74 | exact ⟨0, rfl⟩ |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Module.CochainClasses |