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.IntegralComparison.RelativeCech.CoefficientTotal |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.OrderedCech.CoefficientTotal |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.TotalCoefficientSquare |
| 4 | |
| 5 | /-! # Extension Coefficient -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Relative.ExtensionCoefficient |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Exact additive coefficient change preserves the original relative |
| 12 | extension, including the sign from the distinguished first chart. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive |
| 14 | open _root_.TopologicalSpace Opposite _root_.HomologicalComplex |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | universe u uA vA uB vB |
| 18 | open OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCech.Intersections OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCech.ExtensionComponents |
| 19 | variable {X : TopCat.{u}} (U : Opens X) |
| 20 | {ι : Type u} [LinearOrder ι] (V : ι → Opens X) |
| 21 | {A : Type uA} [Category.{vA} A] [Abelian A] [HasProducts.{u} A] |
| 22 | {B : Type uB} [Category.{vB} B] [Abelian B] [HasProducts.{u} B] |
| 23 | (G : A ⥤ B) [G.Additive] [PreservesLimitsOfSize.{u,u} G] |
| 24 | (P : (Opens X)ᵒᵖ ⥤ A) |
| 25 | |
| 26 | theorem component (n : ℕ) : |
| 27 | G.map (RelativeCech.ExtensionComponents.component U V P n) ≫ |
| 28 | (AugmentedCech.CoefficientChange.objectIso (RelativeCech.Intersections.cover U V) G P (n+1)).hom = |
| 29 | (AugmentedCech.CoefficientChange.objectIso V G (RelativeCech.Intersections.presheaf U P) n).hom ≫ |
| 30 | RelativeCech.ExtensionComponents.component U V (P ⋙ G) n := by |
| 31 | classical |
| 32 | apply Pi.hom_ext |
| 33 | intro (a : AugmentedOrdered.Cech.Index (WithBot ι) (n+1)) |
| 34 | have ht : (AugmentedCech.CoefficientChange.objectIso (RelativeCech.Intersections.cover U V) G P (n+1)).hom ≫ |
| 35 | RelativeCech.ExtensionComponents.targetProjection U V (P ⋙ G) a = G.map (RelativeCech.ExtensionComponents.targetProjection U V P a) := |
| 36 | piComparison_comp_π G _ a |
| 37 | have hs (b : AugmentedOrdered.Cech.Index ι n) : |
| 38 | (AugmentedCech.CoefficientChange.objectIso V G (RelativeCech.Intersections.presheaf U P) n).hom ≫ |
| 39 | RelativeCech.ExtensionComponents.sourceProjection U V (P ⋙ G) b = G.map (RelativeCech.ExtensionComponents.sourceProjection U V P b) := |
| 40 | piComparison_comp_π G _ b |
| 41 | change (_ ≫ _) ≫ RelativeCech.ExtensionComponents.targetProjection U V (P ⋙ G) a = |
| 42 | (_ ≫ _) ≫ RelativeCech.ExtensionComponents.targetProjection U V (P ⋙ G) a |
| 43 | rw [Category.assoc, ht, ← G.map_comp, RelativeCech.ExtensionComponents.component_projection, |
| 44 | Category.assoc, RelativeCech.ExtensionComponents.component_projection] |
| 45 | by_cases ha : a.val 0 = ⊥ |
| 46 | · simp only [RelativeCech.ExtensionComponents.entry, dite_eq_left ha, Functor.map_zsmul, Functor.map_comp, |
| 47 | comp_zsmul] |
| 48 | rw [← Category.assoc, hs] |
| 49 | rfl |
| 50 | · simp only [RelativeCech.ExtensionComponents.entry, dite_eq_right ha, Functor.map_zero, comp_zero] |
| 51 | |
| 52 | theorem complex : |
| 53 | (G.mapHomologicalComplex (.up ℕ)).map (RelativeCech.ExtensionDifferential.map U V P) ≫ |
| 54 | (OrderedCech.CoefficientChange.complexIso (RelativeCech.Intersections.cover U V) G P).hom = |
| 55 | (AugmentedCech.CoefficientChange.complexIso V G (RelativeCech.Intersections.presheaf U P)).hom ≫ |
| 56 | RelativeCech.ExtensionDifferential.map U V (P ⋙ G) := by |
| 57 | apply HomologicalComplex.Hom.ext |
| 58 | funext n |
| 59 | exact component U V G P n |
| 60 | |
| 61 | variable [HasCoproducts.{0} A] [HasCoproducts.{0} B] |
| 62 | local instance finiteBiproducts : HasFiniteBiproducts A := HasFiniteBiproducts.of_hasFiniteProducts |
| 63 | variable (K : CochainComplex ((Opens X)ᵒᵖ ⥤ A) ℕ) |
| 64 | |
| 65 | omit [HasCoproducts.{0} A] [HasCoproducts.{0} B] in |
| 66 | theorem bicomplex : |
| 67 | AlgebraicGeometry.Comparison.Betti.TotalAdditiveFunctor.mapBicomplexMap G (RelativeCech.Total.bicomplexMap U V K) ≫ |
| 68 | (OrderedCech.CoefficientTotal.bicomplexIso (RelativeCech.Intersections.cover U V) G K).hom = |
| 69 | (AugmentedCech.CoefficientTotal.bicomplexIso V G |
| 70 | (((RelativeCech.Refinement.restriction U).mapHomologicalComplex (.up ℕ)).obj K)).hom ≫ |
| 71 | RelativeCech.Total.bicomplexMap U V (RelativeCech.CoefficientTotal.mapped G K) := by |
| 72 | apply HomologicalComplex.Hom.ext |
| 73 | funext n |
| 74 | exact complex U V G (K.X n) |
| 75 | |
| 76 | theorem total : |
| 77 | (G.mapHomologicalComplex (.up ℕ)).map (RelativeCech.Total.map U V K) ≫ |
| 78 | (OrderedCech.CoefficientTotal.totalIso (RelativeCech.Intersections.cover U V) G K).hom = |
| 79 | (RelativeCech.CoefficientTotal.iso U V G K).hom ≫ |
| 80 | RelativeCech.Total.map U V (RelativeCech.CoefficientTotal.mapped G K) := |
| 81 | Finite.TotalCoefficientSquare.comparison G |
| 82 | (AugmentedCech.CoefficientTotal.bicomplexIso V G |
| 83 | (((RelativeCech.Refinement.restriction U).mapHomologicalComplex (.up ℕ)).obj K)) |
| 84 | (OrderedCech.CoefficientTotal.bicomplexIso (RelativeCech.Intersections.cover U V) G K) |
| 85 | (RelativeCech.Total.bicomplexMap U V K) |
| 86 | (RelativeCech.Total.bicomplexMap U V (RelativeCech.CoefficientTotal.mapped G K)) |
| 87 | (bicomplex U V G K) |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Relative.ExtensionCoefficient |