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.FDeriv.Mul |
| 2 | import Mathlib.Analysis.Calculus.FDeriv.Add |
| 3 | import Mathlib.RingTheory.DualNumber |
| 4 | import Mathlib.Analysis.Complex.Basic |
| 5 | |
| 6 | /-! # Scalar First Jet -/ |
| 7 | |
| 8 | namespace OAI.RepresentationTheory.Theta.Geometric.ScalarFirstJet |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Actual first-order scalar jets in the complex dual-number ring. -/ |
| 13 | |
| 14 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 15 | |
| 16 | def scalarFirstJet (f : V → ℂ) (z a : V) : DualNumber ℂ := |
| 17 | (f z, fderiv ℂ f z a) |
| 18 | |
| 19 | theorem scalarFirstJet_const (c : ℂ) (z a : V) : |
| 20 | scalarFirstJet (fun _ => c) z a = TrivSqZeroExt.inl c := by |
| 21 | apply TrivSqZeroExt.ext |
| 22 | · rfl |
| 23 | · simp [scalarFirstJet] |
| 24 | |
| 25 | theorem scalarFirstJet_mul (f g : V → ℂ) (z a : V) |
| 26 | (hf : DifferentiableAt ℂ f z) (hg : DifferentiableAt ℂ g z) : |
| 27 | scalarFirstJet (fun w => f w * g w) z a = scalarFirstJet f z a * scalarFirstJet g z a := by |
| 28 | apply TrivSqZeroExt.ext |
| 29 | · rfl |
| 30 | · change fderiv ℂ (fun w => f w * g w) z a = f z * fderiv ℂ g z a + fderiv ℂ f z a * g z |
| 31 | rw [fderiv_fun_mul hf hg] |
| 32 | simp [mul_comm] |
| 33 | |
| 34 | theorem scalarFirstJet_inv (f : V → ℂ) (z a : V) |
| 35 | (hf : DifferentiableAt ℂ f z) (hz : f z ≠ 0) : |
| 36 | scalarFirstJet (fun w => (f w)⁻¹) z a = (scalarFirstJet f z a)⁻¹ := by |
| 37 | apply TrivSqZeroExt.ext |
| 38 | · rfl |
| 39 | · have H := ((hasFDerivAt_inv' (𝕜 := ℂ) hz).comp z hf.hasFDerivAt).fderiv |
| 40 | have H' := congrArg (fun d : V →L[ℂ] ℂ => d a) H |
| 41 | change fderiv ℂ (fun w => (f w)⁻¹) z a = |
| 42 | -((f z)⁻¹ * fderiv ℂ f z a * (f z)⁻¹) |
| 43 | simpa [Function.comp_def, ContinuousLinearMap.mulLeftRight_apply, smul_eq_mul, mul_assoc] using H' |
| 44 | |
| 45 | theorem scalarFirstJet_add_const (f : V → ℂ) (z a b : V) : |
| 46 | scalarFirstJet (fun w => f (w + b)) z a = scalarFirstJet f (z + b) a := by |
| 47 | apply TrivSqZeroExt.ext |
| 48 | · rfl |
| 49 | · exact congrArg (fun d : V →L[ℂ] ℂ => d a) (fderiv_comp_add_right b) |
| 50 | |
| 51 | theorem scalarFirstJet_isUnit (f : V → ℂ) (z a : V) (hf : f z ≠ 0) : |
| 52 | IsUnit (scalarFirstJet f z a) := |
| 53 | TrivSqZeroExt.isUnit_iff_isUnit_fst.mpr (isUnit_iff_ne_zero.mpr hf) |
| 54 | |
| 55 | theorem scalarFirstJet_div (f g : V → ℂ) (z a : V) |
| 56 | (hf : DifferentiableAt ℂ f z) (hg : DifferentiableAt ℂ g z) (hz : g z ≠ 0) : |
| 57 | scalarFirstJet (fun w => f w / g w) z a = |
| 58 | scalarFirstJet f z a * (scalarFirstJet g z a)⁻¹ := by |
| 59 | simp only [div_eq_mul_inv] |
| 60 | rw [scalarFirstJet_mul f (fun w => (g w)⁻¹) z a hf (hg.fun_inv hz), |
| 61 | scalarFirstJet_inv g z a hg hz] |
| 62 | |
| 63 | theorem scalarFirstJet_translates (f J : V → ℂ) (l z a : V) |
| 64 | (hf : DifferentiableAt ℂ f z) (hJ : DifferentiableAt ℂ J z) |
| 65 | (htrans : ∀ w, f (w + l) = J w * f w) : |
| 66 | scalarFirstJet f (z + l) a = scalarFirstJet J z a * scalarFirstJet f z a := by |
| 67 | rw [← scalarFirstJet_add_const f z a l, funext htrans] |
| 68 | exact scalarFirstJet_mul J f z a hJ hf |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.RepresentationTheory.Theta.Geometric.ScalarFirstJet |