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.NonemptyCechNerve |
| 2 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.HomotopyOppositeUnop |
| 3 | import Mathlib.AlgebraicTopology.ExtraDegeneracy |
| 4 | import Mathlib.CategoryTheory.Limits.Preorder |
| 5 | |
| 6 | /-! # Cech Contraction -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Semilattice.CechContraction.SemilatticeCechContraction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A Čech contraction in a meet semilattice with a greatest element. |
| 13 | This applies to affine opens contained in one fixed affine chart. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite Simplicial |
| 16 | |
| 17 | universe u w t z |
| 18 | variable (C : Type u) [SemilatticeInf C] [OrderTop C] |
| 19 | {ι : Type w} (U : ι → C) |
| 20 | |
| 21 | omit [OrderTop C] in |
| 22 | /-- Over a preorder, a map of formal coproducts is determined by |
| 23 | its function on components. -/ |
| 24 | theorem hom_ext_indices {S T : FormalCoproduct.{w} C} {f g : S ⟶ T} |
| 25 | (h : f.f = g.f) : f = g := |
| 26 | FormalCoproduct.hom_ext h (fun _ => Subsingleton.elim _ _) |
| 27 | |
| 28 | /-- The Čech nerve augmented to the greatest element. -/ |
| 29 | def augmented : SimplicialObject.Augmented (FormalCoproduct.{w} C) where |
| 30 | left := IntegralComparison.NonemptyCechNerve.nerve U |
| 31 | right := (FormalCoproduct.incl C).obj ⊤ |
| 32 | hom := |
| 33 | { app _ := { f := fun _ => PUnit.unit, φ := fun _ => homOfLE le_top } |
| 34 | naturality _ _ _ := hom_ext_indices C rfl } |
| 35 | |
| 36 | variable (i₀ : ι) (hU : U i₀ = ⊤) |
| 37 | |
| 38 | /-- Select the greatest member in degree zero. -/ |
| 39 | def sectionZero : (augmented C U).right ⟶ (augmented C U).left _⦋0⦌ where |
| 40 | f _ _ := i₀ |
| 41 | φ _ := Pi.lift (fun _ => homOfLE (by change ⊤ ≤ U i₀; rw [hU])) |
| 42 | |
| 43 | /-- Insert the greatest member at the start of a tuple. -/ |
| 44 | def insert (n : ℕ) : (augmented C U).left _⦋n⦌ ⟶ (augmented C U).left _⦋n + 1⦌ where |
| 45 | f v := Fin.cons i₀ v |
| 46 | φ v := Pi.lift (Fin.cases (homOfLE (by |
| 47 | change (∏ᶜ (U ∘ v)) ≤ U i₀ |
| 48 | rw [hU] |
| 49 | exact le_top)) |
| 50 | (fun j => Pi.π (U ∘ v) j)) |
| 51 | |
| 52 | /-- The insertion satisfies the simplicial contraction identities. -/ |
| 53 | def extraDegeneracy : SimplicialObject.Augmented.ExtraDegeneracy (augmented C U) where |
| 54 | s' := sectionZero C U i₀ hU |
| 55 | s := insert C U i₀ hU |
| 56 | s'_comp_ε := by |
| 57 | apply hom_ext_indices C |
| 58 | funext v |
| 59 | cases v |
| 60 | rfl |
| 61 | s₀_comp_δ₁ := by |
| 62 | apply hom_ext_indices C |
| 63 | funext v j |
| 64 | fin_cases j |
| 65 | rfl |
| 66 | s_comp_δ₀ n := by |
| 67 | apply hom_ext_indices C |
| 68 | funext v j |
| 69 | change Fin (n + 1) → ι at v |
| 70 | change Fin (n + 1) at j |
| 71 | change (Fin.cons i₀ v : Fin (n + 2) → ι) (Fin.succAbove 0 j) = v j |
| 72 | simp |
| 73 | s_comp_δ n i := by |
| 74 | apply hom_ext_indices C |
| 75 | funext v j |
| 76 | change Fin (n + 2) → ι at v |
| 77 | change Fin (n + 2) at j |
| 78 | change (Fin.cons i₀ v : Fin (n + 3) → ι) (i.succ.succAbove j) = |
| 79 | (Fin.cons i₀ (fun a => v (i.succAbove a)) : Fin (n + 2) → ι) j |
| 80 | refine Fin.cases ?_ (fun j => ?_) j |
| 81 | · simp |
| 82 | · simp |
| 83 | s_comp_σ n i := by |
| 84 | apply hom_ext_indices C |
| 85 | funext v j |
| 86 | change Fin (n + 1) → ι at v |
| 87 | change Fin (n + 3) at j |
| 88 | change (Fin.cons i₀ v : Fin (n + 2) → ι) (i.succ.predAbove j) = |
| 89 | (Fin.cons i₀ (fun a => v (i.predAbove a)) : Fin (n + 3) → ι) j |
| 90 | refine Fin.cases ?_ (fun j => ?_) j |
| 91 | · simp |
| 92 | · simp |
| 93 | |
| 94 | variable {A : Type t} [Category.{z} A] [Preadditive A] [HasProducts.{w} A] [HasZeroObject A] |
| 95 | (P : Cᵒᵖ ⥤ A) |
| 96 | |
| 97 | def point : A := |
| 98 | ((FormalCoproduct.evalOp.{w} C A).obj P).obj (op ((FormalCoproduct.incl.{w} C).obj ⊤)) |
| 99 | |
| 100 | def pointIso : point C P ≅ P.obj (op ⊤) := |
| 101 | ((FormalCoproduct.evalOpCompInlIsoId.{w} C A).app P).app (op ⊤) |
| 102 | |
| 103 | def coefficientsExtraDegeneracy := |
| 104 | (extraDegeneracy C U i₀ hU).map (((FormalCoproduct.evalOp C A).obj P).rightOp) |
| 105 | |
| 106 | def homotopyEquiv : HomotopyEquiv ((CochainComplex.single₀ A).obj (P.obj (op ⊤))) |
| 107 | ((IntegralComparison.NonemptyCechNerve.complexFunctor U).obj P) := |
| 108 | (((HomotopyEquiv.ofIso (AlgebraicGeometry.Crystalline.Cohomology.HomotopyOppositeUnop.HomotopyOpposite.cofaceIso |
| 109 | ((FormalCoproduct.cosimplicialObjectFunctor (IntegralComparison.NonemptyCechNerve.nerve U)).obj P)).symm).trans |
| 110 | (AlgebraicGeometry.Crystalline.Cohomology.HomotopyOppositeUnop.HomotopyOpposite.unop (coefficientsExtraDegeneracy C U i₀ hU P).homotopyEquiv)).trans |
| 111 | (HomotopyEquiv.ofIso (AlgebraicGeometry.Crystalline.Cohomology.HomotopyOppositeUnop.HomotopyOpposite.singleIso (point C P)))).trans |
| 112 | (HomotopyEquiv.ofIso ((CochainComplex.single₀ A).mapIso (pointIso C P))) |>.symm |
| 113 | |
| 114 | end |
| 115 | |
| 116 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Semilattice.CechContraction.SemilatticeCechContraction |