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.Analysis.InnerProductSpace.PiL2 |
| 18 | import Mathlib.LinearAlgebra.Complex.Orientation |
| 19 | import Mathlib.LinearAlgebra.Complex.FiniteDimensional |
| 20 | import Mathlib.RingTheory.Complex |
| 21 | import Mathlib.RingTheory.Norm.Transitivity |
| 22 | |
| 23 | /-! # Complex Orientation -/ |
| 24 | |
| 25 | namespace OAI.LinearAlgebra.Foundations.ComplexOrientation.Complex |
| 26 | |
| 27 | noncomputable section |
| 28 | |
| 29 | open _root_.Complex |
| 30 | |
| 31 | /-! |
| 32 | # Orientations of complex vector spaces |
| 33 | |
| 34 | Every complex-linear automorphism preserves either real orientation of its underlying real vector |
| 35 | space. This file proves that fact from the determinant norm formula and defines the standard |
| 36 | orientation of `Fin n → ℂ`, with real and imaginary basis vectors interleaved. |
| 37 | |
| 38 | The generic preservation theorem is phrased using mathlib's `Orientation`. In particular, it is |
| 39 | the linear-algebra input needed to construct the constant-sign `Manifold.OrientationLift` proposed |
| 40 | in [mathlib4 PR #35376](https://github.com/leanprover-community/mathlib4/pull/35376): apply |
| 41 | `Manifold.OrientationLift.compatible_of_det` to the positivity result after identifying a |
| 42 | holomorphic tangent coordinate change with the scalar restriction of a complex-linear |
| 43 | equivalence. |
| 44 | -/ |
| 45 | |
| 46 | /-- The real dimension of `Fin n → ℂ` is `2 * n`, in the form expected by |
| 47 | `Manifold.OrientationLift`. -/ |
| 48 | instance piOrientationFinrankFact (n : ℕ) : |
| 49 | Fact (Fintype.card (Fin (n * 2)) = Module.finrank ℝ (Fin n → ℂ)) := |
| 50 | ⟨by simp [Module.finrank_pi_fintype, Complex.finrank_real_complex]⟩ |
| 51 | |
| 52 | /-- The standard real basis of `Fin n → ℂ`, ordered |
| 53 | `(re z 0, im z 0, re z 1, im z 1,...)`. |
| 54 | |
| 55 | It is obtained by composing the standard complex basis of the function space with `basisOneI`, |
| 56 | then reindexing the product basis by `finProdFinEquiv`. |
| 57 | -/ |
| 58 | def piBasisOneI (n : ℕ) : Module.Basis (Fin (n * 2)) ℝ (Fin n → ℂ) := |
| 59 | (basisOneI.smulTower' (Pi.basisFun ℂ (Fin n))).reindex finProdFinEquiv |
| 60 | |
| 61 | /-- For `n ∈ ℕ`, this continuous real-linear equivalence `ℂ^n ≅ ℝ^{2n}` sends `(z_0,…,z_{n-1})` to |
| 62 | `(Re z_0,Im z_0,…,Re z_{n-1},Im z_{n-1})`. These coordinates follow the ordered real basis |
| 63 | `(e_0,i e_0,…,e_{n-1},i e_{n-1})`. -/ |
| 64 | def piCoordCLE (n : ℕ) : (Fin n → ℂ) ≃L[ℝ] (Fin (n * 2) → ℝ) := |
| 65 | (piBasisOneI n).equivFunL |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.LinearAlgebra.Foundations.ComplexOrientation.Complex |