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.BoundedCrystalline.CechCup |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Bounded.PostcomposeTopology |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Frame.CosimplicialRefinement |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Frame.TupleRefinement |
| 5 | |
| 6 | /-! # Cup Refinement -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedCrystalline.CupRefinement |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Actual geometric maps between bounded frame families give maps of the |
| 13 | native cosimplicial coefficient algebras. Their maps on the original |
| 14 | categorical module-complex homology preserve every cup product. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 17 | |
| 18 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedCrystalline.Site |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | private theorem contravariantSquare {C : Type*} [Category* C] |
| 23 | {D : Type*} [Category* D] (H : Cᵒᵖ ⥤ D) |
| 24 | {A B C' D' : C} (a : A ⟶ B) (b : B ⟶ D') (c : A ⟶ C') (d : C' ⟶ D') |
| 25 | (h : a ≫ b = c ≫ d) : H.map b.op ≫ H.map a.op = H.map d.op ≫ H.map c.op := |
| 26 | (H.map_comp b.op a.op).symm.trans |
| 27 | ((congrArg (fun z => H.map z.op) h).trans (H.map_comp d.op c.op)) |
| 28 | |
| 29 | variable {p : ℕ} [Fact p.Prime] {B : Type u} [CommRing B] |
| 30 | {J : Ideal B} {δ : DividedPowers J} {X Y : Scheme.{u}} |
| 31 | {f : X ⟶ Spec (CommRingCat.of B)} {fY : Y ⟶ Spec (CommRingCat.of B)} |
| 32 | [IsSeparated f] [IsSeparated fY] |
| 33 | (g : X ⟶ Y) (hg : g ≫ fY = f) (n : ℕ) |
| 34 | {ι κ : Type u} (FX : ι → Site.Objects (p := p) (J := J) (δ := δ) f n) |
| 35 | (FY : κ → Site.Objects (p := p) (J := J) (δ := δ) fY n) (ρ : ι → κ) |
| 36 | (α : ∀ i, (BoundedOpen.Equivalence.postcompose g hg n).obj (FX i) ⟶ FY (ρ i)) |
| 37 | |
| 38 | local notation "R" => OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.ExactRestriction.Coeff (B := B) |
| 39 | local notation "G" => OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedOpen.Equivalence.postcompose (p := p) (J := J) (δ := δ) g hg n |
| 40 | local notation "HX" => Functor.comp (Functor.op (OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedCrystalline.Site.inclusion |
| 41 | (p := p) (J := J) (δ := δ) f n)) (CechCup.structureAlgebraPresheaf f) |
| 42 | local notation "HY" => Functor.comp (Functor.op (OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedCrystalline.Site.inclusion |
| 43 | (p := p) (J := J) (δ := δ) fY n)) (CechCup.structureAlgebraPresheaf fY) |
| 44 | |
| 45 | local instance algebraProducts : HasProducts.{u} (CommAlgCat.{u + 1} R) := by |
| 46 | have h : HasLimitsOfSize.{u, u} (CommAlgCat.{u + 1} R) := |
| 47 | hasLimitsOfSizeShrink.{u, u, u + 1, u + 1} _ |
| 48 | exact fun I => h.has_limits_of_shape (Discrete I) |
| 49 | |
| 50 | def coefficient (a : ℕ) (t : Fin (a + 1) → ι) : |
| 51 | (HY).obj (op (Presentation.TupleProducts.family.{u + 1, u} FY a (ρ ∘ t))) ⟶ |
| 52 | (HX).obj (op (Presentation.TupleProducts.family.{u + 1, u} FX a t)) := |
| 53 | (HY).map (Frame.TupleRefinement.map.{u + 1, u} G FX FY ρ α a t).op |
| 54 | |
| 55 | theorem coefficient_naturality (a b : ℕ) (θ : Fin (b + 1) → Fin (a + 1)) (t : Fin (a + 1) → ι) : |
| 56 | coefficient g hg n FX FY ρ α b (t ∘ θ) ≫ |
| 57 | (HX).map (Presentation.ResolutionFaceMaps.productMap.{u + 1, u} FX θ t).op = |
| 58 | (HY).map (Presentation.ResolutionFaceMaps.productMap.{u + 1, u} FY θ (ρ ∘ t)).op ≫ |
| 59 | coefficient g hg n FX FY ρ α a t := |
| 60 | contravariantSquare HY |
| 61 | ((G).map (Presentation.ResolutionFaceMaps.productMap.{u + 1, u} FX θ t)) |
| 62 | (Frame.TupleRefinement.map.{u + 1, u} G FX FY ρ α b (t ∘ θ)) |
| 63 | (Frame.TupleRefinement.map.{u + 1, u} G FX FY ρ α a t) |
| 64 | (Presentation.ResolutionFaceMaps.productMap.{u + 1, u} FY θ (ρ ∘ t)) |
| 65 | (Frame.TupleRefinement.naturality.{u + 1, u} G FX FY ρ α a b θ t) |
| 66 | |
| 67 | def map : CechCup.cochainAlgebra fY n FY ⟶ |
| 68 | CechCup.cochainAlgebra f n FX := |
| 69 | Frame.CosimplicialRefinement.map.{u + 1, u} FY FX ρ HY HX |
| 70 | (coefficient g hg n FX FY ρ α) (coefficient_naturality g hg n FX FY ρ α) |
| 71 | |
| 72 | def complexMap := Cosimplicial.ModuleCup.complexMap (CupRefinement.map g hg n FX FY ρ α) |
| 73 | |
| 74 | theorem cohomologyCup_natural (i j : ℕ) |
| 75 | (x : (Cosimplicial.ModuleComplex.complex (CechCup.cochainAlgebra fY n FY)).homology i) |
| 76 | (y : (Cosimplicial.ModuleComplex.complex (CechCup.cochainAlgebra fY n FY)).homology j) : |
| 77 | HomologicalComplex.homologyMap (complexMap g hg n FX FY ρ α) (i + j) |
| 78 | (Cosimplicial.ModuleCup.cohomologyCup _ i j x y) = |
| 79 | Cosimplicial.ModuleCup.cohomologyCup _ i j |
| 80 | (HomologicalComplex.homologyMap (complexMap g hg n FX FY ρ α) i x) |
| 81 | (HomologicalComplex.homologyMap (complexMap g hg n FX FY ρ α) j y) := |
| 82 | Cosimplicial.ModuleCup.cohomologyCup_natural (CupRefinement.map g hg n FX FY ρ α) i j x y |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.NumberTheory.PadicHodge.IntegralComparison.BoundedCrystalline.CupRefinement |