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 | /-! # Intrinsic Exterior -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Theta.Kernel.IntrinsicExterior.Intrinsic |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Ordinary complex top covectors on the two-ball, with their literal |
| 10 | alternating evaluation and wedge product. No theta or descent input. -/ |
| 11 | |
| 12 | open scoped Classical _root_.Matrix |
| 13 | |
| 14 | abbrev Tangent := Fin 2 → ℂ |
| 15 | abbrev Cotangent := Tangent →L[ℂ] ℂ |
| 16 | abbrev TopCovector := Tangent [⋀^Fin 2]→L[ℂ] ℂ |
| 17 | |
| 18 | def area : TopCovector where |
| 19 | toAlternatingMap := Matrix.detRowAlternating |
| 20 | cont := by |
| 21 | change Continuous (Matrix.det : Matrix (Fin 2) (Fin 2) ℂ → ℂ) |
| 22 | have hd : (Matrix.det : Matrix (Fin 2) (Fin 2) ℂ → ℂ) = |
| 23 | fun M => M 0 0 * M 1 1 - M 0 1 * M 1 0 := funext Matrix.det_fin_two |
| 24 | rw [hd] |
| 25 | fun_prop |
| 26 | |
| 27 | theorem area_apply (u v : Tangent) : area ![u, v] = u 0 * v 1 - u 1 * v 0 := by |
| 28 | change Matrix.det ![u, v] = _ |
| 29 | exact Matrix.det_fin_two _ |
| 30 | |
| 31 | def wedgeCoefficient (a b : Cotangent) : ℂ := |
| 32 | a ![1, 0] * b ![0, 1] - a ![0, 1] * b ![1, 0] |
| 33 | |
| 34 | def wedge (a b : Cotangent) : TopCovector := wedgeCoefficient a b • area |
| 35 | |
| 36 | theorem covector_coordinates (a : Cotangent) (u : Tangent) : |
| 37 | a u = u 0 * a ![1, 0] + u 1 * a ![0, 1] := by |
| 38 | have hu : u = u 0 • ![1, 0] + u 1 • ![0, 1] := by |
| 39 | ext i; fin_cases i <;> simp |
| 40 | calc |
| 41 | a u = a (u 0 • ![1, 0] + u 1 • ![0, 1]) := congrArg a hu |
| 42 | _ = _ := by rw [map_add, map_smul, map_smul]; rfl |
| 43 | |
| 44 | theorem wedge_apply (a b : Cotangent) (u v : Tangent) : |
| 45 | wedge a b ![u, v] = a u * b v - a v * b u := by |
| 46 | simp only [wedge, ContinuousAlternatingMap.smul_apply, smul_eq_mul, area_apply, |
| 47 | wedgeCoefficient, covector_coordinates a u, covector_coordinates a v, |
| 48 | covector_coordinates b u, covector_coordinates b v] |
| 49 | ring |
| 50 | |
| 51 | theorem wedgeCoefficient_add_left (a b c : Cotangent) : |
| 52 | wedgeCoefficient (a + b) c = wedgeCoefficient a c + wedgeCoefficient b c := by |
| 53 | simp only [wedgeCoefficient, _root_.add_apply] |
| 54 | ring |
| 55 | |
| 56 | theorem wedgeCoefficient_smul_left (c : ℂ) (a b : Cotangent) : |
| 57 | wedgeCoefficient (c • a) b = c * wedgeCoefficient a b := by |
| 58 | simp only [wedgeCoefficient, _root_.smul_apply, smul_eq_mul] |
| 59 | ring |
| 60 | |
| 61 | theorem wedgeCoefficient_add_right (a b c : Cotangent) : |
| 62 | wedgeCoefficient a (b + c) = wedgeCoefficient a b + wedgeCoefficient a c := by |
| 63 | simp only [wedgeCoefficient, _root_.add_apply] |
| 64 | ring |
| 65 | |
| 66 | theorem wedgeCoefficient_smul_right (c : ℂ) (a b : Cotangent) : |
| 67 | wedgeCoefficient a (c • b) = c * wedgeCoefficient a b := by |
| 68 | simp only [wedgeCoefficient, _root_.smul_apply, smul_eq_mul] |
| 69 | ring |
| 70 | |
| 71 | theorem wedge_naturality (a b : Cotangent) (g : Tangent →L[ℂ] Tangent) : |
| 72 | (wedge a b).compContinuousLinearMap g = wedge (a.comp g) (b.comp g) := by |
| 73 | ext v |
| 74 | have hv : v = ![v 0, v 1] := by ext i; fin_cases i <;> rfl |
| 75 | rw [hv] |
| 76 | simp only [ContinuousAlternatingMap.compContinuousLinearMap_apply] |
| 77 | change wedge a b ![g (v 0), g (v 1)] = wedge (a.comp g) (b.comp g) ![v 0, v 1] |
| 78 | simp only [wedge_apply, ContinuousLinearMap.comp_apply] |
| 79 | |
| 80 | theorem spanning_wedge_nonzero {I J : Type*} (a : I → Cotangent) (b : J → Cotangent) |
| 81 | (ha : Submodule.span ℂ (Set.range a) = ⊤) |
| 82 | (hb : Submodule.span ℂ (Set.range b) = ⊤) : |
| 83 | ∃ i j, wedge (a i) (b j) ≠ 0 := by |
| 84 | by_contra! h |
| 85 | have hzero : ∀ i j, wedgeCoefficient (a i) (b j) = 0 := by |
| 86 | intro i j |
| 87 | have he := congrArg (fun ω : TopCovector => ω ![![1, 0], ![0, 1]]) (h i j) |
| 88 | simpa [wedge, area_apply] using he |
| 89 | have hallLeft : ∀ x ∈ Submodule.span ℂ (Set.range a), ∀ j, wedgeCoefficient x (b j) = 0 := by |
| 90 | intro x hx |
| 91 | induction hx using Submodule.span_induction with |
| 92 | | mem x hx => obtain ⟨i, rfl⟩ := hx; exact hzero i |
| 93 | | zero => intro j; simp [wedgeCoefficient] |
| 94 | | add x y _ _ hx hy => intro j; rw [wedgeCoefficient_add_left, hx, hy, add_zero] |
| 95 | | smul c x _ hx => intro j; rw [wedgeCoefficient_smul_left, hx, mul_zero] |
| 96 | have hall : ∀ x y : Cotangent, wedgeCoefficient x y = 0 := by |
| 97 | intro x y |
| 98 | have hy : y ∈ Submodule.span ℂ (Set.range b) := by rw [hb]; trivial |
| 99 | induction hy using Submodule.span_induction with |
| 100 | | mem y hy => |
| 101 | obtain ⟨j, rfl⟩ := hy |
| 102 | exact hallLeft x (by rw [ha]; trivial) j |
| 103 | | zero => simp [wedgeCoefficient] |
| 104 | | add y z _ _ hy hz => rw [wedgeCoefficient_add_right, hy, hz, add_zero] |
| 105 | | smul c y _ hy => rw [wedgeCoefficient_smul_right, hy, mul_zero] |
| 106 | have he := hall (ContinuousLinearMap.proj 0) (ContinuousLinearMap.proj 1) |
| 107 | norm_num [wedgeCoefficient] at he |
| 108 | |
| 109 | end |
| 110 | |
| 111 | end OAI.RepresentationTheory.Theta.Kernel.IntrinsicExterior.Intrinsic |