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.HilbertConstruction.SheafComplexGlobalSections |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.SupportedComplexRestriction |
| 3 | |
| 4 | /-! # Acyclic Sheaf Sections -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Bounded.AcyclicSheafSections |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Shift a complex bounded below into nonnegative degrees to recover |
| 11 | surjectivity on global sections at its zero upper endpoint. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 13 | universe u |
| 14 | |
| 15 | def shiftedNonnegativeCochainEmbedding (a : ℤ) : ComplexShape.Embedding (.up ℕ) (.up ℤ) := |
| 16 | ComplexShape.Embedding.mk' _ _ (fun n => (n : ℤ) + a) |
| 17 | (fun i j h => by |
| 18 | change (i : ℤ) + a = (j : ℤ) + a at h |
| 19 | omega) |
| 20 | (fun i j => by change i + 1 = j ↔ (i : ℤ) + a + 1 = (j : ℤ) + a; omega) |
| 21 | |
| 22 | instance shiftedNonnegativeCochainEmbedding_isRelIff (a : ℤ) : |
| 23 | (shiftedNonnegativeCochainEmbedding a).IsRelIff where |
| 24 | rel' := by |
| 25 | intro i j h |
| 26 | change (i : ℤ) + a + 1 = (j : ℤ) + a at h |
| 27 | change i + 1 = j |
| 28 | omega |
| 29 | |
| 30 | theorem shiftedNonnegativeCochainEmbedding_outside_iff (a i : ℤ) : |
| 31 | (∀ n, (shiftedNonnegativeCochainEmbedding a).f n ≠ i) ↔ i < a := by |
| 32 | constructor |
| 33 | · intro h |
| 34 | by_contra hn |
| 35 | apply h (i - a).toNat |
| 36 | change ((i - a).toNat : ℤ) + a = i |
| 37 | omega |
| 38 | · intro hi n hn |
| 39 | change (n : ℤ) + a = i at hn |
| 40 | omega |
| 41 | |
| 42 | namespace NativeCech |
| 43 | variable {X : TopCat.{u}} |
| 44 | |
| 45 | theorem bounded_acyclic_sheafComplex_last_sections_surjective |
| 46 | (K : CochainComplex (TopCat.Sheaf AddCommGrpCat.{u} X) ℤ) (hK : K.Acyclic) |
| 47 | (hH : ∀ i q, Subsingleton (CategoryTheory.Sheaf.H (K.X i) (q + 1))) |
| 48 | (r : ℕ) (hbelow : ∀ i : ℤ, i < -(r : ℤ) → IsZero (K.X i)) |
| 49 | (habove : IsZero (K.X 1)) : |
| 50 | Function.Surjective ((K.d (-1) 0).hom.app (op (⊤ : Opens X))) := by |
| 51 | let a : ℤ := -((r + 1 : ℕ) : ℤ) |
| 52 | let e := shiftedNonnegativeCochainEmbedding a |
| 53 | let : K.IsStrictlySupported e := { |
| 54 | isZero := fun i hi => hbelow i (by |
| 55 | have := (shiftedNonnegativeCochainEmbedding_outside_iff a i).mp hi |
| 56 | dsimp [a] at this |
| 57 | omega) } |
| 58 | let C := K.restriction e |
| 59 | have hC : C.Acyclic := SupportedComplexRestriction.strictlySupported_restriction_acyclic e K hK |
| 60 | have hn : (r : ℤ) + a = -1 := by dsimp [a]; omega |
| 61 | have hn1 : ((r + 1 : ℕ) : ℤ) + a = 0 := by dsimp [a]; omega |
| 62 | have hn2 : ((r + 2 : ℕ) : ℤ) + a = 1 := by dsimp [a]; omega |
| 63 | have hnext : IsZero (C.X (r + 2)) := by |
| 64 | change IsZero (K.X (((r + 2 : ℕ) : ℤ) + a)) |
| 65 | rw [hn2] |
| 66 | exact habove |
| 67 | have hs := SheafComplexGlobalSections.IntrinsicCech.acyclic_sheafComplex_last_sections_surjective C hC |
| 68 | (fun i q => hH ((i : ℤ) + a) q) r hnext |
| 69 | change Function.Surjective |
| 70 | ((K.d ((r : ℤ) + a) (((r + 1 : ℕ) : ℤ) + a)).hom.app (op (⊤ : Opens X))) at hs |
| 71 | rw [hn, hn1] at hs |
| 72 | exact hs |
| 73 | |
| 74 | end NativeCech |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Bounded.AcyclicSheafSections |