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 Mathlib.Analysis.Calculus.Deriv.Pow |
| 2 | import Mathlib.Analysis.Calculus.Deriv.Mul |
| 3 | import Mathlib.Analysis.Calculus.Deriv.Comp |
| 4 | import Mathlib.Analysis.Calculus.FDeriv.Mul |
| 5 | |
| 6 | /-! # Local Unit Powers -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.Quaternion.Arithmetic.LocalUnitPowers |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Integer powers on the unit neighborhood of a complete commutative |
| 13 | normed algebra, including their derivative along an affine parameter. -/ |
| 14 | |
| 15 | open scoped Classical |
| 16 | open _root_.ContinuousLinearMap |
| 17 | |
| 18 | section |
| 19 | |
| 20 | variable {A : Type*} [CommRing A] |
| 21 | |
| 22 | def unitPower (x : A) : ℤ → A |
| 23 | | .ofNat n => x ^ n |
| 24 | | .negSucc n => (Ring.inverse x) ^ (n + 1) |
| 25 | |
| 26 | theorem unitPower_unit (u : Aˣ) (m : ℤ) : unitPower (u : A) m = ((u ^ m : Aˣ) : A) := by |
| 27 | cases m with |
| 28 | | ofNat n => simp [unitPower] |
| 29 | | negSucc n => simp [unitPower, zpow_negSucc] |
| 30 | |
| 31 | theorem unitPower_one (m : ℤ) : unitPower (1 : A) m = 1 := by |
| 32 | cases m <;> simp [unitPower, Ring.inverse_one] |
| 33 | |
| 34 | end |
| 35 | |
| 36 | variable {K A : Type*} [NontriviallyNormedField K] [NormedCommRing A] |
| 37 | [NormedAlgebra K A] [CompleteSpace A] |
| 38 | |
| 39 | omit [CompleteSpace A] in |
| 40 | theorem affineUnit_hasDerivAt (a : A) : |
| 41 | HasDerivAt (fun t : K => 1 + t • a) a 0 := by |
| 42 | simpa only [one_smul, id_eq] using! ((hasDerivAt_id (0 : K)).smul_const a).const_add 1 |
| 43 | |
| 44 | theorem inverseAffineUnit_hasDerivAt (a : A) : |
| 45 | HasDerivAt (fun t : K => Ring.inverse (1 + t • a)) (-a) 0 := by |
| 46 | have hi : HasFDerivAt Ring.inverse (-mulLeftRight K A (1 : A) 1) |
| 47 | ((fun t : K => 1 + t • a) 0) := by |
| 48 | simpa using hasFDerivAt_ringInverse (𝕜 := K) (1 : Aˣ) |
| 49 | simpa only [Function.comp_def, neg_apply, mulLeftRight_apply, one_mul, mul_one] using! |
| 50 | hi.comp_hasDerivAt 0 (affineUnit_hasDerivAt (K := K) a) |
| 51 | |
| 52 | theorem unitPower_affine_hasDerivAt (a : A) (m : ℤ) : |
| 53 | HasDerivAt (fun t : K => unitPower (1 + t • a) m) ((m : K) • a) 0 := by |
| 54 | cases m with |
| 55 | | ofNat n => |
| 56 | simpa only [unitPower, Int.ofNat_eq_natCast, Int.cast_natCast, zero_smul, add_zero, one_pow, mul_one, |
| 57 | Nat.cast_smul_eq_nsmul, nsmul_eq_mul] using! (affineUnit_hasDerivAt (K := K) a).fun_pow n |
| 58 | | negSucc n => |
| 59 | simp only [unitPower, Int.cast_negSucc] |
| 60 | simpa only [zero_smul, add_zero, Ring.inverse_one, one_pow, mul_one, |
| 61 | Nat.cast_smul_eq_nsmul, nsmul_eq_mul, neg_smul, mul_neg] using! |
| 62 | (inverseAffineUnit_hasDerivAt (K := K) a).fun_pow (n + 1) |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.NumberTheory.Quaternion.Arithmetic.LocalUnitPowers |