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.SpreadingOut.GenericSmoothness |
| 2 | import OAI.ArithmeticGeometry.Models.SpreadingOut.ClosedImmersion |
| 3 | |
| 4 | /-! # Coefficient Smoothness -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.Models.SpreadingOut.CoefficientSmoothness.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Smoothness of a proper generic fiber spreads after one more finite |
| 11 | enlargement of its coefficient ring. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | open scoped _root_.NumberField |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | /-- Over an integral affine base, the proper image of the nonsmooth locus |
| 19 | can be removed by inverting one nonzero element. -/ |
| 20 | theorem proper_smooth_generic_fiber_has_smooth_basicOpen |
| 21 | (R K : Type u) [CommRing R] [IsDomain R] [Field K] |
| 22 | [Algebra R K] [IsFractionRing R K] |
| 23 | {X : Scheme.{u}} (f : X ⟶ Spec (.of R)) |
| 24 | [IsProper f] [LocallyOfFinitePresentation f] |
| 25 | [Smooth (pullback.snd f (Spec.map (CommRingCat.ofHom (algebraMap R K))))] : |
| 26 | ∃ (a : R), a ≠ 0 ∧ |
| 27 | Smooth (f ∣_ (PrimeSpectrum.basicOpen a : (Spec (.of R)).Opens)) := by |
| 28 | let Z : Set (PrimeSpectrum R) := f '' (f.smoothLocus : Set X)ᶜ |
| 29 | have hZ : IsClosed Z := f.isClosedMap _ f.smoothLocus.isOpen.isClosed_compl |
| 30 | have hη : (⊥ : PrimeSpectrum R) ∉ Z := by |
| 31 | rintro ⟨x, hx, heq⟩ |
| 32 | exact hx (GenericSmoothness.Construction.generic_point_mem_smoothLocus R K f x heq) |
| 33 | obtain ⟨s, hs⟩ := (PrimeSpectrum.isClosed_iff_zeroLocus Z).mp hZ |
| 34 | have ha : ∃ a ∈ s, a ≠ 0 := by |
| 35 | by_contra! h |
| 36 | apply hη |
| 37 | rw [hs] |
| 38 | intro a ha |
| 39 | exact h a ha |
| 40 | obtain ⟨a, has, ha⟩ := ha |
| 41 | let U : (Spec (.of R)).Opens := PrimeSpectrum.basicOpen a |
| 42 | have hpre : f ⁻¹ᵁ U ≤ f.smoothLocus := by |
| 43 | intro x hx |
| 44 | by_contra hn |
| 45 | have hz : f x ∈ Z := ⟨x, hn, rfl⟩ |
| 46 | rw [hs] at hz |
| 47 | exact hx (hz has) |
| 48 | have hsm : Smooth ((f ⁻¹ᵁ U).ι ≫ f) := SmoothShrink.Construction.smooth_on_open_in_smoothLocus f _ hpre |
| 49 | have hscomp : Smooth ((f ∣_ U) ≫ U.ι) := by |
| 50 | rw [morphismRestrict_ι] |
| 51 | exact hsm |
| 52 | have hpb : IsPullback (𝟙 (f ⁻¹ᵁ U).toScheme) (f ∣_ U) |
| 53 | ((f ∣_ U) ≫ U.ι) U.ι := IsPullback.of_horiz_isIso_mono ⟨by simp⟩ |
| 54 | exact ⟨a, ha, MorphismProperty.of_isPullback hpb hscomp⟩ |
| 55 | |
| 56 | /-- A pullback whose base lands in a smooth restriction is smooth. -/ |
| 57 | theorem smooth_pullback_of_range_subset |
| 58 | {X S T : Scheme.{u}} (f : X ⟶ S) (g : T ⟶ S) |
| 59 | (U : S.Opens) [Smooth (f ∣_ U)] |
| 60 | (hg : Set.range g ⊆ (U : Set S)) : Smooth (pullback.snd f g) := by |
| 61 | let q := IsOpenImmersion.lift U.ι g (by simpa using hg) |
| 62 | have hq : q ≫ U.ι = g := IsOpenImmersion.lift_fac _ _ _ |
| 63 | have hrange : Set.range (pullback.fst f g) ⊆ (f ⁻¹ᵁ U : Set X) := by |
| 64 | rintro _ ⟨x, rfl⟩ |
| 65 | change f (pullback.fst f g x) ∈ U |
| 66 | rw [← Scheme.Hom.comp_apply, pullback.condition, Scheme.Hom.comp_apply] |
| 67 | exact hg (Set.mem_range_self _) |
| 68 | let p := IsOpenImmersion.lift (f ⁻¹ᵁ U).ι (pullback.fst f g) |
| 69 | (by simpa using hrange) |
| 70 | have hp : p ≫ (f ⁻¹ᵁ U).ι = pullback.fst f g := IsOpenImmersion.lift_fac _ _ _ |
| 71 | have hcart : IsPullback p (pullback.snd f g) (f ∣_ U) q := by |
| 72 | apply IsPullback.of_right ?_ ?_ (isPullback_morphismRestrict f U).flip |
| 73 | · rw [hp, hq] |
| 74 | exact IsPullback.of_hasPullback f g |
| 75 | · apply (cancel_mono U.ι).mp |
| 76 | rw [Category.assoc, morphismRestrict_ι, ← Category.assoc, hp, |
| 77 | Category.assoc (pullback.snd f g) q U.ι, hq] |
| 78 | exact pullback.condition |
| 79 | exact MorphismProperty.of_isPullback hcart inferInstance |
| 80 | |
| 81 | /-- Enlarging a coefficient set can make any nonzero old coefficient a unit. -/ |
| 82 | theorem specMap_range_subset_basicOpen_of_unit |
| 83 | {R A : Type u} [CommRing R] [CommRing A] (φ : R →+* A) |
| 84 | (a : R) (ha : IsUnit (φ a)) : |
| 85 | Set.range (Spec.map (CommRingCat.ofHom φ)) ⊆ |
| 86 | ((show (Spec (.of R)).Opens from PrimeSpectrum.basicOpen a) : |
| 87 | Set (Spec (.of R))) := by |
| 88 | rintro _ ⟨p, rfl⟩ |
| 89 | let q : PrimeSpectrum A := p |
| 90 | exact q.asIdeal.notMem_of_isUnit ha |
| 91 | |
| 92 | def reciprocalCoefficientSet |
| 93 | {K : Type u} [Field K] (s : Finset K) (a : CoefficientSystem.Constructions.Foundations.coefficientRing (𝓞 K) K s) : Finset K := by |
| 94 | classical |
| 95 | exact insert (a.val⁻¹) s |
| 96 | |
| 97 | theorem subset_reciprocalCoefficientSet |
| 98 | {K : Type u} [Field K] (s : Finset K) (a : CoefficientSystem.Constructions.Foundations.coefficientRing (𝓞 K) K s) : |
| 99 | s ⊆ reciprocalCoefficientSet s a := by |
| 100 | classical |
| 101 | exact Finset.subset_insert _ _ |
| 102 | |
| 103 | def reciprocalCoefficientHom |
| 104 | {K : Type u} [Field K] (s : Finset K) (a : CoefficientSystem.Constructions.Foundations.coefficientRing (𝓞 K) K s) : |
| 105 | CoefficientSystem.Constructions.Foundations.coefficientRing (𝓞 K) K s →ₐ[𝓞 K] |
| 106 | CoefficientSystem.Constructions.Foundations.coefficientRing (𝓞 K) K (reciprocalCoefficientSet s a) := |
| 107 | Subalgebra.inclusion (Algebra.adjoin_mono |
| 108 | (Finset.coe_subset.mpr (subset_reciprocalCoefficientSet s a))) |
| 109 | |
| 110 | theorem subalgebra_unit_of_inverse_mem |
| 111 | {R K : Type u} [CommRing R] [Field K] [Algebra R K] |
| 112 | (A : Subalgebra R K) (a : A) (ha : a.val ≠ 0) (h : a.val⁻¹ ∈ A) : IsUnit a := by |
| 113 | refine ⟨⟨a, ⟨a.val⁻¹, h⟩, ?_, ?_⟩, rfl⟩ |
| 114 | · apply Subtype.ext |
| 115 | exact mul_inv_cancel₀ ha |
| 116 | · apply Subtype.ext |
| 117 | exact inv_mul_cancel₀ ha |
| 118 | |
| 119 | theorem reciprocalCoefficientHom_coe |
| 120 | {K : Type u} [Field K] (s : Finset K) |
| 121 | (a b : CoefficientSystem.Constructions.Foundations.coefficientRing (𝓞 K) K s) : |
| 122 | (reciprocalCoefficientHom s a b).val = b.val := |
| 123 | Subalgebra.coe_inclusion _ b |
| 124 | |
| 125 | theorem inverse_mem_reciprocalCoefficientRing |
| 126 | {K : Type u} [Field K] (s : Finset K) (a : CoefficientSystem.Constructions.Foundations.coefficientRing (𝓞 K) K s) : |
| 127 | a.val⁻¹ ∈ CoefficientSystem.Constructions.Foundations.coefficientRing (𝓞 K) K (reciprocalCoefficientSet s a) := by |
| 128 | classical |
| 129 | exact Algebra.subset_adjoin (Finset.mem_insert_self _ _) |
| 130 | |
| 131 | theorem reciprocalCoefficientHom_isUnit |
| 132 | {K : Type u} [Field K] (s : Finset K) |
| 133 | (a : CoefficientSystem.Constructions.Foundations.coefficientRing (𝓞 K) K s) (ha : a ≠ 0) : |
| 134 | IsUnit (reciprocalCoefficientHom s a a) := by |
| 135 | classical |
| 136 | apply subalgebra_unit_of_inverse_mem |
| 137 | · rw [reciprocalCoefficientHom_coe] |
| 138 | exact fun h ↦ ha (Subtype.ext h) |
| 139 | · rw [reciprocalCoefficientHom_coe] |
| 140 | exact inverse_mem_reciprocalCoefficientRing s a |
| 141 | |
| 142 | theorem reciprocalCoefficientBaseMap_eq |
| 143 | {K : Type u} [Field K] (s : Finset K) (a : CoefficientSystem.Constructions.Foundations.coefficientRing (𝓞 K) K s) : |
| 144 | CoefficientSystem.Constructions.Foundations.coefficientBaseMap (𝓞 K) K (subset_reciprocalCoefficientSet s a) = |
| 145 | Spec.map (CommRingCat.ofHom (reciprocalCoefficientHom s a).toRingHom) := rfl |
| 146 | |
| 147 | theorem coefficient_base_eventually_in_basicOpen |
| 148 | {K : Type u} [Field K] [NumberField K] (s : Finset K) |
| 149 | (a : CoefficientSystem.Constructions.Foundations.coefficientRing (𝓞 K) K s) (ha : a ≠ 0) : |
| 150 | ∃ (t : Finset K) (h : s ⊆ t), |
| 151 | Set.range (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (𝓞 K) K h) ⊆ |
| 152 | ((show (CoefficientSystem.Constructions.Foundations.coefficientBase (𝓞 K) K s).Opens from PrimeSpectrum.basicOpen a) : |
| 153 | Set (CoefficientSystem.Constructions.Foundations.coefficientBase (𝓞 K) K s)) := by |
| 154 | refine ⟨reciprocalCoefficientSet s a, subset_reciprocalCoefficientSet s a, ?_⟩ |
| 155 | rw [reciprocalCoefficientBaseMap_eq] |
| 156 | exact specMap_range_subset_basicOpen_of_unit (reciprocalCoefficientHom s a).toRingHom |
| 157 | a (reciprocalCoefficientHom_isUnit s a ha) |
| 158 | |
| 159 | theorem proper_coefficient_model_eventually_smooth |
| 160 | {K : Type u} [Field K] [NumberField K] {s : Finset K} |
| 161 | (M : Over (CoefficientSystem.Constructions.Foundations.coefficientBase (𝓞 K) K s)) [IsProper M.hom] |
| 162 | [Smooth ((Over.pullback (CoefficientSystem.Constructions.Foundations.genericBaseMap (𝓞 K) K s)).obj M).hom] : |
| 163 | ∃ (t : Finset K) (h : s ⊆ t), |
| 164 | Smooth ((Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (𝓞 K) K h)).obj M).hom := by |
| 165 | have := ModelFiniteness.Constructions.Foundations.coefficientBase_locallyNoetherian K s |
| 166 | have : Smooth (pullback.snd M.hom |
| 167 | (Spec.map (CommRingCat.ofHom (algebraMap (CoefficientSystem.Constructions.Foundations.coefficientRing (𝓞 K) K s) K)))) := |
| 168 | ‹Smooth ((Over.pullback (CoefficientSystem.Constructions.Foundations.genericBaseMap (𝓞 K) K s)).obj M).hom› |
| 169 | obtain ⟨a, ha, hsm⟩ := proper_smooth_generic_fiber_has_smooth_basicOpen |
| 170 | (CoefficientSystem.Constructions.Foundations.coefficientRing (𝓞 K) K s) K M.hom |
| 171 | obtain ⟨t, h, ht⟩ := coefficient_base_eventually_in_basicOpen s a ha |
| 172 | have := hsm |
| 173 | exact ⟨t, h, smooth_pullback_of_range_subset M.hom |
| 174 | (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (𝓞 K) K h) (PrimeSpectrum.basicOpen a) ht⟩ |
| 175 | |
| 176 | end |
| 177 | |
| 178 | end OAI.ArithmeticGeometry.Models.SpreadingOut.CoefficientSmoothness.Construction |