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.ContDiff.Basic |
| 2 | import Mathlib.Analysis.Calculus.ContDiff.Operations |
| 3 | import Mathlib.Analysis.Calculus.FDeriv.Prod |
| 4 | |
| 5 | /-! # Parameter Derivative -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.ParameterDerivative |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Smoothness of the actual partial derivative of a smooth parameter-dependent function on an arbitrary open product domain. -/ |
| 12 | |
| 13 | open scoped ContDiff |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | |
| 18 | variable {P E F : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 19 | [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 20 | |
| 21 | def parameterFDerivRight (f : P × E → F) (p : P × E) : E →L[ℝ] F := |
| 22 | fderiv ℝ (fun y => f (p.1, y)) p.2 |
| 23 | |
| 24 | theorem parameterFDerivRight_eq (f : P × E → F) {p : P × E} (hf : DifferentiableAt ℝ f p) : |
| 25 | parameterFDerivRight f p = (fderiv ℝ f p).comp (ContinuousLinearMap.inr ℝ P E) := by |
| 26 | simpa only [Function.comp_def] using! |
| 27 | (hf.hasFDerivAt.comp p.2 (hasFDerivAt_prodMk_right p.1 p.2)).fderiv |
| 28 | |
| 29 | theorem parameterFDerivRight_smoothOn (f : P × E → F) {U : Set (P × E)} (hU : IsOpen U) |
| 30 | (hf : ContDiffOn ℝ ∞ f U) : ContDiffOn ℝ ∞ (parameterFDerivRight f) U := by |
| 31 | have hD : ContDiffOn ℝ ∞ (fderiv ℝ f) U := hf.fderiv_of_isOpen hU (by simp) |
| 32 | have hC : ContDiffOn ℝ ∞ (fun p => (fderiv ℝ f p).comp (ContinuousLinearMap.inr ℝ P E)) U := |
| 33 | hD.clm_comp contDiffOn_const |
| 34 | apply hC.congr |
| 35 | intro p hp |
| 36 | exact parameterFDerivRight_eq f ((hf.contDiffAt (hU.mem_nhds hp)).differentiableAt (by simp)) |
| 37 | |
| 38 | end |
| 39 | |
| 40 | end OAI.AlgebraicGeometry.DivisorClass.Chern.ParameterDerivative |