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 | /- |
| 2 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/SheafCechSheafDifferential.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.SheafCofaces |
| 8 | |
| 9 | /-! # Sheaf Differential -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.SheafDifferential.IntrinsicCech |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 16 | universe u |
| 17 | variable {X : TopCat.{u}} |
| 18 | variable (F : TopCat.Sheaf AddCommGrpCat.{u} X) |
| 19 | variable {ι : Type u} (U : ι → Opens X) (n : ℕ) |
| 20 | |
| 21 | /-- The differential in the sheaf-level Cech resolution. -/ |
| 22 | noncomputable def cechDifferential : |
| 23 | IntrinsicCech.SheafTerms.cechTerm F U n ⟶ IntrinsicCech.SheafTerms.cechTerm F U (n + 1) := |
| 24 | ∑ k : Fin (n + 2), (-1 : ℤ) ^ (k : ℕ) • SheafCofaces.IntrinsicCech.cechCoface F U n k |
| 25 | |
| 26 | theorem sheaf_sum_apply_finset {A B : TopCat.Sheaf AddCommGrpCat.{u} X} |
| 27 | {κ : Type*} (s : Finset κ) (f : κ → (A ⟶ B)) (V : (Opens X)ᵒᵖ) |
| 28 | (x : A.obj.obj V) : |
| 29 | (∑ i ∈ s, f i).hom.app V x = ∑ i ∈ s, (f i).hom.app V x := by |
| 30 | classical |
| 31 | induction s using Finset.induction_on with |
| 32 | | empty => rfl |
| 33 | | @insert a s ha ih => |
| 34 | rw [Finset.sum_insert ha, Finset.sum_insert ha] |
| 35 | change (f a).hom.app V x + (∑ i ∈ s, f i).hom.app V x = _ |
| 36 | rw [ih] |
| 37 | |
| 38 | theorem sheaf_sum_apply {A B : TopCat.Sheaf AddCommGrpCat.{u} X} |
| 39 | {κ : Type*} [Fintype κ] (f : κ → (A ⟶ B)) (V : (Opens X)ᵒᵖ) |
| 40 | (x : A.obj.obj V) : |
| 41 | (∑ i, f i).hom.app V x = ∑ i, (f i).hom.app V x := |
| 42 | sheaf_sum_apply_finset Finset.univ f V x |
| 43 | |
| 44 | /-- Under the concrete section equivalence, the sheaf-level Cech differential is the |
| 45 | alternating sum of tuple-deletion restrictions. -/ |
| 46 | theorem cechDifferential_apply (V : Opens X) |
| 47 | (x : (IntrinsicCech.SheafTerms.cechTerm F U n).obj.obj (op V)) (i : Fin (n + 2) → ι) : |
| 48 | IntrinsicCech.SheafSectionCoordinates.cechTermSectionsAddEquiv F U (n + 1) V |
| 49 | ((cechDifferential F U n).hom.app (op V) x) i = |
| 50 | ∑ k : Fin (n + 2), (-1 : ℤ) ^ (k : ℕ) • |
| 51 | F.obj.map (homOfLE (inf_le_inf_left V |
| 52 | (leOfHom (((FormalCoproduct.mk _ U).mapPower |
| 53 | (SimplexCategory.δ k).toOrderHom.toFun).φ i)))).op |
| 54 | (IntrinsicCech.SheafSectionCoordinates.cechTermSectionsAddEquiv F U n V x |
| 55 | (i ∘ (SimplexCategory.δ k).toOrderHom.toFun)) := by |
| 56 | rw [cechDifferential] |
| 57 | calc |
| 58 | _ = IntrinsicCech.SheafSectionCoordinates.cechTermSectionsAddEquiv F U (n + 1) V |
| 59 | (∑ k : Fin (n + 2), |
| 60 | ((-1 : ℤ) ^ (k : ℕ) • SheafCofaces.IntrinsicCech.cechCoface F U n k).hom.app (op V) x) i := |
| 61 | congrArg (fun y => IntrinsicCech.SheafSectionCoordinates.cechTermSectionsAddEquiv F U (n + 1) V y i) |
| 62 | (sheaf_sum_apply _ (op V) x) |
| 63 | _ = (∑ k : Fin (n + 2), |
| 64 | IntrinsicCech.SheafSectionCoordinates.cechTermSectionsAddEquiv F U (n + 1) V |
| 65 | (((-1 : ℤ) ^ (k : ℕ) • SheafCofaces.IntrinsicCech.cechCoface F U n k).hom.app (op V) x)) i := by |
| 66 | rw [map_sum] |
| 67 | _ = ∑ k : Fin (n + 2), |
| 68 | IntrinsicCech.SheafSectionCoordinates.cechTermSectionsAddEquiv F U (n + 1) V |
| 69 | (((-1 : ℤ) ^ (k : ℕ) • SheafCofaces.IntrinsicCech.cechCoface F U n k).hom.app (op V) x) i := |
| 70 | Finset.sum_apply i Finset.univ _ |
| 71 | _ = _ := by |
| 72 | apply Finset.sum_congr rfl |
| 73 | intro k hk |
| 74 | change IntrinsicCech.SheafSectionCoordinates.cechTermSectionsAddEquiv F U (n + 1) V |
| 75 | ((-1 : ℤ) ^ (k : ℕ) • ((SheafCofaces.IntrinsicCech.cechCoface F U n k).hom.app (op V) x)) i = _ |
| 76 | rw [map_zsmul, Pi.smul_apply, SheafCofaces.IntrinsicCech.cechCoface_apply] |
| 77 | exact congrArg (fun y => (-1 : ℤ) ^ (k : ℕ) • y) |
| 78 | (ConcreteCategory.congr_hom |
| 79 | (congrArg F.obj.map (Subsingleton.elim _ _)) |
| 80 | (IntrinsicCech.SheafSectionCoordinates.cechTermSectionsAddEquiv F U n V x |
| 81 | (i ∘ (SimplexCategory.δ k).toOrderHom.toFun))) |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.SheafDifferential.IntrinsicCech |