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.Open |
| 2 | |
| 3 | /-! # Open Immersion -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.Models.OpenImmersion.Constructions.Foundations |
| 6 | |
| 7 | /-! A compact open immersion can be modeled as an actual open immersion. -/ |
| 8 | |
| 9 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 10 | open scoped _root_.NumberField |
| 11 | |
| 12 | universe u |
| 13 | |
| 14 | variable {K : Type u} [Field K] |
| 15 | |
| 16 | theorem open_subset_in_ambient_model |
| 17 | {X : Over (Spec (CommRingCat.of K))} (M : Foundations.Constructions.CoefficientModel K X) |
| 18 | (U : X.left.Opens) (hU : IsCompact (U : Set X.left)) : |
| 19 | ∃ (M' : Foundations.Constructions.CoefficientModel K X) (V : M'.model.left.Opens), |
| 20 | IsCompact (V : Set M'.model.left) ∧ M'.specialization ⁻¹ᵁ V = U := by |
| 21 | let e := M.expansionGenericIso |
| 22 | have hU' : IsCompact (e.inv ⁻¹ᵁ U : Set (Descent.Constructions.Foundations.expansionCone (𝓞 K) K M.coefficients M.model).pt) := |
| 23 | e.inv.isCompact_preimage hU |
| 24 | obtain ⟨i, V, hV, hi⟩ := Descent.Constructions.Foundations.compact_open_descends (𝓞 K) K M.coefficients M.model |
| 25 | (e.inv ⁻¹ᵁ U) hU' |
| 26 | refine ⟨M.atExpansion i, V, hV, ?_⟩ |
| 27 | rw [Foundations.Constructions.CoefficientModel.atExpansion_specialization] |
| 28 | change (e.hom ≫ (Descent.Constructions.Foundations.expansionCone (𝓞 K) K M.coefficients M.model).π.app i) ⁻¹ᵁ V = U |
| 29 | rw [Scheme.Hom.comp_preimage, hi, ← Scheme.Hom.comp_preimage, e.hom_inv_id] |
| 30 | rfl |
| 31 | |
| 32 | structure OpenImmersionModel |
| 33 | {W X : Over (Spec (CommRingCat.of K))} (f : W ⟶ X) where |
| 34 | ambient : Foundations.Constructions.CoefficientModel K X |
| 35 | source : Over (CoefficientSystem.Constructions.Foundations.coefficientBase (𝓞 K) K ambient.coefficients) |
| 36 | sourceFP : Models.Scheme.Constructions.Foundations.FinitePresentationMorphism source.hom |
| 37 | inclusion : source ⟶ ambient.model |
| 38 | openInclusion : IsOpenImmersion inclusion.left |
| 39 | specialization : W.left ⟶ source.left |
| 40 | cartesian : IsPullback specialization W.hom source.hom |
| 41 | (CoefficientSystem.Constructions.Foundations.genericBaseMap (𝓞 K) K ambient.coefficients) |
| 42 | compatibility : f.left ≫ ambient.specialization = specialization ≫ inclusion.left |
| 43 | |
| 44 | theorem open_immersion_has_model |
| 45 | {W X : Over (Spec (CommRingCat.of K))} (f : W ⟶ X) |
| 46 | [IsOpenImmersion f.left] [CompactSpace W.left] (M : Foundations.Constructions.CoefficientModel K X) : |
| 47 | Nonempty (OpenImmersionModel f) := by |
| 48 | have hU : IsCompact (f.left.opensRange : Set X.left) := |
| 49 | isCompact_range f.left.continuous |
| 50 | obtain ⟨M', V, hV, hpre⟩ := open_subset_in_ambient_model M f.left.opensRange hU |
| 51 | let : CompactSpace V.toScheme := isCompact_iff_compactSpace.mp hV |
| 52 | let : LocallyOfFinitePresentation M'.model.hom := M'.finitePresentation.1 |
| 53 | let : QuasiSeparated M'.model.hom := M'.finitePresentation.2.2 |
| 54 | let : QuasiSeparatedSpace M'.model.left := quasiSeparatedSpace_of_quasiSeparated M'.model.hom |
| 55 | let : QuasiSeparatedSpace V.toScheme := quasiSeparatedSpace_of_quasiSeparated V.ι |
| 56 | have hfp : Models.Scheme.Constructions.Foundations.FinitePresentationMorphism (V.ι ≫ M'.model.hom) := |
| 57 | ⟨inferInstance, inferInstance, inferInstance⟩ |
| 58 | have hr : Set.range (f.left ≫ M'.specialization) ⊆ Set.range V.ι := by |
| 59 | rintro _ ⟨w, rfl⟩ |
| 60 | rw [Scheme.Opens.range_ι, Scheme.Hom.comp_apply] |
| 61 | change M'.specialization (f.left w) ∈ V |
| 62 | have hw : f.left w ∈ M'.specialization ⁻¹ᵁ V := by |
| 63 | rw [hpre] |
| 64 | exact ⟨w, rfl⟩ |
| 65 | exact hw |
| 66 | let p := IsOpenImmersion.lift V.ι (f.left ≫ M'.specialization) hr |
| 67 | have hp : p ≫ V.ι = f.left ≫ M'.specialization := IsOpenImmersion.lift_fac .. |
| 68 | have hs : IsPullback p f.left V.ι M'.specialization := |
| 69 | IsOpenImmersion.isPullback _ _ _ _ hp.symm (by simpa using hpre) |
| 70 | have hcart : IsPullback p W.hom (V.ι ≫ M'.model.hom) |
| 71 | (CoefficientSystem.Constructions.Foundations.genericBaseMap (𝓞 K) K M'.coefficients) := by |
| 72 | rw [← f.w] |
| 73 | exact hs.paste_vert M'.cartesian |
| 74 | exact ⟨{ |
| 75 | ambient := M' |
| 76 | source := Over.mk (V.ι ≫ M'.model.hom) |
| 77 | sourceFP := hfp |
| 78 | inclusion := Over.homMk V.ι rfl |
| 79 | openInclusion := show IsOpenImmersion V.ι from inferInstance |
| 80 | specialization := p |
| 81 | cartesian := hcart |
| 82 | compatibility := hp.symm }⟩ |
| 83 | |
| 84 | end OAI.ArithmeticGeometry.Models.OpenImmersion.Constructions.Foundations |