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.Resolution.Blowups.Etale.Derivation |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.DifferentialBlowupTransform |
| 3 | |
| 4 | /-! # Differential Blowup -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Relative.DifferentialBlowup.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Differential ideals relative to the fixed coefficient ring. -/ |
| 13 | |
| 14 | variable (k : Type*) {R : Type*} [CommRing k] [CommRing R] [Algebra k R] |
| 15 | |
| 16 | /-- Adjoin every first derivative over the fixed coefficient ring. -/ |
| 17 | def firstRelativeDifferentialIdeal (J : Ideal R) : Ideal R := |
| 18 | J ⊔ Ideal.span (Set.range (fun t : Derivation k R R × J => t.1 t.2.val)) |
| 19 | |
| 20 | def iteratedRelativeDifferentialIdeal (J : Ideal R) : ℕ → Ideal R |
| 21 | | 0 => J |
| 22 | | n + 1 => iteratedRelativeDifferentialIdeal (firstRelativeDifferentialIdeal k J) n |
| 23 | |
| 24 | theorem le_firstRelativeDifferentialIdeal (J : Ideal R) : J ≤ firstRelativeDifferentialIdeal k J := |
| 25 | le_sup_left |
| 26 | |
| 27 | theorem relative_derivation_mem_first (J : Ideal R) (D : Derivation k R R) |
| 28 | {p : R} (hp : p ∈ J) : D p ∈ firstRelativeDifferentialIdeal k J := |
| 29 | Submodule.mem_sup_right (Ideal.subset_span ⟨⟨D, ⟨p, hp⟩⟩, rfl⟩) |
| 30 | |
| 31 | theorem firstRelativeDifferentialIdeal_mono {J L : Ideal R} (h : J ≤ L) : |
| 32 | firstRelativeDifferentialIdeal k J ≤ firstRelativeDifferentialIdeal k L := by |
| 33 | apply sup_le |
| 34 | · exact h.trans (le_firstRelativeDifferentialIdeal k L) |
| 35 | · apply Ideal.span_le.mpr |
| 36 | rintro x ⟨⟨D, p⟩, rfl⟩ |
| 37 | exact relative_derivation_mem_first k L D (h p.property) |
| 38 | |
| 39 | theorem firstRelativeDifferentialIdeal_le_ordinary (J : Ideal R) : |
| 40 | firstRelativeDifferentialIdeal k J ≤ DifferentialIdealTransform.Construction.firstDifferentialIdeal J := by |
| 41 | apply sup_le |
| 42 | · exact DifferentialIdealTransform.Construction.le_firstDifferentialIdeal J |
| 43 | · apply Ideal.span_le.mpr |
| 44 | rintro x ⟨⟨D, p⟩, rfl⟩ |
| 45 | exact DifferentialIdealTransform.Construction.derivation_mem_firstDifferentialIdeal J (D.restrictScalars ℤ) p.property |
| 46 | |
| 47 | theorem iteratedRelativeDifferentialIdeal_mono (n : ℕ) {J L : Ideal R} (h : J ≤ L) : |
| 48 | Construction.iteratedRelativeDifferentialIdeal k J n ≤ Construction.iteratedRelativeDifferentialIdeal k L n := by |
| 49 | induction n generalizing J L with |
| 50 | | zero => exact h |
| 51 | | succ n ih => exact ih (firstRelativeDifferentialIdeal_mono k h) |
| 52 | |
| 53 | /-- The relative differential ideals obey the same order-lowering |
| 54 | bound as the previously proved integer-relative differential ideals. -/ |
| 55 | theorem iteratedRelativeDifferentialIdeal_le_ordinary (J : Ideal R) (n : ℕ) : |
| 56 | Construction.iteratedRelativeDifferentialIdeal k J n ≤ DifferentialIdealTransform.Construction.iteratedDifferentialIdeal J n := by |
| 57 | induction n generalizing J with |
| 58 | | zero => exact le_rfl |
| 59 | | succ n ih => |
| 60 | exact (ih (firstRelativeDifferentialIdeal k J)).trans |
| 61 | (DifferentialIdealTransform.Construction.iteratedDifferentialIdeal_mono n (firstRelativeDifferentialIdeal_le_ordinary k J)) |
| 62 | |
| 63 | variable {ι : Type*} |
| 64 | |
| 65 | /-- Derivatives of any generated ideal are generated by its original |
| 66 | sections and the derivatives of the specified generators. -/ |
| 67 | theorem relative_derivation_of_span |
| 68 | (D : Derivation k R R) (p : ι → R) {x : R} (hx : x ∈ Ideal.span (Set.range p)) : |
| 69 | D x ∈ Ideal.span (Set.range p) ⊔ Ideal.span (Set.range (fun i => D (p i))) := by |
| 70 | refine Submodule.span_induction ?_ ?_ ?_ ?_ hx |
| 71 | · rintro y ⟨i, rfl⟩ |
| 72 | exact Submodule.mem_sup_right (Ideal.subset_span ⟨i, rfl⟩) |
| 73 | · rw [map_zero] |
| 74 | exact Ideal.zero_mem _ |
| 75 | · intro y z _ _ hy hz |
| 76 | rw [map_add] |
| 77 | exact Ideal.add_mem _ hy hz |
| 78 | · intro a y hy ih |
| 79 | change D (a * y) ∈ _ |
| 80 | rw [D.leibniz] |
| 81 | change a * D y + y * D a ∈ _ |
| 82 | exact Ideal.add_mem _ (Ideal.mul_mem_left _ a ih) |
| 83 | (Submodule.mem_sup_left ((Ideal.span (Set.range p)).mul_mem_right (D a) hy)) |
| 84 | |
| 85 | end |
| 86 | |
| 87 | section |
| 88 | |
| 89 | /-! Lifting derivations while retaining the original coefficient ring. -/ |
| 90 | |
| 91 | variable (k : Type*) {R : Type*} [CommRing k] [CommRing R] [Algebra k R] |
| 92 | |
| 93 | /-- A ring derivation annihilating the coefficient ring is a relative |
| 94 | derivation with the same underlying function. -/ |
| 95 | def ringDerivationOverBase (D : Derivation ℤ R R) |
| 96 | (hD : ∀ a : k, D (algebraMap k R a) = 0) : Derivation k R R where |
| 97 | toLinearMap := |
| 98 | { toFun := D |
| 99 | map_add' := D.map_add |
| 100 | map_smul' := by |
| 101 | intro a p |
| 102 | simp only [Algebra.smul_def, RingHom.id_apply] |
| 103 | rw [D.leibniz, hD] |
| 104 | simp only [smul_eq_mul, mul_zero, add_zero] } |
| 105 | map_one_eq_zero' := D.map_one_eq_zero |
| 106 | leibniz' := D.leibniz |
| 107 | |
| 108 | /-- The coefficient algebra on the actual blowup chart, through its |
| 109 | original structure map. -/ |
| 110 | abbrev blowupRelativeBaseAlgebra (I : Ideal R) (a : I) : Algebra k (Blowup.Charts.Construction.blowupChart I a) := |
| 111 | ((Blowup.Charts.Construction.blowupChartConstants I a).comp (algebraMap k R)).toAlgebra |
| 112 | |
| 113 | attribute [local instance] blowupRelativeBaseAlgebra |
| 114 | |
| 115 | /-- The lifted derivation is still relative to the original base. -/ |
| 116 | def blowupRelativeChartDerivation (I : Ideal R) (a : I) (D : Derivation k R R) : |
| 117 | Derivation k (Blowup.Charts.Construction.blowupChart I a) (Blowup.Charts.Construction.blowupChart I a) := |
| 118 | ringDerivationOverBase k (ChartDerivation.Construction.blowupChartDerivation I a (D.restrictScalars ℤ)) (by |
| 119 | intro x |
| 120 | change ChartDerivation.Construction.blowupChartDerivation I a (D.restrictScalars ℤ) |
| 121 | (Blowup.Charts.Construction.blowupChartConstants I a (algebraMap k R x)) = 0 |
| 122 | rw [ChartDerivation.Construction.blowupChartDerivation_constants, Derivation.restrictScalars_apply, D.map_algebraMap, |
| 123 | map_zero, mul_zero (Blowup.Charts.Construction.blowupChartConstants I a a.val)]) |
| 124 | |
| 125 | theorem blowupRelativeChartDerivation_apply |
| 126 | (I : Ideal R) (a : I) (D : Derivation k R R) (p : Blowup.Charts.Construction.blowupChart I a) : |
| 127 | blowupRelativeChartDerivation k I a D p = ChartDerivation.Construction.blowupChartDerivation I a (D.restrictScalars ℤ) p := rfl |
| 128 | |
| 129 | theorem blowupRelativeChartDerivation_constants |
| 130 | (I : Ideal R) (a : I) (D : Derivation k R R) (p : R) : |
| 131 | blowupRelativeChartDerivation k I a D (Blowup.Charts.Construction.blowupChartConstants I a p) = |
| 132 | Blowup.Charts.Construction.blowupChartConstants I a a.val * Blowup.Charts.Construction.blowupChartConstants I a (D p) := |
| 133 | ChartDerivation.Construction.blowupChartDerivation_constants I a (D.restrictScalars ℤ) p |
| 134 | |
| 135 | end |
| 136 | |
| 137 | /-! Relative differential ideals under actual controlled blowup transforms. -/ |
| 138 | |
| 139 | variable (k : Type*) {R : Type*} [CommRing k] [CommRing R] [Algebra k R] |
| 140 | |
| 141 | attribute [local instance] blowupRelativeBaseAlgebra |
| 142 | |
| 143 | theorem firstRelativeDifferentialIdeal_le_pow (I J : Ideal R) (n : ℕ) |
| 144 | (hJ : J ≤ I ^ (n + 1)) : firstRelativeDifferentialIdeal k J ≤ I ^ n := |
| 145 | (firstRelativeDifferentialIdeal_le_ordinary k J).trans (DifferentialIdealTransform.Construction.firstDifferentialIdeal_le_pow I J n hJ) |
| 146 | |
| 147 | /-- Relative differentiation and controlled transformation satisfy the |
| 148 | same inclusion, in the original coefficient algebra, as ordinary differentiation. -/ |
| 149 | theorem firstRelativeDifferentialIdeal_controlledTransform_le |
| 150 | (I J : Ideal R) (a : I) (n : ℕ) (hJ : J ≤ I ^ (n + 1)) : |
| 151 | ControlledTransform.Construction.blowupControlledTransform I (firstRelativeDifferentialIdeal k J) n a ≤ |
| 152 | firstRelativeDifferentialIdeal k (ControlledTransform.Construction.blowupControlledTransform I J (n + 1) a) := by |
| 153 | let c := Blowup.Charts.Construction.blowupChartConstants I a a.val |
| 154 | let T := ControlledTransform.Construction.blowupControlledTransform I J (n + 1) a |
| 155 | let U := firstRelativeDifferentialIdeal k T |
| 156 | have htotal : (firstRelativeDifferentialIdeal k J).map (Blowup.Charts.Construction.blowupChartConstants I a) ≤ |
| 157 | Ideal.span {c ^ n} * U := by |
| 158 | rw [Ideal.map_le_iff_le_comap] |
| 159 | apply sup_le |
| 160 | · intro p hp |
| 161 | obtain ⟨q, hq, he⟩ := DifferentialIdealTransform.Construction.blowup_controlledTransform_section_exists I J a (n + 1) hJ ⟨p, hp⟩ |
| 162 | change Blowup.Charts.Construction.blowupChartConstants I a p ∈ Ideal.span {c ^ n} * U |
| 163 | apply Ideal.mem_span_singleton_mul.mpr |
| 164 | refine ⟨c * q, U.mul_mem_left c (le_firstRelativeDifferentialIdeal k T hq), ?_⟩ |
| 165 | calc |
| 166 | c ^ n * (c * q) = c ^ (n + 1) * q := by rw [pow_succ c]; exact (mul_assoc (c ^ n) c q).symm |
| 167 | _ = Blowup.Charts.Construction.blowupChartConstants I a p := he.symm |
| 168 | · apply Ideal.span_le.mpr |
| 169 | rintro r ⟨⟨D, p⟩, rfl⟩ |
| 170 | obtain ⟨q, hq, he⟩ := DifferentialIdealTransform.Construction.blowup_controlledTransform_section_exists I J a (n + 1) hJ p |
| 171 | change Blowup.Charts.Construction.blowupChartConstants I a (D p.val) ∈ Ideal.span {c ^ n} * U |
| 172 | apply Ideal.mem_span_singleton_mul.mpr |
| 173 | refine ⟨blowupRelativeChartDerivation k I a D q + |
| 174 | (n + 1 : ℕ) * Blowup.Charts.Construction.blowupChartConstants I a (D a.val) * q, ?_, |
| 175 | (DifferentialBlowupTransform.Construction.blowupChart_derivative_division I a (D.restrictScalars ℤ) n p.val q he).symm⟩ |
| 176 | apply Ideal.add_mem |
| 177 | · exact relative_derivation_mem_first k T (blowupRelativeChartDerivation k I a D) hq |
| 178 | · exact U.mul_mem_left _ (le_firstRelativeDifferentialIdeal k T hq) |
| 179 | have hcolon := Submodule.colon_mono htotal (Set.Subset.refl (Ideal.span {c ^ n} : Set _)) |
| 180 | have hc : IsRegular c := ExceptionalIdeal.Construction.blowupChart_exceptionalParameter_regular I a |
| 181 | have hcn : IsRegular (c ^ n) := IsRegular.pow (a := c) n hc |
| 182 | have heq : (Ideal.span {c ^ n} * U).colon (Ideal.span {c ^ n}) = U := |
| 183 | ResidualCoefficientTransform.Construction.colon_principal_mul_of_regular U (c ^ n) hcn |
| 184 | rw [heq] at hcolon |
| 185 | exact hcolon |
| 186 | |
| 187 | /-- The full relative differential filtration has the controlled |
| 188 | transform inclusion required by hypersurface persistence. -/ |
| 189 | theorem iteratedRelativeDifferentialIdeal_controlledTransform_le |
| 190 | (I J : Ideal R) (a : I) (n r : ℕ) (hJ : J ≤ I ^ (n + r)) : |
| 191 | ControlledTransform.Construction.blowupControlledTransform I (Construction.iteratedRelativeDifferentialIdeal k J r) n a ≤ |
| 192 | Construction.iteratedRelativeDifferentialIdeal k (ControlledTransform.Construction.blowupControlledTransform I J (n + r) a) r := by |
| 193 | induction r generalizing J with |
| 194 | | zero => exact le_rfl |
| 195 | | succ r ih => |
| 196 | have hJ' : J ≤ I ^ (n + r + 1) := by simpa only [Nat.add_assoc] using hJ |
| 197 | have hfirst := firstRelativeDifferentialIdeal_controlledTransform_le k I J a (n + r) hJ' |
| 198 | have hind := ih (firstRelativeDifferentialIdeal k J) |
| 199 | (firstRelativeDifferentialIdeal_le_pow k I J (n + r) hJ') |
| 200 | exact hind.trans (by simpa only [Construction.iteratedRelativeDifferentialIdeal, Nat.add_assoc] using |
| 201 | iteratedRelativeDifferentialIdeal_mono k r hfirst) |
| 202 | |
| 203 | end |
| 204 | |
| 205 | end OAI.AlgebraicGeometry.Resolution.Blowups.Relative.DifferentialBlowup.Construction |