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 OAI.Algebra.Ring.Basic |
| 18 | import Mathlib.Analysis.Complex.Basic |
| 19 | import Mathlib.LinearAlgebra.Basis.VectorSpace |
| 20 | |
| 21 | /-! # Field To Complex -/ |
| 22 | |
| 23 | namespace OAI.Algebra.Foundations.FieldToComplex |
| 24 | |
| 25 | noncomputable section |
| 26 | |
| 27 | /-! |
| 28 | # A coefficient field inside the complex numbers |
| 29 | |
| 30 | The definitions in this file, and the lemmas about them, are reached from the statement of the |
| 31 | conjecture only through proofs, so the statement never inspects them: by proof irrelevance |
| 32 | nothing about how they were built can change what it asserts. |
| 33 | -/ |
| 34 | |
| 35 | section |
| 36 | |
| 37 | variable (K : Type) [Field K] [Algebra K ℂ] |
| 38 | |
| 39 | /-- A rational-linear retraction of the inclusion `K → ℂ`. Such a retraction exists because an |
| 40 | injective linear map of vector spaces over a field splits. -/ |
| 41 | noncomputable def complexToFieldLinear : ℂ →ₗ[K] K := |
| 42 | Classical.choose <| (Algebra.linearMap K ℂ).exists_leftInverse_of_injective |
| 43 | (LinearMap.ker_eq_bot.mpr (algebraMap K ℂ).injective) |
| 44 | |
| 45 | end |
| 46 | |
| 47 | variable (K : Type) [Field K] [Algebra K ℂ] |
| 48 | |
| 49 | /-- The chosen rational-linear retraction is a left inverse to `K → ℂ`. -/ |
| 50 | lemma complexToFieldLinear_comp_algebraMap : |
| 51 | complexToFieldLinear K ∘ₗ Algebra.linearMap K ℂ = LinearMap.id := |
| 52 | Classical.choose_spec <| (Algebra.linearMap K ℂ).exists_leftInverse_of_injective |
| 53 | (LinearMap.ker_eq_bot.mpr (algebraMap K ℂ).injective) |
| 54 | |
| 55 | @[simp] lemma complexToFieldLinear_algebraMap (q : K) : |
| 56 | complexToFieldLinear K (algebraMap K ℂ q) = q := |
| 57 | LinearMap.congr_fun (complexToFieldLinear_comp_algebraMap K) q |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.Algebra.Foundations.FieldToComplex |