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.NumberTheory.PadicHodge.GeometricComparison.CechPresheaf.ConeTotal |
| 2 | |
| 3 | /-! # Cone Naturality -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.CechPresheaf.ConeNaturality.CechPresheafConeNaturality |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A commuting map of actual presheaf-complex cones preserves the |
| 10 | canonical edge into the original Cech total. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 13 | |
| 14 | open OAI.NumberTheory.PadicHodge.GeometricComparison.CechPresheaf.ConeTotal.CechPresheafConeTotal |
| 15 | universe u v a b |
| 16 | variable {C : Type u} [Category.{v} C] [HasBinaryProducts C] |
| 17 | {A : Type a} [Category.{b} A] [Abelian A] [HasProducts.{0} A] [HasCoproducts.{0} A] |
| 18 | {ι : Type} (U : ι → C) |
| 19 | {K L : CochainComplex (Cᵒᵖ ⥤ A) ℕ} {M N : CochainComplex A ℕ} |
| 20 | (η : (ConeTotal.CechPresheafConeTotal.constant (C := C)).obj M ⟶ K) (θ : (ConeTotal.CechPresheafConeTotal.constant (C := C)).obj N ⟶ L) |
| 21 | (α : K ⟶ L) (β : M ⟶ N) (h : η ≫ α = (ConeTotal.CechPresheafConeTotal.constant (C := C)).map β ≫ θ) |
| 22 | |
| 23 | local instance cech_additive : (IntegralComparison.NonemptyCechNerve.complexFunctor (A := A) U).Additive := by |
| 24 | change (FormalCoproduct.cochainComplexFunctor (IntegralComparison.NonemptyCechNerve.nerve U)).Additive |
| 25 | infer_instance |
| 26 | |
| 27 | def bicomplexMap : ConeTotal.CechPresheafConeTotal.bicomplex U K ⟶ ConeTotal.CechPresheafConeTotal.bicomplex U L := |
| 28 | ((IntegralComparison.NonemptyCechNerve.complexFunctor U).mapHomologicalComplex (.up ℕ)).map α |
| 29 | |
| 30 | local instance hasTotal (B : HomologicalComplex₂ A (.up ℕ) (.up ℕ)) : B.HasTotal (.up ℕ) := |
| 31 | AlgebraicGeometry.Comparison.Betti.TotalExists.hasTotal_of_finiteCoproducts _ |
| 32 | |
| 33 | def totalMap : (ConeTotal.CechPresheafConeTotal.bicomplex U K).total (.up ℕ) ⟶ (ConeTotal.CechPresheafConeTotal.bicomplex U L).total (.up ℕ) := |
| 34 | HomologicalComplex₂.total.map (bicomplexMap U α) (.up ℕ) |
| 35 | |
| 36 | include h in |
| 37 | omit [HasCoproducts.{0} A] in |
| 38 | theorem component_naturality (q : ℕ) : ConeTotal.CechPresheafConeTotal.component U K M η q ≫ ((bicomplexMap U α).f q).f 0 = |
| 39 | β.f q ≫ ConeTotal.CechPresheafConeTotal.component U L N θ q := by |
| 40 | change Pi.lift (fun t : Fin 1 → ι => (η.f q).app (op (∏ᶜ (U ∘ t)))) ≫ |
| 41 | Limits.Pi.map (fun t : Fin 1 → ι => (α.f q).app (op (∏ᶜ (U ∘ t)))) = |
| 42 | β.f q ≫ Pi.lift (fun t : Fin 1 → ι => (θ.f q).app (op (∏ᶜ (U ∘ t)))) |
| 43 | apply Pi.hom_ext |
| 44 | intro t |
| 45 | simp only [Category.assoc, Pi.map_π] |
| 46 | erw [Pi.lift_comp_π_assoc, Pi.lift_comp_π] |
| 47 | exact congrArg (fun γ => (γ.f q).app (op (∏ᶜ (U ∘ t)))) h |
| 48 | |
| 49 | include h in |
| 50 | omit [HasCoproducts.{0} A] in |
| 51 | theorem naturality : ConeTotal.CechPresheafConeTotal.map U K M η ≫ totalMap U α = β ≫ ConeTotal.CechPresheafConeTotal.map U L N θ := by |
| 52 | apply HomologicalComplex.Hom.ext |
| 53 | funext q |
| 54 | let B := ConeTotal.CechPresheafConeTotal.bicomplex U K |
| 55 | let D := ConeTotal.CechPresheafConeTotal.bicomplex U L |
| 56 | let a := bicomplexMap U α |
| 57 | change (ConeTotal.CechPresheafConeTotal.component U K M η q ≫ B.ιTotal (.up ℕ) q 0 q rfl) ≫ |
| 58 | (HomologicalComplex₂.total.map a (.up ℕ)).f q = |
| 59 | β.f q ≫ ConeTotal.CechPresheafConeTotal.component U L N θ q ≫ D.ιTotal (.up ℕ) q 0 q rfl |
| 60 | exact (Category.assoc _ _ _).trans |
| 61 | ((congrArg (fun k => ConeTotal.CechPresheafConeTotal.component U K M η q ≫ k) |
| 62 | (HomologicalComplex₂.ιTotal_map B D a (.up ℕ) q 0 q rfl)).trans |
| 63 | ((Category.assoc _ _ _).symm.trans |
| 64 | ((congrArg (fun k => k ≫ D.ιTotal (.up ℕ) q 0 q rfl) |
| 65 | (component_naturality U η θ α β h q)).trans (Category.assoc _ _ _)))) |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.NumberTheory.PadicHodge.GeometricComparison.CechPresheaf.ConeNaturality.CechPresheafConeNaturality |