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 (c) 2026 Naganori Yamaguchi (https://github.com/n-yamaguchi-0729). All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | Authors: Naganori Yamaguchi (assisted by OpenAI Codex) |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import Mathlib.LinearAlgebra.Charpoly.BaseChange |
| 8 | import Mathlib.LinearAlgebra.Trace |
| 9 | import Mathlib.RingTheory.Norm.Basic |
| 10 | import Mathlib.RingTheory.Trace.Basic |
| 11 | import Mathlib.RingTheory.TensorProduct.Basic |
| 12 | |
| 13 | /-! # Base Change Norm Trace -/ |
| 14 | |
| 15 | namespace OAI.NumberTheory.PadicHodge.WeakAdmissibility.BaseChangeNormTrace |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | |
| 21 | /-! |
| 22 | # Norm and trace under scalar extension |
| 23 | |
| 24 | Norm and trace formulas compare multiplication by an element of `L` before and after |
| 25 | extending scalars from `K` to `K_v`. These lemmas state that comparison |
| 26 | directly for the canonical element `1 ⊗ₜ x`. |
| 27 | -/ |
| 28 | |
| 29 | namespace ValuationTheory.Completion |
| 30 | |
| 31 | universe u v w |
| 32 | |
| 33 | open scoped TensorProduct |
| 34 | |
| 35 | /-- Algebra norm commutes with scalar extension. -/ |
| 36 | theorem algebra_norm_baseChange_tmul |
| 37 | {K A L : Type*} [Field K] [Field A] [CommRing L] |
| 38 | [Algebra K A] [Algebra K L] |
| 39 | [Module.Free K L] [Module.Finite K L] |
| 40 | (x : L) : |
| 41 | Algebra.norm A (1 ⊗ₜ[K] x : A ⊗[K] L) = |
| 42 | algebraMap K A (Algebra.norm K x) := by |
| 43 | rw [Algebra.norm_apply, ← Algebra.baseChange_lmul, |
| 44 | LinearMap.det_baseChange, ← Algebra.norm_apply] |
| 45 | |
| 46 | /-- Algebra trace commutes with scalar extension. -/ |
| 47 | theorem algebra_trace_baseChange_tmul |
| 48 | {K A L : Type*} [Field K] [Field A] [CommRing L] |
| 49 | [Algebra K A] [Algebra K L] |
| 50 | [Module.Free K L] [Module.Finite K L] |
| 51 | (x : L) : |
| 52 | Algebra.trace A (A ⊗[K] L) (1 ⊗ₜ[K] x) = |
| 53 | algebraMap K A (Algebra.trace K L x) := by |
| 54 | rw [Algebra.trace_apply, ← Algebra.baseChange_lmul, |
| 55 | LinearMap.trace_baseChange, ← Algebra.trace_apply] |
| 56 | |
| 57 | end ValuationTheory.Completion |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.NumberTheory.PadicHodge.WeakAdmissibility.BaseChangeNormTrace |