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.AbelianModuli.ReferenceFamily.Dual.NumberCoefficients |
| 2 | import Mathlib.RingTheory.Derivation.Basic |
| 3 | |
| 4 | /-! # Derivation -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Dual.Derivation |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! A map of dual-number products that reduces to the identity has an |
| 13 | actual derivation as its first-order coefficient. Fixing the base's |
| 14 | nilpotent parameter recovers the whole map from that derivation. -/ |
| 15 | |
| 16 | variable {k A : Type*} [CommRing k] [CommRing A] [Algebra k A] |
| 17 | (f : DualNumber A →ₐ[k] DualNumber A) |
| 18 | (hred : ∀ u, (f u).fst = u.fst) |
| 19 | |
| 20 | def dualIdentityDerivation : Derivation k A A where |
| 21 | toLinearMap := ((TrivSqZeroExt.sndHom A A).restrictScalars k).comp |
| 22 | (f.toLinearMap.comp (TrivSqZeroExt.inlAlgHom k A A).toLinearMap) |
| 23 | map_one_eq_zero' := by |
| 24 | change (f ((TrivSqZeroExt.inlAlgHom k A A) 1)).snd = 0 |
| 25 | rw [map_one, map_one] |
| 26 | rfl |
| 27 | leibniz' a b := by |
| 28 | change (f ((TrivSqZeroExt.inlAlgHom k A A) (a * b))).snd = |
| 29 | a * (f ((TrivSqZeroExt.inlAlgHom k A A) b)).snd + |
| 30 | b * (f ((TrivSqZeroExt.inlAlgHom k A A) a)).snd |
| 31 | rw [map_mul, map_mul] |
| 32 | change (f ((TrivSqZeroExt.inlAlgHom k A A) a)).fst * |
| 33 | (f ((TrivSqZeroExt.inlAlgHom k A A) b)).snd + |
| 34 | (f ((TrivSqZeroExt.inlAlgHom k A A) a)).snd * |
| 35 | (f ((TrivSqZeroExt.inlAlgHom k A A) b)).fst = _ |
| 36 | rw [hred, hred] |
| 37 | change a * (f ((TrivSqZeroExt.inlAlgHom k A A) b)).snd + |
| 38 | (f ((TrivSqZeroExt.inlAlgHom k A A) a)).snd * b = _ |
| 39 | rw [mul_comm (f ((TrivSqZeroExt.inlAlgHom k A A) a)).snd b] |
| 40 | |
| 41 | theorem dualIdentityDerivation_apply (a : A) : |
| 42 | dualIdentityDerivation f hred a = (f (TrivSqZeroExt.inl a)).snd := rfl |
| 43 | |
| 44 | theorem dualReductionIdentity_normalForm |
| 45 | (heps : f DualNumber.eps = DualNumber.eps) (u : DualNumber A) : |
| 46 | f u = (u.fst, dualIdentityDerivation f hred u.fst + u.snd) := by |
| 47 | have hu : u = (TrivSqZeroExt.inl u.fst : DualNumber A) + |
| 48 | (TrivSqZeroExt.inl u.snd : DualNumber A) * DualNumber.eps := by |
| 49 | apply TrivSqZeroExt.ext <;> simp |
| 50 | calc |
| 51 | f u = f ((TrivSqZeroExt.inl u.fst : DualNumber A) + |
| 52 | (TrivSqZeroExt.inl u.snd : DualNumber A) * DualNumber.eps) := congrArg f hu |
| 53 | _ = f (TrivSqZeroExt.inl u.fst) + f (TrivSqZeroExt.inl u.snd) * DualNumber.eps := by |
| 54 | rw [map_add, map_mul, heps] |
| 55 | _ = (show DualNumber A from (u.fst, dualIdentityDerivation f hred u.fst + u.snd)) := by |
| 56 | apply TrivSqZeroExt.ext |
| 57 | · change (f (TrivSqZeroExt.inl u.fst)).fst + (f (TrivSqZeroExt.inl u.snd)).fst * 0 = u.fst |
| 58 | rw [mul_zero, add_zero, hred] |
| 59 | rfl |
| 60 | · change (f (TrivSqZeroExt.inl u.fst)).snd + |
| 61 | ((f (TrivSqZeroExt.inl u.snd)).fst * 1 + (f (TrivSqZeroExt.inl u.snd)).snd * 0) = _ |
| 62 | rw [mul_one, mul_zero, add_zero, hred] |
| 63 | rfl |
| 64 | |
| 65 | end |
| 66 | |
| 67 | section |
| 68 | |
| 69 | /-! Derivations construct exactly the automorphisms of a dual-number |
| 70 | product that fix the base parameter and reduce to the identity. |
| 71 | Composition is addition of the actual first-order coefficients. -/ |
| 72 | |
| 73 | variable {k A : Type*} [CommRing k] [CommRing A] [Algebra k A] |
| 74 | |
| 75 | def dualDerivationAutomorphism (d : Derivation k A A) : DualNumber A ≃ₐ[k] DualNumber A where |
| 76 | toFun u := (u.fst, d u.fst + u.snd) |
| 77 | invFun u := (u.fst, -d u.fst + u.snd) |
| 78 | left_inv u := by |
| 79 | apply TrivSqZeroExt.ext |
| 80 | · rfl |
| 81 | · change -d u.fst + (d u.fst + u.snd) = u.snd |
| 82 | abel |
| 83 | right_inv u := by |
| 84 | apply TrivSqZeroExt.ext |
| 85 | · rfl |
| 86 | · change d u.fst + (-d u.fst + u.snd) = u.snd |
| 87 | abel |
| 88 | map_add' u v := by |
| 89 | apply TrivSqZeroExt.ext |
| 90 | · rfl |
| 91 | · change d (u.fst + v.fst) + (u.snd + v.snd) = |
| 92 | (d u.fst + u.snd) + (d v.fst + v.snd) |
| 93 | rw [map_add] |
| 94 | abel |
| 95 | map_mul' u v := by |
| 96 | apply TrivSqZeroExt.ext |
| 97 | · rfl |
| 98 | · change d (u.fst * v.fst) + (u.fst * v.snd + u.snd * v.fst) = |
| 99 | u.fst * (d v.fst + v.snd) + (d u.fst + u.snd) * v.fst |
| 100 | rw [d.leibniz] |
| 101 | simp only [smul_eq_mul] |
| 102 | ring |
| 103 | commutes' c := by |
| 104 | apply TrivSqZeroExt.ext |
| 105 | · rfl |
| 106 | · change d (algebraMap k A c) + 0 = 0 |
| 107 | rw [d.map_algebraMap, add_zero] |
| 108 | |
| 109 | theorem dualDerivationAutomorphism_apply (d : Derivation k A A) (u : DualNumber A) : |
| 110 | dualDerivationAutomorphism d u = (u.fst, d u.fst + u.snd) := rfl |
| 111 | |
| 112 | theorem dualDerivationAutomorphism_reduction (d : Derivation k A A) (u : DualNumber A) : |
| 113 | (dualDerivationAutomorphism d u).fst = u.fst := rfl |
| 114 | |
| 115 | theorem dualDerivationAutomorphism_eps (d : Derivation k A A) : |
| 116 | dualDerivationAutomorphism d DualNumber.eps = DualNumber.eps := by |
| 117 | apply TrivSqZeroExt.ext |
| 118 | · rfl |
| 119 | · change d 0 + 1 = 1 |
| 120 | rw [map_zero, zero_add] |
| 121 | |
| 122 | theorem dualIdentityDerivation_of_automorphism (d : Derivation k A A) : |
| 123 | dualIdentityDerivation (dualDerivationAutomorphism d).toAlgHom |
| 124 | (dualDerivationAutomorphism_reduction d) = d := by |
| 125 | apply Derivation.ext |
| 126 | intro a |
| 127 | change d a + 0 = d a |
| 128 | exact add_zero _ |
| 129 | |
| 130 | theorem dualDerivationAutomorphism_recover (f : DualNumber A →ₐ[k] DualNumber A) |
| 131 | (hred : ∀ u, (f u).fst = u.fst) (heps : f DualNumber.eps = DualNumber.eps) : |
| 132 | (dualDerivationAutomorphism (dualIdentityDerivation f hred)).toAlgHom = f := by |
| 133 | apply AlgHom.ext |
| 134 | intro u |
| 135 | exact (dualReductionIdentity_normalForm f hred heps u).symm |
| 136 | |
| 137 | theorem dualDerivationAutomorphism_trans (d e : Derivation k A A) : |
| 138 | (dualDerivationAutomorphism d).trans (dualDerivationAutomorphism e) = |
| 139 | dualDerivationAutomorphism (d + e) := by |
| 140 | apply AlgEquiv.ext |
| 141 | intro u |
| 142 | apply TrivSqZeroExt.ext |
| 143 | · rfl |
| 144 | · change e u.fst + (d u.fst + u.snd) = (d u.fst + e u.fst) + u.snd |
| 145 | abel |
| 146 | |
| 147 | theorem dualDerivationAutomorphism_zero : |
| 148 | dualDerivationAutomorphism (0 : Derivation k A A) = AlgEquiv.refl := by |
| 149 | apply AlgEquiv.ext |
| 150 | intro u |
| 151 | apply TrivSqZeroExt.ext |
| 152 | · rfl |
| 153 | · change 0 + u.snd = u.snd |
| 154 | exact zero_add _ |
| 155 | |
| 156 | end |
| 157 | |
| 158 | /-! First-order transition coefficients commute with the actual algebra |
| 159 | restriction maps. Derivation gauges preserve the same restriction squares. -/ |
| 160 | |
| 161 | variable {k A B : Type*} [CommRing k] [CommRing A] [CommRing B] [Algebra k A] [Algebra k B] |
| 162 | |
| 163 | theorem dualNumberAlgMap_inl (q : A →ₐ[k] B) (a : A) : |
| 164 | NumberCoefficients.dualNumberAlgMap q (TrivSqZeroExt.inl a) = TrivSqZeroExt.inl (q a) := by |
| 165 | apply TrivSqZeroExt.ext |
| 166 | · rfl |
| 167 | · change q 0 = 0 |
| 168 | exact map_zero _ |
| 169 | |
| 170 | theorem dualIdentityDerivation_natural (q : A →ₐ[k] B) |
| 171 | (f : DualNumber A →ₐ[k] DualNumber A) (g : DualNumber B →ₐ[k] DualNumber B) |
| 172 | (hf : ∀ u, (f u).fst = u.fst) (hg : ∀ u, (g u).fst = u.fst) |
| 173 | (hcomm : (NumberCoefficients.dualNumberAlgMap q).comp f = g.comp (NumberCoefficients.dualNumberAlgMap q)) (a : A) : |
| 174 | q (dualIdentityDerivation f hf a) = dualIdentityDerivation g hg (q a) := by |
| 175 | have he := congrArg TrivSqZeroExt.snd (AlgHom.congr_fun hcomm (TrivSqZeroExt.inl a)) |
| 176 | change (NumberCoefficients.dualNumberAlgMap q (f (TrivSqZeroExt.inl a))).snd = |
| 177 | (g (NumberCoefficients.dualNumberAlgMap q (TrivSqZeroExt.inl a))).snd at he |
| 178 | rw [dualNumberAlgMap_inl] at he |
| 179 | exact he |
| 180 | |
| 181 | theorem dualDerivationAutomorphism_natural (q : A →ₐ[k] B) |
| 182 | (d : Derivation k A A) (e : Derivation k B B) |
| 183 | (hcomm : ∀ a, q (d a) = e (q a)) : |
| 184 | (NumberCoefficients.dualNumberAlgMap q).comp (dualDerivationAutomorphism d).toAlgHom = |
| 185 | (dualDerivationAutomorphism e).toAlgHom.comp (NumberCoefficients.dualNumberAlgMap q) := by |
| 186 | apply AlgHom.ext |
| 187 | intro u |
| 188 | apply TrivSqZeroExt.ext |
| 189 | · rfl |
| 190 | · change q (d u.fst + u.snd) = e (q u.fst) + q u.snd |
| 191 | rw [map_add, hcomm] |
| 192 | |
| 193 | end |
| 194 | |
| 195 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Dual.Derivation |