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.AlgebraicGeometry.Crystalline.Cohomology.Cech.Descent |
| 2 | import Mathlib.AlgebraicTopology.ExtraDegeneracy |
| 3 | import Mathlib.AlgebraicGeometry.Restrict |
| 4 | |
| 5 | /-! # Contraction -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.Cech.Contraction.CechContraction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Cohomology: local contraction of the Čech nerve |
| 13 | |
| 14 | When a member of the family is the whole open, inserting that member gives |
| 15 | an extra degeneracy. This is the local splitting used in Čech descent. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory Limits Opposite _root_.AlgebraicGeometry Simplicial |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable (X : Scheme.{u}) {ι : Type u} (U : ι → X.Opens) |
| 23 | |
| 24 | /-- Over a lattice of opens, a map of formal coproducts is determined by |
| 25 | its function on components. -/ |
| 26 | theorem hom_ext_indices {S T : FormalCoproduct.{u} X.Opens} {f g : S ⟶ T} |
| 27 | (h : f.f = g.f) : f = g := |
| 28 | FormalCoproduct.hom_ext h (fun _ => Subsingleton.elim _ _) |
| 29 | |
| 30 | /-- The Čech nerve augmented to the whole scheme. -/ |
| 31 | def augmented : SimplicialObject.Augmented (FormalCoproduct.{u} X.Opens) where |
| 32 | left := (FormalCoproduct.mk ι U).cech |
| 33 | right := (FormalCoproduct.incl X.Opens).obj ⊤ |
| 34 | hom := |
| 35 | { app _ := { f := fun _ => PUnit.unit, φ := fun _ => homOfLE le_top } |
| 36 | naturality _ _ _ := hom_ext_indices X rfl } |
| 37 | |
| 38 | variable (i₀ : ι) (hU : U i₀ = ⊤) |
| 39 | |
| 40 | /-- Select the whole-open member in degree zero. -/ |
| 41 | def sectionZero : (augmented X U).right ⟶ (augmented X U).left _⦋0⦌ where |
| 42 | f _ _ := i₀ |
| 43 | φ _ := Pi.lift (fun _ => homOfLE (by change ⊤ ≤ U i₀; rw [hU])) |
| 44 | |
| 45 | /-- Insert the whole-open member at the start of a tuple. -/ |
| 46 | def insert (n : ℕ) : (augmented X U).left _⦋n⦌ ⟶ (augmented X U).left _⦋n + 1⦌ where |
| 47 | f v := Fin.cons i₀ v |
| 48 | φ v := Pi.lift (Fin.cases (homOfLE (by |
| 49 | change (∏ᶜ (U ∘ v)) ≤ U i₀ |
| 50 | rw [hU] |
| 51 | exact le_top)) |
| 52 | (fun j => Pi.π (U ∘ v) j)) |
| 53 | |
| 54 | /-- The insertion satisfies the simplicial contraction identities. -/ |
| 55 | def extraDegeneracy : SimplicialObject.Augmented.ExtraDegeneracy (augmented X U) where |
| 56 | s' := sectionZero X U i₀ hU |
| 57 | s := insert X U i₀ hU |
| 58 | s'_comp_ε := by |
| 59 | apply hom_ext_indices X |
| 60 | funext v |
| 61 | cases v |
| 62 | rfl |
| 63 | s₀_comp_δ₁ := by |
| 64 | apply hom_ext_indices X |
| 65 | funext v j |
| 66 | fin_cases j |
| 67 | rfl |
| 68 | s_comp_δ₀ n := by |
| 69 | apply hom_ext_indices X |
| 70 | funext v j |
| 71 | change Fin (n + 1) → ι at v |
| 72 | change Fin (n + 1) at j |
| 73 | change (Fin.cons i₀ v : Fin (n + 2) → ι) (Fin.succAbove 0 j) = v j |
| 74 | simp |
| 75 | s_comp_δ n i := by |
| 76 | apply hom_ext_indices X |
| 77 | funext v j |
| 78 | change Fin (n + 2) → ι at v |
| 79 | change Fin (n + 2) at j |
| 80 | change (Fin.cons i₀ v : Fin (n + 3) → ι) (i.succ.succAbove j) = |
| 81 | (Fin.cons i₀ (fun a => v (i.succAbove a)) : Fin (n + 2) → ι) j |
| 82 | refine Fin.cases ?_ (fun j => ?_) j |
| 83 | · simp |
| 84 | · simp |
| 85 | s_comp_σ n i := by |
| 86 | apply hom_ext_indices X |
| 87 | funext v j |
| 88 | change Fin (n + 1) → ι at v |
| 89 | change Fin (n + 3) at j |
| 90 | change (Fin.cons i₀ v : Fin (n + 2) → ι) (i.succ.predAbove j) = |
| 91 | (Fin.cons i₀ (fun a => v (i.predAbove a)) : Fin (n + 3) → ι) j |
| 92 | refine Fin.cases ?_ (fun j => ?_) j |
| 93 | · simp |
| 94 | · simp |
| 95 | |
| 96 | /-- Every presheaf sends the local splitting to a splitting of its |
| 97 | augmented Čech diagram, viewed in the opposite coefficient category. -/ |
| 98 | def coefficientsExtraDegeneracy (R : Type u) [CommRing R] |
| 99 | (P : X.Opensᵒᵖ ⥤ ModuleCat.{u} R) := |
| 100 | (extraDegeneracy X U i₀ hU).map |
| 101 | (((FormalCoproduct.evalOp X.Opens (ModuleCat.{u} R)).obj P).rightOp) |
| 102 | |
| 103 | /-- The split local Čech diagram is homotopy equivalent to its augmentation. -/ |
| 104 | def coefficientsHomotopyEquiv (R : Type u) [CommRing R] |
| 105 | (P : X.Opensᵒᵖ ⥤ ModuleCat.{u} R) := |
| 106 | (coefficientsExtraDegeneracy X U i₀ hU R P).homotopyEquiv |
| 107 | |
| 108 | variable (i : ι) |
| 109 | |
| 110 | /-- Pull the whole family back to one of its open subschemes. -/ |
| 111 | def restrictedFamily (j : ι) : (U i).toScheme.Opens := (U i).ι ⁻¹ᵁ U j |
| 112 | |
| 113 | @[simp] |
| 114 | theorem restrictedFamily_self : restrictedFamily X U i i = ⊤ := |
| 115 | (U i).ι_preimage_self |
| 116 | |
| 117 | /-- The pulled-back Čech nerve always has an explicit contraction on a |
| 118 | member of the family. -/ |
| 119 | def localExtraDegeneracy : |
| 120 | SimplicialObject.Augmented.ExtraDegeneracy |
| 121 | (augmented (U i).toScheme (restrictedFamily X U i)) := |
| 122 | extraDegeneracy (U i).toScheme (restrictedFamily X U i) i (restrictedFamily_self X U i) |
| 123 | |
| 124 | /-- Restrict the coefficient presheaf to an open subscheme. -/ |
| 125 | def restrictedCoefficients (R : Type u) [CommRing R] |
| 126 | (P : X.Opensᵒᵖ ⥤ ModuleCat.{u} R) : (U i).toScheme.Opensᵒᵖ ⥤ ModuleCat.{u} R := |
| 127 | (U i).ι.opensFunctor.op ⋙ P |
| 128 | |
| 129 | /-- Local Čech exactness is supplied by a homotopy equivalence on each |
| 130 | member of the family, with the actual restricted coefficients. -/ |
| 131 | def localCoefficientsHomotopyEquiv (R : Type u) [CommRing R] |
| 132 | (P : X.Opensᵒᵖ ⥤ ModuleCat.{u} R) := |
| 133 | coefficientsHomotopyEquiv (U i).toScheme (restrictedFamily X U i) i |
| 134 | (restrictedFamily_self X U i) R (restrictedCoefficients X U i R P) |
| 135 | |
| 136 | end |
| 137 | |
| 138 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.Cech.Contraction.CechContraction |