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.Semilattice.MappedChartTotal |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Semilattice.ChartTotalNaturality |
| 3 | import OAI.NumberTheory.PadicHodge.GeometricComparison.CechCone.CoefficientComposition |
| 4 | import OAI.NumberTheory.PadicHodge.GeometricComparison.CechCone.CoefficientTransformation |
| 5 | |
| 6 | /-! # Mapped Chart Naturality -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Semilattice.MappedChartNaturality.SemilatticeMappedChartNaturality |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The canonical restricted chart map commutes with further |
| 13 | coefficient functors and with natural coefficient isomorphisms. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | universe u v w z t x y |
| 21 | variable (C : Type u) [SemilatticeInf C] {ι : Type} [Finite ι] |
| 22 | (U : ι → C) (V : C) |
| 23 | {A : Type v} [Category.{w} A] [Abelian A] [HasProducts.{0} A] [HasCoproducts.{0} A] |
| 24 | {B : Type z} [Category.{t} B] [Abelian B] [HasProducts.{0} B] [HasCoproducts.{0} B] |
| 25 | (F : A ⥤ B) [F.Additive] (P : Cᵒᵖ ⥤ CochainComplex A ℕ) |
| 26 | (hF : ∀ T : C, IsIso ((F.mapHomologicalComplex (.up ℕ)).map |
| 27 | (P.map (homOfLE (inf_le_left : T ⊓ V ≤ T)).op))) |
| 28 | |
| 29 | theorem cone_factorization (M : CochainComplex B ℕ) |
| 30 | (η : (Functor.const Cᵒᵖ).obj M ⟶ CechCone.TotalCoefficient.CechConeTotalCoefficient.mapped F P) : |
| 31 | CechCone.Total.CechConeTotal.augmentation U (CechCone.TotalCoefficient.CechConeTotalCoefficient.mapped F P) M η ≫ |
| 32 | (CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso F U P).inv = |
| 33 | η.app (op V) ≫ MappedChartTotal.SemilatticeMappedChartTotal.map C U V F P hF := by |
| 34 | rw [ChartTotal.SemilatticeChartTotal.factorization C U V _ hF M η] |
| 35 | exact Category.assoc _ _ _ |
| 36 | |
| 37 | variable {D : Type x} [Category.{y} D] [Abelian D] |
| 38 | [HasProducts.{0} D] [HasCoproducts.{0} D] (G : B ⥤ D) [G.Additive] |
| 39 | |
| 40 | theorem composition |
| 41 | (hFG : ∀ T : C, IsIso (((F ⋙ G).mapHomologicalComplex (.up ℕ)).map |
| 42 | (P.map (homOfLE (inf_le_left : T ⊓ V ≤ T)).op))) : |
| 43 | (G.mapHomologicalComplex (.up ℕ)).map (MappedChartTotal.SemilatticeMappedChartTotal.map C U V F P hF) = |
| 44 | MappedChartTotal.SemilatticeMappedChartTotal.map C U V (F ⋙ G) P hFG := by |
| 45 | let Q := CechCone.TotalCoefficient.CechConeTotalCoefficient.mapped F P |
| 46 | let θ := LocalCone.SemilatticeLocalCone.cone C V Q hF |
| 47 | have hc := LocalConeNaturality.SemilatticeLocalConeNaturality.functor_naturality C V Q hF |
| 48 | (G.mapHomologicalComplex (.up ℕ)) hFG |
| 49 | have ha := CechCone.TotalAugmentationNaturality.CechConeTotalAugmentationNaturality.augmentation G U Q (Q.obj (op V)) θ |
| 50 | have hcone : CechCone.TotalCoefficientAugmentation.CechConeTotalCoefficientAugmentation.mappedCone G Q (Q.obj (op V)) θ = |
| 51 | LocalCone.SemilatticeLocalCone.cone C V (CechCone.TotalCoefficient.CechConeTotalCoefficient.mapped (F ⋙ G) P) hFG := hc |
| 52 | rw [hcone] at ha |
| 53 | have he : CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso (F ⋙ G) U P = |
| 54 | (G.mapHomologicalComplex (.up ℕ)).mapIso (CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso F U P) ≪≫ |
| 55 | CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso G U Q := |
| 56 | Iso.ext (CechCone.CoefficientComposition.CechConeCoefficientComposition.total F G U P) |
| 57 | have hi := congrArg Iso.inv he |
| 58 | have hchart : (G.mapHomologicalComplex (.up ℕ)).map (ChartTotal.SemilatticeChartTotal.map C U V Q hF) = |
| 59 | ChartTotal.SemilatticeChartTotal.map C U V (CechCone.TotalCoefficient.CechConeTotalCoefficient.mapped (F ⋙ G) P) hFG ≫ |
| 60 | (CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso G U Q).inv := |
| 61 | (CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso G U Q).eq_comp_inv.mpr ha |
| 62 | change (G.mapHomologicalComplex (.up ℕ)).map |
| 63 | (ChartTotal.SemilatticeChartTotal.map C U V Q hF ≫ (CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso F U P).inv) = |
| 64 | ChartTotal.SemilatticeChartTotal.map C U V (CechCone.TotalCoefficient.CechConeTotalCoefficient.mapped (F ⋙ G) P) hFG ≫ |
| 65 | (CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso (F ⋙ G) U P).inv |
| 66 | rw [CategoryTheory.Functor.map_comp, hchart, hi] |
| 67 | exact Category.assoc _ _ _ |
| 68 | |
| 69 | theorem iso (G : A ⥤ B) [G.Additive] (e : F ≅ G) |
| 70 | (hG : ∀ T : C, IsIso ((G.mapHomologicalComplex (.up ℕ)).map |
| 71 | (P.map (homOfLE (inf_le_left : T ⊓ V ≤ T)).op))) : |
| 72 | MappedChartTotal.SemilatticeMappedChartTotal.map C U V F P hF ≫ |
| 73 | ((NatIso.mapHomologicalComplex e (.up ℕ)).app (CechCone.Total.CechConeTotal.total U P)).hom = |
| 74 | ((NatIso.mapHomologicalComplex e (.up ℕ)).app (P.obj (op V))).hom ≫ |
| 75 | MappedChartTotal.SemilatticeMappedChartTotal.map C U V G P hG := by |
| 76 | let α := Functor.whiskerLeft P (e.hom.mapHomologicalComplex (.up ℕ)) |
| 77 | have hchart := ChartTotalNaturality.SemilatticeChartTotalNaturality.transition C U V V le_rfl |
| 78 | (CechCone.TotalCoefficient.CechConeTotalCoefficient.mapped F P) (CechCone.TotalCoefficient.CechConeTotalCoefficient.mapped G P) hF hG α |
| 79 | have hid : (CechCone.TotalCoefficient.CechConeTotalCoefficient.mapped F P).map (homOfLE (le_refl V)).op = 𝟙 _ := |
| 80 | (CechCone.TotalCoefficient.CechConeTotalCoefficient.mapped F P).map_id (op V) |
| 81 | rw [hid, Category.id_comp] at hchart |
| 82 | have ht := CechCone.CoefficientTransformation.CechConeCoefficientTransformation.total F G e.hom U P |
| 83 | apply (cancel_mono (CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso G U P).hom).mp |
| 84 | change ((ChartTotal.SemilatticeChartTotal.map C U V (CechCone.TotalCoefficient.CechConeTotalCoefficient.mapped F P) hF ≫ |
| 85 | (CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso F U P).inv) ≫ |
| 86 | (e.hom.mapHomologicalComplex (.up ℕ)).app (CechCone.Total.CechConeTotal.total U P)) ≫ |
| 87 | (CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso G U P).hom = |
| 88 | ((e.hom.mapHomologicalComplex (.up ℕ)).app (P.obj (op V)) ≫ |
| 89 | (ChartTotal.SemilatticeChartTotal.map C U V (CechCone.TotalCoefficient.CechConeTotalCoefficient.mapped G P) hG ≫ |
| 90 | (CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso G U P).inv)) ≫ |
| 91 | (CechCone.TotalCoefficient.CechConeTotalCoefficient.totalIso G U P).hom |
| 92 | simp only [Category.assoc] |
| 93 | rw [ht] |
| 94 | simp only [Iso.inv_hom_id_assoc, Iso.inv_hom_id, Category.comp_id] |
| 95 | exact hchart |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Semilattice.MappedChartNaturality.SemilatticeMappedChartNaturality |