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.Sheafified.ConstantCochainCoordinates |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.FrameCech.SourceComponent |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Presheaf.ConeCechMap |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Sheaf.PresheafSectionComplex |
| 5 | |
| 6 | /-! # Constant Cech Map -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Sheafified.ConstantCechMap |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The actual sheafified constant-complex section map followed by |
| 13 | Čech restriction equals the literal presheaf cone augmentation. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 16 | open scoped Simplicial |
| 17 | |
| 18 | universe u z |
| 19 | variable {C : Type u} [Category.{0} C] [HasBinaryProducts C] |
| 20 | {ι : Type} [Finite ι] (F : ι → C) |
| 21 | (R : Type u) [CommRing R] (J : GrothendieckTopology C) |
| 22 | [HasExt.{max u z} (Sheaf J (ModuleCat.{u} R))] |
| 23 | (M : CochainComplex (ModuleCat.{u} R) ℕ) |
| 24 | (P : CochainComplex (Cᵒᵖ ⥤ ModuleCat.{u} R) ℕ) |
| 25 | (a : ((Functor.const Cᵒᵖ).mapHomologicalComplex (.up ℕ)).obj M ⟶ P) |
| 26 | |
| 27 | local notation "K" => OAI.NumberTheory.PadicHodge.IntegralComparison.Sheafified.ConstantCochainCoordinates.sheafComplex R J P |
| 28 | |
| 29 | def presheafComplex := ((sheafToPresheaf J (ModuleCat.{u} R)).mapHomologicalComplex (.up ℕ)).obj K |
| 30 | |
| 31 | def presheafMap : ((Functor.const Cᵒᵖ).mapHomologicalComplex (.up ℕ)).obj M ⟶ |
| 32 | presheafComplex R J P := a ≫ CochainUnit.Pairing.unit.{u,0,u} J R P |
| 33 | |
| 34 | local notation "Q" => OAI.NumberTheory.PadicHodge.IntegralComparison.Sheafified.ConstantCechMap.presheafComplex R J P |
| 35 | local notation "D" => OAI.NumberTheory.PadicHodge.IntegralComparison.Global.SectionCechEdge.diagram R Q |
| 36 | local notation "s" => OAI.NumberTheory.PadicHodge.IntegralComparison.Sheafified.ConstantCochainCoordinates.sectionMap R J M P a |
| 37 | |
| 38 | def restriction (q : ℕ) := Cech.DiagramAugmentationCoordinates.Complex.restriction F D M |
| 39 | (Presheaf.ConeCechMap.cone R M Q (presheafMap R J M P a)) q |
| 40 | |
| 41 | omit [Finite ι] in |
| 42 | theorem restriction_square (q : ℕ) : |
| 43 | (s).f q ≫ (Ext.ZeroPresheafSections.iso.{u,0,u,z} R J).hom.app ((K).X q) ≫ |
| 44 | (ModuleCat.uliftFunctor.{z,u} R).map |
| 45 | (FrameCech.SourceComponent.restriction F R J ((K).X q)) = |
| 46 | (ModuleCat.uliftFunctor.{z,u} R).map (restriction F R J M P a q) := by |
| 47 | apply ModuleCat.hom_ext |
| 48 | apply LinearMap.ext |
| 49 | intro x |
| 50 | apply ULift.ext |
| 51 | apply Module.ProductScalarKernel.element_ext |
| 52 | (fun t : Fin 1 → ι => ((K).X q).obj.obj (op (Presentation.TupleProducts.family F 0 t))) |
| 53 | intro t |
| 54 | have h₁ := FrameCech.SourceComponent.restriction_apply F R J ((K).X q) |
| 55 | (Ext.ZeroPresheafSections.equivalence.{u,0,u,z} R J ((K).X q) |
| 56 | ((s).f q x)).down t |
| 57 | have h₂ := ConcreteCategory.congr_hom |
| 58 | (Pi.lift_comp_π (fun t : Fin 1 → ι => |
| 59 | ((presheafMap R J M P a).f q).app (op (Presentation.TupleProducts.family F 0 t))) t) x.down |
| 60 | exact h₁.trans ((ConstantCochainCoordinates.coordinates.{u,0,z} |
| 61 | R J M P a q x.down (op (Presentation.TupleProducts.family F 0 t))).trans h₂.symm) |
| 62 | |
| 63 | def map := Presheaf.ConeCechMap.map R F M Q (presheafMap R J M P a) |
| 64 | |
| 65 | private theorem evaluation_square {A : Type*} [Category A] |
| 66 | {V W T L E : A} (a : V ⟶ W) (b : W ⟶ T) (r : T ⟶ L) |
| 67 | (r' : V ⟶ L) (j : L ⟶ E) (e : T ⟶ E) (e' : V ⟶ E) |
| 68 | (h : a ≫ b ≫ r = r') (he : e = r ≫ j) (he' : e' = r' ≫ j) : |
| 69 | (a ≫ b) ≫ e = e' := by |
| 70 | rw [he, ← Category.assoc, Category.assoc a b r, h, ← he'] |
| 71 | |
| 72 | theorem square : (s) ≫ (IntegralComparison.Sheaf.PresheafSectionComplex.complexIso.{u,0,u,z} R J K).hom ≫ |
| 73 | ((ModuleCat.uliftFunctor.{z,u} R).mapHomologicalComplex (.up ℕ)).map |
| 74 | (Global.SectionCechEdge.edge R F Q) = |
| 75 | ((ModuleCat.uliftFunctor.{z,u} R).mapHomologicalComplex (.up ℕ)).map |
| 76 | (ConstantCechMap.map F R J M P a) := by |
| 77 | apply HomologicalComplex.Hom.ext |
| 78 | funext q |
| 79 | have he := (congrArg (ModuleCat.uliftFunctor.{z,u} R).map |
| 80 | (Global.SectionCechEdge.component R F Q q)).trans |
| 81 | ((ModuleCat.uliftFunctor.{z,u} R).map_comp _ _) |
| 82 | have he' := (congrArg (ModuleCat.uliftFunctor.{z,u} R).map |
| 83 | (Cech.DiagramAugmentationCoordinates.Complex.augmentation_component F D M |
| 84 | (Presheaf.ConeCechMap.cone R M Q (presheafMap R J M P a)) q)).trans |
| 85 | ((ModuleCat.uliftFunctor.{z,u} R).map_comp _ _) |
| 86 | exact (Category.assoc _ _ _).symm.trans |
| 87 | (evaluation_square _ _ _ _ _ _ _ (restriction_square F R J M P a q) he he') |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Sheafified.ConstantCechMap |