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.ArithmeticGeometry.Models.OpenImmersionStages |
| 2 | import OAI.ArithmeticGeometry.Models.Isomorphisms |
| 3 | import OAI.ArithmeticGeometry.Models.GluingFiniteness |
| 4 | |
| 5 | /-! # Glued -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.Models.Glued.Constructions.Foundations |
| 8 | |
| 9 | /-! Constructing a model of a union from models of its two open pieces. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 12 | open scoped _root_.NumberField |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem open_gluing_has_model |
| 17 | {K : Type u} [Field K] [NumberField K] |
| 18 | {W X Y P : Over (Spec (CommRingCat.of K))} |
| 19 | (f : W ⟶ X) (g : W ⟶ Y) (i : X ⟶ P) (j : Y ⟶ P) |
| 20 | [IsOpenImmersion f.left] [IsOpenImmersion g.left] [CompactSpace W.left] |
| 21 | (hP : IsPushout f.left g.left i.left j.left) |
| 22 | (MX : Foundations.Constructions.CoefficientModel K X) (MY : Foundations.Constructions.CoefficientModel K Y) : |
| 23 | Nonempty (Foundations.Constructions.CoefficientModel K P) := by |
| 24 | classical |
| 25 | obtain ⟨sX, ⟨L⟩⟩ := OpenImmersionStages.Constructions.Foundations.open_immersion_has_stage f MX |
| 26 | obtain ⟨sY, ⟨R⟩⟩ := OpenImmersionStages.Constructions.Foundations.open_immersion_has_stage g MY |
| 27 | let s := sX ∪ sY |
| 28 | let L₁ := L.enlarge (show sX ⊆ s from Finset.subset_union_left) |
| 29 | let R₁ := R.enlarge (show sY ⊆ s from Finset.subset_union_right) |
| 30 | obtain ⟨t, hst, e, he⟩ := Isomorphisms.Constructions.Foundations.isomorphism_between_models_descends |
| 31 | L₁.source R₁.source L₁.sourceFP R₁.sourceFP L₁.pSource R₁.pSource |
| 32 | L₁.sourceCartesian R₁.sourceCartesian (Iso.refl W) |
| 33 | let L₂ := L₁.enlarge hst |
| 34 | let R₂ := R₁.enlarge hst |
| 35 | let e₂ : L₂.source ≅ R₂.source := e |
| 36 | have he' : L₂.pSource ≫ e₂.hom.left = R₂.pSource := by |
| 37 | exact he.trans (Category.id_comp _) |
| 38 | let f₀ : L₂.source ⟶ L₂.target := L₂.inclusion |
| 39 | let g₀ : L₂.source ⟶ R₂.target := e₂.hom ≫ R₂.inclusion |
| 40 | let : IsOpenImmersion f₀.left := L₂.openInclusion |
| 41 | let : IsOpenImmersion R₂.inclusion.left := R₂.openInclusion |
| 42 | let : IsOpenImmersion e₂.hom.left := by |
| 43 | change IsOpenImmersion ((Over.forget _).mapIso e₂).hom |
| 44 | infer_instance |
| 45 | let : IsOpenImmersion g₀.left := by |
| 46 | change IsOpenImmersion (e₂.hom.left ≫ R₂.inclusion.left) |
| 47 | infer_instance |
| 48 | have hg : g.left ≫ R₂.pTarget = L₂.pSource ≫ g₀.left := by |
| 49 | change g.left ≫ R₂.pTarget = L₂.pSource ≫ (e₂.hom.left ≫ R₂.inclusion.left) |
| 50 | erw [← Category.assoc, he'] |
| 51 | exact R₂.compatibility.symm |
| 52 | let P₀ := GluingBaseChange.Constructions.Foundations.openGluedOver f₀ g₀ |
| 53 | let b := CoefficientSystem.Constructions.Foundations.genericBaseMap (𝓞 K) K t |
| 54 | have hG := GluingBaseChange.Constructions.Foundations.openGluedBaseChange_isPushout b f g f₀ g₀ |
| 55 | L₂.pSource L₂.pTarget R₂.pTarget |
| 56 | L₂.sourceCartesian L₂.targetCartesian R₂.targetCartesian L₂.compatibility.symm hg |
| 57 | let eP : ((Over.pullback b).obj P₀).left ≅ P.left := |
| 58 | hG.isoIsPushout X.left Y.left hP |
| 59 | have heP : eP.hom ≫ P.hom = ((Over.pullback b).obj P₀).hom := by |
| 60 | apply hG.hom_ext |
| 61 | · rw [← Category.assoc, IsPushout.inl_isoIsPushout_hom] |
| 62 | exact i.w.trans (GluingBaseChange.Constructions.Foundations.baseChangeChart_snd b (GluingBaseChange.Constructions.Foundations.openGluedInl f₀ g₀) L₂.pTarget |
| 63 | L₂.targetCartesian.w).symm |
| 64 | · rw [← Category.assoc, IsPushout.inr_isoIsPushout_hom] |
| 65 | exact j.w.trans (GluingBaseChange.Constructions.Foundations.baseChangeChart_snd b (GluingBaseChange.Constructions.Foundations.openGluedInr f₀ g₀) R₂.pTarget |
| 66 | R₂.targetCartesian.w).symm |
| 67 | let : IsLocallyNoetherian (CoefficientSystem.Constructions.Foundations.coefficientBase (𝓞 K) K t) := ModelFiniteness.Constructions.Foundations.coefficientBase_locallyNoetherian K t |
| 68 | exact ⟨{ |
| 69 | coefficients := t |
| 70 | model := P₀ |
| 71 | finitePresentation := GluingFiniteness.Constructions.Foundations.openGluedOver_finitePresentation f₀ g₀ L₂.targetFP R₂.targetFP |
| 72 | genericIso := Over.isoMk eP heP }⟩ |
| 73 | |
| 74 | end OAI.ArithmeticGeometry.Models.Glued.Constructions.Foundations |