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 |
| 2 | |
| 3 | /-! # Positive Quadratic Bounds -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.PositiveQuadraticBounds |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A continuous positive quadratic function controls the ambient norm. |
| 10 | This gives bounded orbits for polarization-preserving lattice maps. -/ |
| 11 | |
| 12 | open _root_.Metric Bornology |
| 13 | |
| 14 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 15 | [FiniteDimensional ℝ V] |
| 16 | |
| 17 | theorem positiveQuadratic_norm_bound (Q : V → ℝ) (hc : Continuous Q) |
| 18 | (hs : ∀ (a : ℝ) (x : V), Q (a • x) = a ^ 2 * Q x) |
| 19 | (hp : ∀ x : V, x ≠ 0 → 0 < Q x) : |
| 20 | ∃ c : ℝ, 0 < c ∧ ∀ x : V, c * ‖x‖ ^ 2 ≤ Q x := by |
| 21 | have hzero : Q 0 = 0 := by simpa only [zero_smul, zero_pow (by decide : 2 ≠ 0), zero_mul] using hs 0 0 |
| 22 | rcases subsingleton_or_nontrivial V with hV | hV |
| 23 | · exact ⟨1, zero_lt_one, fun x => by rw [Subsingleton.elim x 0, norm_zero, hzero]; norm_num⟩ |
| 24 | · obtain ⟨v, hv, hmin⟩ := (isCompact_sphere (0 : V) 1).exists_isMinOn |
| 25 | (NormedSpace.sphere_nonempty.mpr zero_le_one) hc.continuousOn |
| 26 | have hvnorm : ‖v‖ = 1 := by simpa only [mem_sphere, dist_zero_right] using hv |
| 27 | have hvzero : v ≠ 0 := by |
| 28 | intro hz |
| 29 | exact zero_ne_one (by simpa only [hz, norm_zero] using hvnorm) |
| 30 | refine ⟨Q v, hp v hvzero, ?_⟩ |
| 31 | intro x |
| 32 | by_cases hx : x = 0 |
| 33 | · simp only [hx, norm_zero, zero_pow (by decide : 2 ≠ 0), mul_zero, hzero, le_refl] |
| 34 | · have hn : ‖x‖ ≠ 0 := norm_ne_zero_iff.mpr hx |
| 35 | have hu : ‖x‖⁻¹ • x ∈ sphere (0 : V) 1 := by |
| 36 | simp only [mem_sphere, dist_zero_right, norm_smul, Real.norm_eq_abs, |
| 37 | abs_inv, abs_norm, inv_mul_cancel₀ hn] |
| 38 | have hm := hmin hu |
| 39 | have he : Q x = ‖x‖ ^ 2 * Q (‖x‖⁻¹ • x) := by |
| 40 | have hh := hs ‖x‖ (‖x‖⁻¹ • x) |
| 41 | simpa only [smul_smul, mul_inv_cancel₀ hn, one_smul] using hh |
| 42 | rw [he, mul_comm (Q v)] |
| 43 | exact mul_le_mul_of_nonneg_left hm (sq_nonneg ‖x‖) |
| 44 | |
| 45 | theorem positiveQuadratic_sublevel_bounded (Q : V → ℝ) (hc : Continuous Q) |
| 46 | (hs : ∀ (a : ℝ) (x : V), Q (a • x) = a ^ 2 * Q x) |
| 47 | (hp : ∀ x : V, x ≠ 0 → 0 < Q x) (r : ℝ) : |
| 48 | IsBounded {x : V | Q x ≤ r} := by |
| 49 | obtain ⟨c, hcpos, hbound⟩ := positiveQuadratic_norm_bound Q hc hs hp |
| 50 | apply isBounded_iff_forall_norm_le.mpr |
| 51 | refine ⟨|r| / c + 1, ?_⟩ |
| 52 | intro x hx |
| 53 | have hh : ‖x‖ ^ 2 ≤ |r| / c := by |
| 54 | apply (le_div_iff₀ hcpos).mpr |
| 55 | exact (mul_comm c (‖x‖ ^ 2) ▸ hbound x).trans (hx.trans (le_abs_self r)) |
| 56 | have hk : 0 ≤ |r| / c := div_nonneg (abs_nonneg r) hcpos.le |
| 57 | nlinarith [sq_nonneg (‖x‖ - 1)] |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.PositiveQuadraticBounds |