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.Divisors.LineBundles.Deformation.Maps |
| 2 | import Mathlib.RingTheory.Localization.Ideal |
| 3 | |
| 4 | /-! # Localization -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Deformation.Localization.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # LineBundleCycles: localization of affine deformation algebras |
| 12 | |
| 13 | The deformation algebra commutes with localization of its base ring. The |
| 14 | proof uses localized ideal-power membership for surjectivity and a finite |
| 15 | product of coefficient annihilators for injectivity. It permits zero divisors |
| 16 | and does not require finite generation of the ideal. |
| 17 | -/ |
| 18 | |
| 19 | open scoped BigOperators |
| 20 | |
| 21 | universe u v |
| 22 | variable {R : Type u} [CommRing R] |
| 23 | variable (I : Ideal R) (M : Submonoid R) |
| 24 | variable (S : Type v) [CommRing S] [Algebra R S] [IsLocalization M S] |
| 25 | |
| 26 | /-- The ideal after localization of the base. -/ |
| 27 | abbrev localizedDeformationIdeal : Ideal S := I.map (algebraMap R S) |
| 28 | |
| 29 | /-- Base-ring denominators viewed as constants in the deformation algebra. -/ |
| 30 | def deformationDenominators : Submonoid (Iff.BundleCycles.deformationAlgebra I) := |
| 31 | M.map (algebraMap R (Iff.BundleCycles.deformationAlgebra I)) |
| 32 | |
| 33 | /-- Localization of the original deformation by base-ring denominators. -/ |
| 34 | abbrev LocalizedDeformation := Localization (deformationDenominators I M) |
| 35 | |
| 36 | /-- The coefficient map to the deformation of the localized ideal. -/ |
| 37 | def deformationBaseMap : Iff.BundleCycles.deformationAlgebra I →+* |
| 38 | Iff.BundleCycles.deformationAlgebra (localizedDeformationIdeal I S) := |
| 39 | Maps.BundleCycles.deformationMap I _ (algebraMap R S) (fun _ hr => Ideal.mem_map_of_mem _ hr) |
| 40 | |
| 41 | theorem deformationBaseMap_units (m : deformationDenominators I M) : |
| 42 | IsUnit (deformationBaseMap I S m) := by |
| 43 | obtain ⟨r, hr, he⟩ := m.property |
| 44 | change algebraMap R (Iff.BundleCycles.deformationAlgebra I) r = m.val at he |
| 45 | rw [← he] |
| 46 | change IsUnit (Maps.BundleCycles.deformationMap I _ (algebraMap R S) _ (algebraMap R _ r)) |
| 47 | exact (Maps.BundleCycles.deformationMap_algebraMap I _ (algebraMap R S) _ r).symm ▸ |
| 48 | (IsLocalization.map_units S (⟨r, hr⟩ : M)).map |
| 49 | (algebraMap S (Iff.BundleCycles.deformationAlgebra (localizedDeformationIdeal I S))) |
| 50 | |
| 51 | /-- Canonical map from the localized deformation to the deformation after |
| 52 | localizing its base ring. -/ |
| 53 | def deformationLocalizationMap : LocalizedDeformation I M →+* |
| 54 | Iff.BundleCycles.deformationAlgebra (localizedDeformationIdeal I S) := |
| 55 | IsLocalization.lift (deformationBaseMap_units I M S) |
| 56 | |
| 57 | @[simp] |
| 58 | theorem deformationLocalizationMap_algebraMap (p : Iff.BundleCycles.deformationAlgebra I) : |
| 59 | deformationLocalizationMap I M S (algebraMap _ (LocalizedDeformation I M) p) = |
| 60 | deformationBaseMap I S p := IsLocalization.lift_eq _ p |
| 61 | |
| 62 | /-- A Laurent monomial over the localized ideal lifts as a fraction of an |
| 63 | actual monomial over I. -/ |
| 64 | theorem deformationLocalizationMap_monomial_mem_range (n : ℤ) (a : S) |
| 65 | (ha : a ∈ localizedDeformationIdeal I S ^ (-n).toNat) : |
| 66 | Iff.BundleCycles.deformationMonomial (localizedDeformationIdeal I S) n a ha ∈ |
| 67 | (deformationLocalizationMap I M S).rangeS := by |
| 68 | have ha' : a ∈ (I ^ (-n).toNat).map (algebraMap R S) := by |
| 69 | rwa [Ideal.map_pow] |
| 70 | obtain ⟨⟨b, m⟩, hm⟩ := (IsLocalization.mem_map_algebraMap_iff M S).mp ha' |
| 71 | let q : Iff.BundleCycles.deformationAlgebra I := Iff.BundleCycles.deformationMonomial I n b.val b.property |
| 72 | let d : deformationDenominators I M := |
| 73 | ⟨algebraMap R _ m.val, Submonoid.mem_map_of_mem _ m.property⟩ |
| 74 | refine ⟨IsLocalization.mk' (LocalizedDeformation I M) q d, ?_⟩ |
| 75 | apply (IsLocalization.lift_mk'_spec (deformationBaseMap_units I M S) q _ d).mpr |
| 76 | apply Subtype.ext |
| 77 | change AddMonoidAlgebra.mapRingHom ℤ (algebraMap R S) (AddMonoidAlgebra.single n b.val) = |
| 78 | AddMonoidAlgebra.mapRingHom ℤ (algebraMap R S) (AddMonoidAlgebra.single 0 m.val) * |
| 79 | AddMonoidAlgebra.single n a |
| 80 | rw [AddMonoidAlgebra.mapRingHom_single, AddMonoidAlgebra.mapRingHom_single, |
| 81 | AddMonoidAlgebra.single_mul_single, zero_add, ← hm, mul_comm a] |
| 82 | |
| 83 | /-- Every element of the deformation over the localized base has a preimage. -/ |
| 84 | theorem deformationLocalizationMap_surjective : |
| 85 | Function.Surjective (deformationLocalizationMap I M S) := by |
| 86 | classical |
| 87 | intro p |
| 88 | have he : p = ∑ n ∈ p.val.coeff.support, |
| 89 | Iff.BundleCycles.deformationMonomial (localizedDeformationIdeal I S) n (p.val.coeff n) (p.property n) := by |
| 90 | apply Subtype.ext |
| 91 | change p.val = (Iff.BundleCycles.deformationAlgebra (localizedDeformationIdeal I S)).val |
| 92 | (∑ n ∈ p.val.coeff.support, Iff.BundleCycles.deformationMonomial _ n _ (p.property n)) |
| 93 | rw [map_sum] |
| 94 | exact (AddMonoidAlgebra.sum_coeff_single p.val).symm |
| 95 | have hp : p ∈ (deformationLocalizationMap I M S).rangeS := by |
| 96 | rw [he] |
| 97 | exact Subsemiring.sum_mem _ fun n _ => |
| 98 | deformationLocalizationMap_monomial_mem_range I M S n _ (p.property n) |
| 99 | exact hp |
| 100 | |
| 101 | /-- A coefficientwise zero after localization is annihilated by one common |
| 102 | base denominator. The product is finite because the Laurent support is finite. -/ |
| 103 | theorem deformationBaseMap_zero_denominator (p : Iff.BundleCycles.deformationAlgebra I) |
| 104 | (hp : deformationBaseMap I S p = 0) : |
| 105 | ∃ m : M, algebraMap R (Iff.BundleCycles.deformationAlgebra I) m.val * p = 0 := by |
| 106 | classical |
| 107 | have hc (n : ℤ) : algebraMap R S (p.val.coeff n) = 0 := by |
| 108 | have h := congrArg (fun q : Iff.BundleCycles.deformationAlgebra (localizedDeformationIdeal I S) => |
| 109 | q.val.coeff n) hp |
| 110 | exact h |
| 111 | have hm (n : ℤ) := (IsLocalization.map_eq_zero_iff M S (p.val.coeff n)).mp (hc n) |
| 112 | choose m hm using hm |
| 113 | let d : M := ∏ n ∈ p.val.coeff.support, m n |
| 114 | refine ⟨d, Subtype.ext ?_⟩ |
| 115 | ext n |
| 116 | change (AddMonoidAlgebra.single 0 d.val * p.val).coeff n = 0 |
| 117 | rw [AddMonoidAlgebra.coeff_single_mul_apply, neg_zero, zero_add] |
| 118 | by_cases hn : n ∈ p.val.coeff.support |
| 119 | · obtain ⟨c, hc⟩ := Finset.dvd_prod_of_mem m hn |
| 120 | have hd : d = m n * c := hc |
| 121 | change d.val * p.val.coeff n = 0 |
| 122 | rw [hd] |
| 123 | change (m n).val * c.val * p.val.coeff n = 0 |
| 124 | rw [mul_right_comm, hm n, zero_mul] |
| 125 | · rw [Finsupp.notMem_support_iff.mp hn, mul_zero] |
| 126 | |
| 127 | /-- No additional relations appear under the coefficientwise localization. -/ |
| 128 | theorem deformationLocalizationMap_injective : |
| 129 | Function.Injective (deformationLocalizationMap I M S) := by |
| 130 | apply (IsLocalization.lift_injective_iff (deformationBaseMap_units I M S)).mpr |
| 131 | intro p q |
| 132 | constructor |
| 133 | · intro h |
| 134 | exact (deformationLocalizationMap_algebraMap I M S p).symm.trans |
| 135 | ((congrArg (deformationLocalizationMap I M S) h).trans |
| 136 | (deformationLocalizationMap_algebraMap I M S q)) |
| 137 | · intro h |
| 138 | have hz : deformationBaseMap I S (p - q) = 0 := by |
| 139 | rw [map_sub, h, sub_self] |
| 140 | obtain ⟨m, hm⟩ := deformationBaseMap_zero_denominator I M S (p - q) hz |
| 141 | apply (IsLocalization.eq_iff_exists (deformationDenominators I M) |
| 142 | (LocalizedDeformation I M)).mpr |
| 143 | refine ⟨⟨algebraMap R _ m.val, Submonoid.mem_map_of_mem _ m.property⟩, ?_⟩ |
| 144 | exact sub_eq_zero.mp ((mul_sub _ p q).symm.trans hm) |
| 145 | |
| 146 | /-- Formation of the extended Rees algebra commutes with arbitrary base |
| 147 | localization. In particular it commutes with affine basic-open restriction. -/ |
| 148 | def deformationLocalizationEquiv : LocalizedDeformation I M ≃+* |
| 149 | Iff.BundleCycles.deformationAlgebra (localizedDeformationIdeal I S) := |
| 150 | RingEquiv.ofBijective (deformationLocalizationMap I M S) |
| 151 | ⟨deformationLocalizationMap_injective I M S, deformationLocalizationMap_surjective I M S⟩ |
| 152 | |
| 153 | @[simp] |
| 154 | theorem deformationLocalizationEquiv_algebraMap (p : Iff.BundleCycles.deformationAlgebra I) : |
| 155 | deformationLocalizationEquiv I M S (algebraMap _ (LocalizedDeformation I M) p) = |
| 156 | deformationBaseMap I S p := deformationLocalizationMap_algebraMap I M S p |
| 157 | |
| 158 | /-- The coefficient map exhibits the localized deformation as a localization, |
| 159 | with its specified algebra structure. -/ |
| 160 | theorem deformationBaseMap_isLocalization : |
| 161 | letI := (deformationBaseMap I S).toAlgebra |
| 162 | IsLocalization (deformationDenominators I M) |
| 163 | (Iff.BundleCycles.deformationAlgebra (localizedDeformationIdeal I S)) := by |
| 164 | let := (deformationBaseMap I S).toAlgebra |
| 165 | let e : LocalizedDeformation I M ≃ₐ[Iff.BundleCycles.deformationAlgebra I] |
| 166 | Iff.BundleCycles.deformationAlgebra (localizedDeformationIdeal I S) := |
| 167 | { deformationLocalizationEquiv I M S with |
| 168 | commutes' := deformationLocalizationEquiv_algebraMap I M S } |
| 169 | exact IsLocalization.isLocalization_of_algEquiv (deformationDenominators I M) e |
| 170 | |
| 171 | /-- Localization comparison for an ideal presented by an equality, as occurs |
| 172 | when restricting an ideal sheaf to an affine basic open. -/ |
| 173 | theorem deformationMap_isLocalization (J : Ideal S) |
| 174 | (hJ : I.map (algebraMap R S) = J) (hf : I ≤ J.comap (algebraMap R S)) : |
| 175 | letI := (Maps.BundleCycles.deformationMap I J (algebraMap R S) hf).toAlgebra |
| 176 | IsLocalization (deformationDenominators I M) (Iff.BundleCycles.deformationAlgebra J) := by |
| 177 | subst J |
| 178 | exact deformationBaseMap_isLocalization I M S |
| 179 | |
| 180 | end |
| 181 | |
| 182 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Deformation.Localization.BundleCycles |