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.CechCone.CoefficientNaturality |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Finite.CechCoefficientComposition |
| 3 | import OAI.NumberTheory.PadicHodge.GeometricComparison.TotalCoefficient |
| 4 | |
| 5 | /-! # Coefficient Composition -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.CechCone.CoefficientComposition.CechConeCoefficientComposition |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Original finite Cech total coefficient isomorphisms respect |
| 12 | composition of additive coefficient functors. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 15 | |
| 16 | private theorem fourFactors {V : Type*} [Category* V] {A B C D E F : V} |
| 17 | (a : A ⟶ B) (b : B ⟶ C) (c : C ⟶ D) (d : D ⟶ E) (e : B ⟶ F) (f : F ⟶ D) |
| 18 | (h : b ≫ c = e ≫ f) : (a ≫ b) ≫ (c ≫ d) = (a ≫ e) ≫ (f ≫ d) := by |
| 19 | rw [Category.assoc, ← Category.assoc b, h] |
| 20 | simp only [Category.assoc] |
| 21 | |
| 22 | universe u v w z w' z' w'' z'' |
| 23 | variable {C : Type u} [Category.{v} C] [HasBinaryProducts C] |
| 24 | {A : Type w} [Category.{z} A] [Abelian A] [HasProducts.{0} A] [HasCoproducts.{0} A] |
| 25 | {B : Type w'} [Category.{z'} B] [Abelian B] [HasProducts.{0} B] [HasCoproducts.{0} B] |
| 26 | {D : Type w''} [Category.{z''} D] [Abelian D] [HasProducts.{0} D] [HasCoproducts.{0} D] |
| 27 | (F : A ⥤ B) [F.Additive] (G : B ⥤ D) [G.Additive] |
| 28 | {ι : Type} [Finite ι] (U : ι → C) (P : Cᵒᵖ ⥤ CochainComplex A ℕ) |
| 29 | |
| 30 | local instance finiteBiproductsA : HasFiniteBiproducts A := HasFiniteBiproducts.of_hasFiniteProducts |
| 31 | local instance finiteBiproductsB : HasFiniteBiproducts B := HasFiniteBiproducts.of_hasFiniteProducts |
| 32 | |
| 33 | omit [HasCoproducts.{0} A] [HasCoproducts.{0} B] [HasCoproducts.{0} D] in |
| 34 | theorem bicomplex : (TotalCoefficient.CechConeTotalCoefficient.bicomplexIso (F ⋙ G) U P).hom = |
| 35 | TotalCoefficientComposition.TotalCoefficientComparisonNaturality.bicomplexMap G (TotalCoefficient.CechConeTotalCoefficient.bicomplexIso F U P).hom ≫ |
| 36 | (TotalCoefficient.CechConeTotalCoefficient.bicomplexIso G U (TotalCoefficient.CechConeTotalCoefficient.mapped F P)).hom := |
| 37 | (congrArg (HomologicalComplex₂.flipFunctor D (.up ℕ) (.up ℕ)).map |
| 38 | (GeometricComparison.Finite.CechCoefficientComposition.FiniteCechCoefficientComposition.complexes (F.mapHomologicalComplex (.up ℕ)) |
| 39 | (G.mapHomologicalComplex (.up ℕ)) (IntegralComparison.NonemptyCechNerve.nerve U) |
| 40 | (TotalCoefficient.CechConeTotalCoefficient.finite_indices U) P)).trans |
| 41 | ((HomologicalComplex₂.flipFunctor D (.up ℕ) (.up ℕ)).map_comp _ _) |
| 42 | |
| 43 | theorem total : (TotalCoefficient.CechConeTotalCoefficient.totalIso (F ⋙ G) U P).hom = |
| 44 | (G.mapHomologicalComplex (.up ℕ)).map (TotalCoefficient.CechConeTotalCoefficient.totalIso F U P).hom ≫ |
| 45 | (TotalCoefficient.CechConeTotalCoefficient.totalIso G U (TotalCoefficient.CechConeTotalCoefficient.mapped F P)).hom := by |
| 46 | let K := Total.CechConeTotal.bicomplex U P |
| 47 | let L := Total.CechConeTotal.bicomplex U (TotalCoefficient.CechConeTotalCoefficient.mapped F P) |
| 48 | let bF := (TotalCoefficient.CechConeTotalCoefficient.bicomplexIso F U P).hom |
| 49 | let bG := (TotalCoefficient.CechConeTotalCoefficient.bicomplexIso G U (TotalCoefficient.CechConeTotalCoefficient.mapped F P)).hom |
| 50 | let GF := G.mapHomologicalComplex (.up ℕ) |
| 51 | let TT := HomologicalComplex₂.totalFunctor D (.up ℕ) (.up ℕ) (.up ℕ) |
| 52 | have hBi := (congrArg TT.map (bicomplex F G U P)).trans |
| 53 | (TT.map_comp (TotalCoefficientComposition.TotalCoefficientComparisonNaturality.bicomplexMap G bF) bG) |
| 54 | have hInv := IntegralComparison.InverseCoordinateHomology.inverse |
| 55 | (AlgebraicGeometry.Crystalline.Cohomology.Finite.TotalComparison.FiniteTotalComparison.iso G (AlgebraicGeometry.Comparison.Betti.TotalComplexFunctor.mapBicomplex F K)) |
| 56 | (AlgebraicGeometry.Crystalline.Cohomology.Finite.TotalComparison.FiniteTotalComparison.iso G L) |
| 57 | (HomologicalComplex₂.total.map (TotalCoefficientComposition.TotalCoefficientComparisonNaturality.bicomplexMap G bF) (.up ℕ)) |
| 58 | (GF.map (HomologicalComplex₂.total.map bF (.up ℕ))) |
| 59 | (TotalCoefficientComposition.TotalCoefficientComparisonNaturality.natural G bF) |
| 60 | have hRaw := TotalCoefficient.TotalCoefficientIsoComposition.inv F G K |
| 61 | exact (congrArg₂ (fun a b => a ≫ b) hRaw hBi).trans |
| 62 | ((fourFactors _ _ _ _ _ _ hInv.symm).trans |
| 63 | (congrArg (fun a => a ≫ (TotalCoefficient.CechConeTotalCoefficient.totalIso G U (TotalCoefficient.CechConeTotalCoefficient.mapped F P)).hom) |
| 64 | (GF.map_comp (AlgebraicGeometry.Crystalline.Cohomology.Finite.TotalComparison.FiniteTotalComparison.iso F K).inv |
| 65 | (HomologicalComplex₂.total.map bF (.up ℕ))).symm)) |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.NumberTheory.PadicHodge.GeometricComparison.CechCone.CoefficientComposition.CechConeCoefficientComposition |