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.RingTheory.MvPowerSeries.Equiv |
| 2 | |
| 3 | /-! # Power Series Subst -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.PowerSeriesSubst.Construction.PowerSeriesShear |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Invertible linear changes of coordinates for finite-variable power series. -/ |
| 10 | |
| 11 | open MvPowerSeries |
| 12 | |
| 13 | variable {R : Type*} [CommRing R] {n : ℕ} |
| 14 | |
| 15 | def coordinates (a : Fin n → R) : Fin (n + 1) → MvPowerSeries (Fin (n + 1)) R := |
| 16 | Fin.cases (X 0) (fun i => X i.succ + a i • X 0) |
| 17 | |
| 18 | theorem coordinates_zero (a : Fin n → R) : coordinates a 0 = X 0 := rfl |
| 19 | |
| 20 | theorem coordinates_succ (a : Fin n → R) (i : Fin n) : |
| 21 | coordinates a i.succ = X i.succ + a i • X 0 := rfl |
| 22 | |
| 23 | theorem hasSubst (a : Fin n → R) : HasSubst (coordinates a) := by |
| 24 | apply hasSubst_of_constantCoeff_zero |
| 25 | intro i |
| 26 | refine Fin.cases ?_ (fun j => ?_) i |
| 27 | · simp [coordinates_zero] |
| 28 | · simp [coordinates_succ] |
| 29 | |
| 30 | theorem subst_coordinates (a b : Fin n → R) (i : Fin (n + 1)) : |
| 31 | subst (coordinates b) (coordinates a i) = coordinates (a + b) i := by |
| 32 | refine Fin.cases ?_ (fun j => ?_) i |
| 33 | · simp [coordinates_zero, subst_X (hasSubst b)] |
| 34 | · simp only [coordinates_succ, subst_add (hasSubst b), subst_X (hasSubst b), |
| 35 | subst_smul (hasSubst b), coordinates_zero, Pi.add_apply, add_smul] |
| 36 | abel |
| 37 | |
| 38 | theorem subst_neg_subst (a : Fin n → R) (f : MvPowerSeries (Fin (n + 1)) R) : |
| 39 | subst (coordinates (-a)) (subst (coordinates a) f) = f := by |
| 40 | rw [subst_comp_subst_apply (hasSubst a) (hasSubst (-a))] |
| 41 | have he : (fun i => subst (coordinates (-a)) (coordinates a i)) = X := by |
| 42 | funext i |
| 43 | rw [subst_coordinates] |
| 44 | refine Fin.cases ?_ (fun j => ?_) i |
| 45 | · rfl |
| 46 | · simp [coordinates_succ] |
| 47 | rw [he, subst_self] |
| 48 | rfl |
| 49 | |
| 50 | def equiv (a : Fin n → R) : |
| 51 | MvPowerSeries (Fin (n + 1)) R ≃ₐ[R] MvPowerSeries (Fin (n + 1)) R where |
| 52 | __ := substAlgHom (R := R) (hasSubst a) |
| 53 | invFun := subst (coordinates (-a)) |
| 54 | left_inv f := by |
| 55 | change subst (coordinates (-a)) (substAlgHom (hasSubst a) f) = f |
| 56 | rw [substAlgHom_apply] |
| 57 | exact subst_neg_subst a f |
| 58 | right_inv f := by simpa using subst_neg_subst (-a) f |
| 59 | |
| 60 | theorem equiv_apply (a : Fin n → R) (f : MvPowerSeries (Fin (n + 1)) R) : |
| 61 | equiv a f = subst (coordinates a) f := substAlgHom_apply (hasSubst a) f |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.PowerSeriesSubst.Construction.PowerSeriesShear |