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 | /- |
| 2 | Copyright 2026 The Formal Conjectures Authors. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | This file has been modified. |
| 16 | -/ |
| 17 | import Mathlib.Algebra.Algebra.Rat |
| 18 | import Mathlib.LinearAlgebra.Complex.Module |
| 19 | |
| 20 | /-! # Hodge Structure Of -/ |
| 21 | |
| 22 | namespace OAI.LinearAlgebra.Foundations.HodgeStructureOf.HodgeStructure |
| 23 | |
| 24 | noncomputable section |
| 25 | |
| 26 | /-! |
| 27 | # Rational Hodge structures |
| 28 | |
| 29 | The definitions in this file, and the lemmas about them, are reached from the statement of the |
| 30 | conjecture only through proofs, so the statement never inspects them: by proof irrelevance |
| 31 | nothing about how they were built can change what it asserts. |
| 32 | -/ |
| 33 | |
| 34 | section |
| 35 | |
| 36 | open scoped DirectSum TensorProduct |
| 37 | |
| 38 | universe u |
| 39 | |
| 40 | /-- The canonical map from a `K`-vector space to its complexification. -/ |
| 41 | def ofBase (K : Type) [Field K] [Algebra K ℂ] (V : Type u) [AddCommGroup V] [Module K V] : |
| 42 | V →ₗ[K] ℂ ⊗[K] V := |
| 43 | TensorProduct.mk K ℂ V 1 |
| 44 | |
| 45 | variable (V : Type u) [AddCommGroup V] [Module ℚ V] |
| 46 | |
| 47 | /-- Complex conjugation on a complexified rational vector space. It conjugates the scalar factor |
| 48 | and fixes every rational vector. -/ |
| 49 | def conjugate : ℂ ⊗[ℚ] V →ₗ[ℚ] ℂ ⊗[ℚ] V := |
| 50 | TensorProduct.map (Complex.conjAe.restrictScalars ℚ).toLinearMap LinearMap.id |
| 51 | |
| 52 | /-- A pure decomposition of weight `n` with natural-number bidegrees on a rational vector |
| 53 | space `V` of arbitrary dimension. |
| 54 | |
| 55 | The pieces are indexed by pairs `(p,q)`. They form an internal direct sum, only pieces with |
| 56 | `p + q = n` can be nonzero, and complex conjugation exchanges the `(p,q)` and `(q,p)` pieces. -/ |
| 57 | structure Pure (n : ℕ) where |
| 58 | /-- The Hodge piece `V^{p,q}` inside `V_ℂ`. -/ |
| 59 | piece : ℕ → ℕ → Submodule ℂ (ℂ ⊗[ℚ] V) |
| 60 | /-- Hodge pieces off the prescribed weight are zero. -/ |
| 61 | piece_eq_bot_of_add_ne : ∀ p q, p + q ≠ n → piece p q = ⊥ |
| 62 | /-- Every complexified vector has a unique finite decomposition into Hodge pieces. -/ |
| 63 | isInternal : DirectSum.IsInternal (fun pq : ℕ × ℕ ↦ piece pq.1 pq.2) |
| 64 | /-- The complex conjugation exchanges bidegrees. -/ |
| 65 | conjugate_mem_iff : ∀ p q x, conjugate V x ∈ piece p q ↔ x ∈ piece q p |
| 66 | |
| 67 | namespace Pure |
| 68 | |
| 69 | variable {V : Type u} [AddCommGroup V] [Module ℚ V] {n : ℕ} |
| 70 | |
| 71 | /-- Rational Hodge classes of codimension `p`: rational vectors whose complexifications lie in |
| 72 | the middle Hodge piece `V^{p,p}`. -/ |
| 73 | def hodgeClasses (p : ℕ) (H : Pure V (2 * p)) : Submodule ℚ V := |
| 74 | Submodule.comap (ofBase ℚ V) ((H.piece p p).restrictScalars ℚ) |
| 75 | |
| 76 | end Pure |
| 77 | |
| 78 | end |
| 79 | |
| 80 | open scoped DirectSum TensorProduct |
| 81 | |
| 82 | universe u |
| 83 | |
| 84 | @[simp] |
| 85 | lemma ofBase_apply (K : Type) [Field K] [Algebra K ℂ] (V : Type u) [AddCommGroup V] [Module K V] |
| 86 | (v : V) : ofBase K V v = 1 ⊗ₜ[K] v := rfl |
| 87 | |
| 88 | variable (V : Type u) [AddCommGroup V] [Module ℚ V] |
| 89 | |
| 90 | @[simp] |
| 91 | lemma conjugate_tmul (z : ℂ) (v : V) : |
| 92 | conjugate V (z ⊗ₜ[ℚ] v) = Complex.conjAe z ⊗ₜ[ℚ] v := rfl |
| 93 | |
| 94 | @[simp] |
| 95 | lemma conjugate_ofBase (v : V) : conjugate V (ofBase ℚ V v) = ofBase ℚ V v := by |
| 96 | simp |
| 97 | |
| 98 | @[simp] |
| 99 | lemma conjugate_conjugate (x : ℂ ⊗[ℚ] V) : conjugate V (conjugate V x) = x := by |
| 100 | refine TensorProduct.inductionOn x ?_ ?_ |
| 101 | · intro z v |
| 102 | simp |
| 103 | · intro x y hx hy |
| 104 | simp [hx, hy] |
| 105 | |
| 106 | end |
| 107 | |
| 108 | end OAI.LinearAlgebra.Foundations.HodgeStructureOf.HodgeStructure |