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 OAI.AlgebraicGeometry.DivisorClass.Chern.HolomorphicLine.MetricWeight |
| 2 | import Mathlib.Analysis.SpecialFunctions.Sqrt |
| 3 | |
| 4 | /-! # Square Partition -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.SquarePartition |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A finite smooth partition normalized to have sum of squares equal to one, with unchanged supports. -/ |
| 11 | |
| 12 | open _root_.TopologicalSpace |
| 13 | open scoped _root_.Manifold 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 {ι M : Type*} [Fintype ι] |
| 19 | |
| 20 | def squarePartitionNormSq (f : ι → M → ℝ) (x : M) : ℝ := ∑ i, f i x ^ 2 |
| 21 | |
| 22 | def squarePartitionNormalized (f : ι → M → ℝ) (i : ι) (x : M) : ℝ := |
| 23 | f i x / Real.sqrt (squarePartitionNormSq f x) |
| 24 | |
| 25 | theorem squarePartitionNormSq_pos (f : ι → M → ℝ) (hsum : ∀ x, ∑ i, f i x = 1) (x : M) : |
| 26 | 0 < squarePartitionNormSq f x := by |
| 27 | classical |
| 28 | have hsome : ∃ i, f i x ≠ 0 := by |
| 29 | by_contra! hz |
| 30 | have h := hsum x |
| 31 | simp only [hz, Finset.sum_const_zero] at h |
| 32 | exact zero_ne_one h |
| 33 | obtain ⟨i, hi⟩ := hsome |
| 34 | exact (sq_pos_of_ne_zero hi).trans_le |
| 35 | (Finset.single_le_sum (fun j _ => sq_nonneg (f j x)) (Finset.mem_univ i)) |
| 36 | |
| 37 | theorem squarePartitionNormalized_sum_sq (f : ι → M → ℝ) |
| 38 | (hsum : ∀ x, ∑ i, f i x = 1) (x : M) : ∑ i, squarePartitionNormalized f i x ^ 2 = 1 := by |
| 39 | simp only [squarePartitionNormalized, div_pow, ← Finset.sum_div] |
| 40 | rw [Real.sq_sqrt (squarePartitionNormSq_pos f hsum x).le] |
| 41 | exact div_self (ne_of_gt (squarePartitionNormSq_pos f hsum x)) |
| 42 | |
| 43 | variable [TopologicalSpace M] |
| 44 | |
| 45 | theorem squarePartitionNormalized_tsupport (f : ι → M → ℝ) (i : ι) : |
| 46 | tsupport (squarePartitionNormalized f i) ⊆ tsupport (f i) := by |
| 47 | apply closure_mono |
| 48 | intro x hx |
| 49 | contrapose! hx |
| 50 | simp only [Function.mem_support, not_not] at hx ⊢ |
| 51 | simp only [squarePartitionNormalized, hx, zero_div] |
| 52 | |
| 53 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [ChartedSpace E M] |
| 54 | |
| 55 | theorem squarePartitionNormSq_smooth (f : ι → M → ℝ) |
| 56 | (hf : ∀ i, ContMDiff 𝓘(ℝ, E) 𝓘(ℝ) ∞ (f i)) : |
| 57 | ContMDiff 𝓘(ℝ, E) 𝓘(ℝ) ∞ (squarePartitionNormSq f) := by |
| 58 | apply ContMDiff.sum |
| 59 | intro i _ |
| 60 | exact (hf i).pow 2 |
| 61 | |
| 62 | theorem squarePartitionNormalized_smooth (f : ι → M → ℝ) |
| 63 | (hf : ∀ i, ContMDiff 𝓘(ℝ, E) 𝓘(ℝ) ∞ (f i)) (hsum : ∀ x, ∑ i, f i x = 1) (i : ι) : |
| 64 | ContMDiff 𝓘(ℝ, E) 𝓘(ℝ) ∞ (squarePartitionNormalized f i) := by |
| 65 | have hd : ContMDiff 𝓘(ℝ, E) 𝓘(ℝ) ∞ (fun x => Real.sqrt (squarePartitionNormSq f x)) := by |
| 66 | intro x |
| 67 | exact (Real.contDiffAt_sqrt (ne_of_gt (squarePartitionNormSq_pos f hsum x))).contMDiffAt.comp x |
| 68 | (squarePartitionNormSq_smooth f hf x) |
| 69 | exact (hf i).div₀ hd (fun x => ne_of_gt (Real.sqrt_pos.mpr (squarePartitionNormSq_pos f hsum x))) |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.DivisorClass.Chern.SquarePartition |