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.AlgebraicTopology.DeRham.Comparison.DuffyCoordinates |
| 2 | import Mathlib.Analysis.Calculus.FDeriv.Mul |
| 3 | import Mathlib.LinearAlgebra.Matrix.Block |
| 4 | |
| 5 | /-! # Duffy Domain -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicTopology.FundamentalClass.DuffyDomain.IntegrationConstruction.Duffy |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Integration: the interior change of variables from the cube to the simplex, |
| 12 | using the first d barycentric coordinates. -/ |
| 13 | |
| 14 | open Set |
| 15 | open scoped ContDiff |
| 16 | |
| 17 | def front (d : ℕ) (t : Fin d → ℝ) (i : Fin d) : ℝ := |
| 18 | DeRham.Comparison.DuffyCoordinates.Duffy.coordinates d t i.castSucc |
| 19 | |
| 20 | def cubeInterior (d : ℕ) : Set (Fin d → ℝ) := {t | ∀ i, 0 < t i ∧ t i < 1} |
| 21 | |
| 22 | def simplexInterior (d : ℕ) : Set (Fin d → ℝ) := {x | (∀ i, 0 < x i) ∧ ∑ i, x i < 1} |
| 23 | |
| 24 | theorem front_succ (d : ℕ) (t : Fin (d + 1) → ℝ) : |
| 25 | front (d + 1) t = Fin.cons (t 0) ((1 - t 0) • front d (Fin.tail t)) := by |
| 26 | ext i |
| 27 | refine Fin.cases rfl (fun j => ?_) i |
| 28 | rfl |
| 29 | |
| 30 | theorem front_contDiff (d : ℕ) : ContDiff ℝ ∞ (front d) := |
| 31 | contDiff_pi.mpr fun i => |
| 32 | (contDiff_pi.mp (DeRham.Comparison.DuffyCoordinates.Duffy.contDiff_coordinates d ∞) i.castSucc) |
| 33 | |
| 34 | theorem front_mem_simplexInterior (d : ℕ) (t : Fin d → ℝ) (ht : t ∈ cubeInterior d) : |
| 35 | front d t ∈ simplexInterior d := by |
| 36 | induction d with |
| 37 | | zero => exact ⟨fun i => Fin.elim0 i, by simp⟩ |
| 38 | | succ d ih => |
| 39 | have htail : Fin.tail t ∈ cubeInterior d := fun i => ht i.succ |
| 40 | have hi := ih (Fin.tail t) htail |
| 41 | rw [front_succ] |
| 42 | constructor |
| 43 | · intro i |
| 44 | refine Fin.cases (ht 0).1 (fun j => ?_) i |
| 45 | exact mul_pos (sub_pos.mpr (ht 0).2) (hi.1 j) |
| 46 | · change ∑ i, Fin.cons (t 0) ((1 - t 0) • front d (Fin.tail t)) i < 1 |
| 47 | rw [Fin.sum_univ_succ] |
| 48 | simp only [Fin.cons_zero, Fin.cons_succ, Pi.smul_apply, smul_eq_mul, ← Finset.mul_sum] |
| 49 | nlinarith [(ht 0).2, hi.2] |
| 50 | |
| 51 | def inverse : (d : ℕ) → (Fin d → ℝ) → (Fin d → ℝ) |
| 52 | | 0, _ => 0 |
| 53 | | d + 1, x => Fin.cons (x 0) (inverse d ((1 - x 0)⁻¹ • Fin.tail x)) |
| 54 | |
| 55 | theorem simplexInterior_zero_lt_one {d : ℕ} {x : Fin (d + 1) → ℝ} |
| 56 | (hx : x ∈ simplexInterior (d + 1)) : x 0 < 1 := by |
| 57 | have hsum := hx.2 |
| 58 | rw [Fin.sum_univ_succ] at hsum |
| 59 | have htail : 0 ≤ ∑ i : Fin d, x i.succ := |
| 60 | Finset.sum_nonneg fun i _ => (hx.1 i.succ).le |
| 61 | linarith |
| 62 | |
| 63 | theorem normalizedTail_mem_simplexInterior {d : ℕ} {x : Fin (d + 1) → ℝ} |
| 64 | (hx : x ∈ simplexInterior (d + 1)) : |
| 65 | (1 - x 0)⁻¹ • Fin.tail x ∈ simplexInterior d := by |
| 66 | have hp : 0 < 1 - x 0 := sub_pos.mpr (simplexInterior_zero_lt_one hx) |
| 67 | constructor |
| 68 | · intro i |
| 69 | exact mul_pos (inv_pos.mpr hp) (hx.1 i.succ) |
| 70 | · have hsum := hx.2 |
| 71 | rw [Fin.sum_univ_succ] at hsum |
| 72 | change ∑ i : Fin d, (1 - x 0)⁻¹ * x i.succ < 1 |
| 73 | rw [← Finset.mul_sum, ← div_eq_inv_mul] |
| 74 | exact (div_lt_one hp).mpr (by linarith) |
| 75 | |
| 76 | theorem inverse_mem_cubeInterior (d : ℕ) (x : Fin d → ℝ) (hx : x ∈ simplexInterior d) : |
| 77 | Duffy.inverse d x ∈ cubeInterior d := by |
| 78 | induction d with |
| 79 | | zero => exact fun i => Fin.elim0 i |
| 80 | | succ d ih => |
| 81 | intro i |
| 82 | refine Fin.cases ⟨hx.1 0, simplexInterior_zero_lt_one (x := x) hx⟩ (fun j => ?_) i |
| 83 | exact ih _ (normalizedTail_mem_simplexInterior hx) j |
| 84 | |
| 85 | theorem front_inverse (d : ℕ) (x : Fin d → ℝ) (hx : x ∈ simplexInterior d) : |
| 86 | front d (Duffy.inverse d x) = x := by |
| 87 | induction d with |
| 88 | | zero => exact Subsingleton.elim _ _ |
| 89 | | succ d ih => |
| 90 | rw [front_succ] |
| 91 | have ht := ih _ (normalizedTail_mem_simplexInterior hx) |
| 92 | have hn : 1 - x 0 ≠ 0 := ne_of_gt (sub_pos.mpr (simplexInterior_zero_lt_one hx)) |
| 93 | change Fin.cons (x 0) |
| 94 | ((1 - x 0) • front d (Duffy.inverse d ((1 - x 0)⁻¹ • Fin.tail x))) = x |
| 95 | rw [ht, smul_smul, mul_inv_cancel₀ hn, one_smul] |
| 96 | exact Fin.cons_self_tail x |
| 97 | |
| 98 | theorem inverse_front (d : ℕ) (t : Fin d → ℝ) (ht : t ∈ cubeInterior d) : |
| 99 | Duffy.inverse d (front d t) = t := by |
| 100 | induction d with |
| 101 | | zero => exact Subsingleton.elim _ _ |
| 102 | | succ d ih => |
| 103 | rw [front_succ] |
| 104 | have hn : 1 - t 0 ≠ 0 := ne_of_gt (sub_pos.mpr (ht 0).2) |
| 105 | change Fin.cons (t 0) |
| 106 | (Duffy.inverse d ((1 - t 0)⁻¹ • ((1 - t 0) • front d (Fin.tail t)))) = t |
| 107 | have htail : Duffy.inverse d (front d (Fin.tail t)) = Fin.tail t := |
| 108 | ih (Fin.tail t) (fun j => ht j.succ) |
| 109 | rw [smul_smul, inv_mul_cancel₀ hn, one_smul, htail] |
| 110 | exact Fin.cons_self_tail t |
| 111 | |
| 112 | theorem front_injOn (d : ℕ) : Set.InjOn (front d) (cubeInterior d) := by |
| 113 | intro x hx y hy h |
| 114 | rw [← inverse_front d x hx, ← inverse_front d y hy, h] |
| 115 | |
| 116 | theorem front_image (d : ℕ) : front d '' cubeInterior d = simplexInterior d := by |
| 117 | apply Set.Subset.antisymm |
| 118 | · rintro _ ⟨t, ht, rfl⟩ |
| 119 | exact front_mem_simplexInterior d t ht |
| 120 | · intro x hx |
| 121 | exact ⟨Duffy.inverse d x, inverse_mem_cubeInterior d x hx, front_inverse d x hx⟩ |
| 122 | |
| 123 | end |
| 124 | |
| 125 | end OAI.AlgebraicTopology.FundamentalClass.DuffyDomain.IntegrationConstruction.Duffy |