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.Relative.StandardEtaleCover |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.StandardEtaleLift |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.NilpotentAffineSections |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.NilpotentOpenRestriction |
| 5 | |
| 6 | /-! # Lift Charts -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Etale.LiftCharts |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Actual standard-etale charts lifted over a nilpotent closed |
| 13 | thickening of the target. The reduced charts cover the original source, |
| 14 | and the maps to both original schemes retain their literal triangles. -/ |
| 15 | |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 20 | universe u |
| 21 | variable {X X₀ Y₀ : Scheme.{u}} (i : X₀ ⟶ X) [IsClosedImmersion i] |
| 22 | (hi : IsNilpotent i.ker) (f : Y₀ ⟶ X₀) [Etale f] [IsAffineHom f] |
| 23 | |
| 24 | abbrev baseCover : X₀.OpenCover where |
| 25 | I₀ := X.affineOpens |
| 26 | X U := (i ⁻¹ᵁ U.1).toScheme |
| 27 | f U := (i ⁻¹ᵁ U.1).ι |
| 28 | mem₀ := by |
| 29 | rw [Scheme.presieve₀_mem_precoverage_iff] |
| 30 | refine ⟨fun x => ?_, inferInstance⟩ |
| 31 | have hx : i x ∈ ⨆ U : X.affineOpens, U.1 := (iSup_affineOpens_eq_top X).symm ▸ trivial |
| 32 | obtain ⟨U, hU⟩ := TopologicalSpace.Opens.mem_iSup.mp hx |
| 33 | exact ⟨U, ⟨⟨x, hU⟩, rfl⟩⟩ |
| 34 | |
| 35 | instance baseCover_affine (U : (baseCover i).I₀) : IsAffine ((baseCover i).X U) := U.2.preimage i |
| 36 | |
| 37 | abbrev Index := Relative.StandardEtaleCover.Index f (baseCover i) |
| 38 | abbrev thickRing (U : X.affineOpens) : CommRingCat.{u} := Γ(U.1.toScheme, ⊤) |
| 39 | abbrev residueRing (U : X.affineOpens) : CommRingCat.{u} := Γ((i ⁻¹ᵁ U.1).toScheme, ⊤) |
| 40 | |
| 41 | instance thick_affine (U : X.affineOpens) : IsAffine U.1.toScheme := U.2 |
| 42 | instance residue_affine (U : X.affineOpens) : IsAffine (i ⁻¹ᵁ U.1).toScheme := U.2.preimage i |
| 43 | instance residueAlgebra (U : X.affineOpens) : Algebra (thickRing U) (residueRing i U) := |
| 44 | (i ∣_ U.1).appTop.hom.toAlgebra |
| 45 | |
| 46 | theorem coefficient_surjective (U : X.affineOpens) : |
| 47 | Function.Surjective (algebraMap (thickRing U) (residueRing i U)) := by |
| 48 | change Function.Surjective (i ∣_ U.1).appTop |
| 49 | simpa [Scheme.Hom.appTop] using (i ∣_ U.1).app_surjective ⊤ (isAffineOpen_top U.1.toScheme) |
| 50 | |
| 51 | include hi in |
| 52 | theorem coefficient_nilpotent (U : X.affineOpens) : |
| 53 | IsNilpotent (RingHom.ker (algebraMap (thickRing U) (residueRing i U))) := |
| 54 | NilpotentAffineSections.appTop (i ∣_ U.1) |
| 55 | (NilpotentOpenRestriction.nilpotent i hi U.1) |
| 56 | |
| 57 | abbrev pair (a : Index i f) : StandardEtalePair (residueRing i a.1) := by |
| 58 | letI := Relative.StandardEtaleCover.coordinateAlgebra f (baseCover i) a |
| 59 | exact (Relative.StandardEtaleCover.presentation f (baseCover i) a).P |
| 60 | |
| 61 | abbrev chartRing (a : Index i f) : Type u := |
| 62 | Finite.StandardEtaleLift.Ring (thickRing a.1) (residueRing i a.1) |
| 63 | (coefficient_surjective i a.1) (pair i f a) |
| 64 | |
| 65 | abbrev chart (a : Index i f) : Scheme.{u} := Spec (.of (chartRing i f a)) |
| 66 | abbrev reducedChart (a : Index i f) : Scheme.{u} := Spec (.of (pair i f a).Ring) |
| 67 | |
| 68 | def reduction (a : Index i f) : reducedChart i f a ⟶ chart i f a := |
| 69 | Spec.map (CommRingCat.ofHom (Finite.StandardEtaleLift.reduction |
| 70 | (thickRing a.1) (residueRing i a.1) (coefficient_surjective i a.1) (pair i f a))) |
| 71 | |
| 72 | instance reduction_closed (a : Index i f) : IsClosedImmersion (reduction i f a) := |
| 73 | Finite.StandardEtaleLift.reduction_closed _ _ _ _ |
| 74 | |
| 75 | include hi in |
| 76 | theorem reduction_nilpotent (a : Index i f) : IsNilpotent (reduction i f a).ker := |
| 77 | NilpotentAffineSections.spec _ |
| 78 | (Finite.StandardEtaleLift.kernel_nilpotent _ _ _ _ (coefficient_nilpotent i hi a.1)) |
| 79 | |
| 80 | include hi in |
| 81 | theorem reduction_surjective (a : Index i f) : Surjective (reduction i f a) := |
| 82 | Finite.StandardEtaleLift.reduction_surjective _ _ _ _ (coefficient_nilpotent i hi a.1) |
| 83 | |
| 84 | def reductionHomeomorph (a : Index i f) : reducedChart i f a ≃ₜ chart i f a := |
| 85 | Finite.StandardEtaleLift.reductionHomeomorph _ _ _ _ (coefficient_nilpotent i hi a.1) |
| 86 | |
| 87 | def sourceMap (a : Index i f) : reducedChart i f a ⟶ Y₀ := |
| 88 | Relative.StandardEtaleCover.presentedMap f (baseCover i) a |
| 89 | |
| 90 | instance sourceMap_open (a : Index i f) : IsOpenImmersion (sourceMap i f a) := |
| 91 | Relative.StandardEtaleCover.presentedMap_open f (baseCover i) a |
| 92 | |
| 93 | theorem sourceMap_covers (y : Y₀) : ∃ a : Index i f, y ∈ Set.range (sourceMap i f a) := |
| 94 | Relative.StandardEtaleCover.presented_covers f (baseCover i) y |
| 95 | |
| 96 | def chartBase (a : Index i f) : chart i f a ⟶ a.1.1.toScheme := |
| 97 | Spec.map (CommRingCat.ofHom (algebraMap (thickRing a.1) (chartRing i f a))) ≫ |
| 98 | a.1.1.toScheme.isoSpec.inv |
| 99 | |
| 100 | instance chartBase_etale (a : Index i f) : Etale (chartBase i f a) := by |
| 101 | let : Algebra.Etale (thickRing a.1) (chartRing i f a) := |
| 102 | StandardEtaleLiftAlgebra.etale _ _ _ |
| 103 | let : Etale (Spec.map (CommRingCat.ofHom (algebraMap (thickRing a.1) (chartRing i f a)))) := by |
| 104 | rw [HasRingHomProperty.Spec_iff (P := @Etale)] |
| 105 | exact RingHom.etale_algebraMap.mpr inferInstance |
| 106 | unfold chartBase |
| 107 | infer_instance |
| 108 | |
| 109 | def chartMap (a : Index i f) : chart i f a ⟶ X := chartBase i f a ≫ a.1.1.ι |
| 110 | |
| 111 | instance chartMap_etale (a : Index i f) : Etale (chartMap i f a) := by |
| 112 | unfold chartMap |
| 113 | infer_instance |
| 114 | |
| 115 | theorem reduction_over (a : Index i f) : reduction i f a ≫ chartMap i f a = sourceMap i f a ≫ f ≫ i := by |
| 116 | rw [chartMap, chartBase, reduction, ← Category.assoc, ← Category.assoc] |
| 117 | rw [(Finite.StandardEtaleLift.square (thickRing a.1) (residueRing i a.1) |
| 118 | (coefficient_surjective i a.1) (pair i f a)).w] |
| 119 | simp only [Category.assoc] |
| 120 | change Spec.map (CommRingCat.ofHom (algebraMap (residueRing i a.1) (pair i f a).Ring)) ≫ |
| 121 | Spec.map (i ∣_ a.1.1).appTop ≫ a.1.1.toScheme.isoSpec.inv ≫ a.1.1.ι = _ |
| 122 | rw [Scheme.isoSpec_inv_naturality_assoc] |
| 123 | rw [morphismRestrict_ι] |
| 124 | have h := congrArg (fun q : reducedChart i f a ⟶ X₀ => q ≫ i) |
| 125 | (Relative.StandardEtaleCover.presentedMap_over f (baseCover i) a).symm |
| 126 | dsimp only [pair, Relative.StandardEtaleCover.baseRing, baseCover, residueRing, |
| 127 | sourceMap, reducedChart] at h ⊢ |
| 128 | simpa only [Category.assoc] using h |
| 129 | |
| 130 | end |
| 131 | |
| 132 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Etale.LiftCharts |