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 | import OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteProductTrace |
| 2 | import Mathlib.RingTheory.Etale.Field |
| 3 | |
| 4 | /-! # Finite Etale Integral Trace -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteEtaleIntegralTrace |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! # The canonical trace of a finite étale algebra preserves integral elements -/ |
| 11 | |
| 12 | universe u v |
| 13 | variable (R : Type v) [CommRing R] (K E : Type u) [Field K] [CommRing E] |
| 14 | [Algebra R K] [Algebra R E] [Algebra K E] [IsScalarTower R K E] |
| 15 | |
| 16 | theorem integral [Algebra.Etale K E] {x : E} (hx : IsIntegral R x) : |
| 17 | IsIntegral R (Algebra.trace K E x) := by |
| 18 | obtain ⟨ι, hι, L, hL, hKL, e, hprop⟩ := |
| 19 | (Algebra.Etale.iff_exists_algEquiv_prod K E).mp inferInstance |
| 20 | have := hι |
| 21 | let : Fintype ι := Fintype.ofFinite ι |
| 22 | let (i : ι) : Field (L i) := hL i |
| 23 | let (i : ι) : Algebra K (L i) := hKL i |
| 24 | let (i : ι) : Algebra R (L i) := ((algebraMap K (L i)).comp (algebraMap R K)).toAlgebra |
| 25 | have (i : ι) : IsScalarTower R K (L i) := IsScalarTower.of_algebraMap_eq (fun _ => rfl) |
| 26 | have (i : ι) : FiniteDimensional K (L i) := (hprop i).1 |
| 27 | have hi (i : ι) : IsIntegral R (e x i) := |
| 28 | IsIntegral.map (((Pi.evalAlgHom K L i).comp e.toAlgHom).restrictScalars R) hx |
| 29 | rw [← Algebra.trace_eq_of_algEquiv e x, FiniteProductTrace.of_field K L] |
| 30 | exact IsIntegral.sum (fun i => Algebra.trace K (L i) (e x i)) |
| 31 | (fun i _ => Algebra.isIntegral_trace (hi i)) |
| 32 | |
| 33 | def trace [Algebra.Etale K E] : integralClosure R E →ₗ[R] integralClosure R K := |
| 34 | (((Algebra.trace K E).restrictScalars R).comp |
| 35 | (integralClosure R E).toSubmodule.subtype).codRestrict |
| 36 | (integralClosure R K).toSubmodule (fun x => integral R K E x.property) |
| 37 | |
| 38 | theorem trace_coe [Algebra.Etale K E] (x : integralClosure R E) : |
| 39 | (FiniteEtaleIntegralTrace.trace R K E x).val = Algebra.trace K E x.val := rfl |
| 40 | |
| 41 | end |
| 42 | |
| 43 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteEtaleIntegralTrace |