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.MeasureTheory.Function.L2Space |
| 2 | import Mathlib.Tactic |
| 3 | |
| 4 | /-! # Hilbert Mean Square Bound -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.HilbertMeanSquareBound |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! An actual finite-measure mean is bounded by the original integral of the squared norm, from nonnegativity of its variance. -/ |
| 11 | |
| 12 | open _root_.MeasureTheory |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | set_option backward.defeqAttrib.useBackward true |
| 16 | |
| 17 | theorem hilbert_mean_square_bound {X H : Type*} [MeasurableSpace X] |
| 18 | [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] |
| 19 | (μ : Measure X) [IsFiniteMeasure μ] (f : X → H) (a : H) |
| 20 | (hf : Integrable f μ) (hf2 : Integrable (fun x => ‖f x‖ ^ 2) μ) |
| 21 | (hmean : (∫ x, f x ∂μ) = μ.real Set.univ • a) : |
| 22 | μ.real Set.univ * ‖a‖ ^ 2 ≤ ∫ x, ‖f x‖ ^ 2 ∂μ := by |
| 23 | have hi : Integrable (fun x => inner ℝ a (f x)) μ := hf.const_inner a |
| 24 | have hc : Integrable (fun _ : X => ‖a‖ ^ 2) μ := integrable_const _ |
| 25 | have hinner : (∫ x, inner ℝ a (f x) ∂μ) = μ.real Set.univ * ‖a‖ ^ 2 := by |
| 26 | rw [integral_inner hf a, hmean, inner_smul_right, real_inner_self_eq_norm_sq] |
| 27 | have hv : 0 ≤ ∫ x, (‖a‖ ^ 2 - 2 * inner ℝ a (f x)) + ‖f x‖ ^ 2 ∂μ := by |
| 28 | apply integral_nonneg |
| 29 | intro x |
| 30 | change 0 ≤ ‖a‖ ^ 2 - 2 * inner ℝ a (f x) + ‖f x‖ ^ 2 |
| 31 | rw [← norm_sub_sq_real] |
| 32 | exact sq_nonneg ‖a - f x‖ |
| 33 | rw [integral_add (f := fun x => ‖a‖ ^ 2 - 2 * inner ℝ a (f x)) (g := fun x => ‖f x‖ ^ 2) |
| 34 | (hc.sub (hi.const_mul 2)) hf2, |
| 35 | integral_sub (f := fun _ : X => ‖a‖ ^ 2) (g := fun x => 2 * inner ℝ a (f x)) hc (hi.const_mul 2), |
| 36 | integral_const_mul, integral_const, hinner, smul_eq_mul] at hv |
| 37 | linarith only [hv] |
| 38 | |
| 39 | end |
| 40 | |
| 41 | end OAI.AlgebraicGeometry.DivisorClass.Chern.HilbertMeanSquareBound |