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 OAI.NumberTheory.PadicHodge.WeakAdmissibility.BaseChangeNormTrace |
| 8 | import OAI.NumberTheory.PadicHodge.WeakAdmissibility.FiniteProductNormTrace |
| 9 | |
| 10 | /-! # Tensor Product Product Formulas -/ |
| 11 | |
| 12 | namespace OAI.NumberTheory.PadicHodge.WeakAdmissibility.TensorProductProductFormulas |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | /-! |
| 19 | # Degree, norm, and trace through a tensor-product decomposition |
| 20 | |
| 21 | These are the purely linear-algebraic implications for a finite product decomposition. |
| 22 | They deliberately state the product terms as the components of a supplied |
| 23 | algebra equivalence. A tensor-product decomposition identifies those components |
| 24 | with the canonical images in `L_w`; no compatibility theorem is assumed |
| 25 | here. |
| 26 | -/ |
| 27 | |
| 28 | namespace ValuationTheory.Completion |
| 29 | |
| 30 | universe u v w |
| 31 | |
| 32 | open scoped TensorProduct |
| 33 | |
| 34 | /-- Finite rank is the sum of the ranks of the factors in a finite |
| 35 | dependent-product decomposition after scalar extension. -/ |
| 36 | theorem baseChange_pi_finrank_eq_sum |
| 37 | {K : Type u} {A : Type v} {L : Type w} |
| 38 | [Field K] [Field A] [Field L] [Algebra K A] [Algebra K L] |
| 39 | [FiniteDimensional K L] |
| 40 | {I : Type*} [Fintype I] |
| 41 | (B : I → Type*) [∀ i, Field (B i)] [∀ i, Algebra A (B i)] |
| 42 | [∀ i, Module.Finite A (B i)] |
| 43 | (e : A ⊗[K] L ≃ₐ[A] ∀ i, B i) : |
| 44 | Module.finrank K L = ∑ i, Module.finrank A (B i) := by |
| 45 | calc |
| 46 | Module.finrank K L = Module.finrank A (A ⊗[K] L) := |
| 47 | Module.finrank_baseChange.symm |
| 48 | _ = Module.finrank A (∀ i, B i) := e.toLinearEquiv.finrank_eq |
| 49 | _ = ∑ i, Module.finrank A (B i) := Module.finrank_pi_fintype A |
| 50 | |
| 51 | /-- The base-changed global norm is the product of the norms of the |
| 52 | components under a finite dependent-product decomposition. -/ |
| 53 | theorem baseChange_pi_norm_eq_prod |
| 54 | {K : Type u} {A : Type v} {L : Type w} |
| 55 | [Field K] [Field A] [Field L] [Algebra K A] [Algebra K L] |
| 56 | [FiniteDimensional K L] |
| 57 | {I : Type*} [Fintype I] |
| 58 | (B : I → Type*) [∀ i, Field (B i)] [∀ i, Algebra A (B i)] |
| 59 | [∀ i, Module.Finite A (B i)] |
| 60 | (e : A ⊗[K] L ≃ₐ[A] ∀ i, B i) (x : L) : |
| 61 | algebraMap K A (Algebra.norm K x) = |
| 62 | ∏ i, Algebra.norm A (e (1 ⊗ₜ[K] x) i) := by |
| 63 | calc |
| 64 | algebraMap K A (Algebra.norm K x) = |
| 65 | Algebra.norm A (1 ⊗ₜ[K] x) := |
| 66 | (BaseChangeNormTrace.ValuationTheory.Completion.algebra_norm_baseChange_tmul (A := A) x).symm |
| 67 | _ = Algebra.norm A (e (1 ⊗ₜ[K] x)) := |
| 68 | (Algebra.norm_eq_of_algEquiv e (1 ⊗ₜ[K] x)).symm |
| 69 | _ = ∏ i, Algebra.norm A (e (1 ⊗ₜ[K] x) i) := |
| 70 | FiniteProductNormTrace.ValuationTheory.Completion.algebra_norm_pi_apply B _ |
| 71 | |
| 72 | /-- The base-changed global trace is the sum of the traces of the |
| 73 | components under a finite dependent-product decomposition. -/ |
| 74 | theorem baseChange_pi_trace_eq_sum |
| 75 | {K : Type u} {A : Type v} {L : Type w} |
| 76 | [Field K] [Field A] [Field L] [Algebra K A] [Algebra K L] |
| 77 | [FiniteDimensional K L] |
| 78 | {I : Type*} [Fintype I] |
| 79 | (B : I → Type*) [∀ i, Field (B i)] [∀ i, Algebra A (B i)] |
| 80 | [∀ i, Module.Finite A (B i)] |
| 81 | (e : A ⊗[K] L ≃ₐ[A] ∀ i, B i) (x : L) : |
| 82 | algebraMap K A (Algebra.trace K L x) = |
| 83 | ∑ i, Algebra.trace A (B i) (e (1 ⊗ₜ[K] x) i) := by |
| 84 | calc |
| 85 | algebraMap K A (Algebra.trace K L x) = |
| 86 | Algebra.trace A (A ⊗[K] L) (1 ⊗ₜ[K] x) := |
| 87 | (BaseChangeNormTrace.ValuationTheory.Completion.algebra_trace_baseChange_tmul (A := A) x).symm |
| 88 | _ = Algebra.trace A (∀ i, B i) (e (1 ⊗ₜ[K] x)) := |
| 89 | (Algebra.trace_eq_of_algEquiv e (1 ⊗ₜ[K] x)).symm |
| 90 | _ = ∑ i, Algebra.trace A (B i) (e (1 ⊗ₜ[K] x) i) := |
| 91 | FiniteProductNormTrace.ValuationTheory.Completion.algebra_trace_pi_apply B _ |
| 92 | |
| 93 | end ValuationTheory.Completion |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.NumberTheory.PadicHodge.WeakAdmissibility.TensorProductProductFormulas |