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.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.Fields |
| 2 | import Mathlib.RingTheory.RamificationInertia.Basic |
| 3 | import Mathlib.RingTheory.Etale.Field |
| 4 | |
| 5 | /-! # Etale Degree -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.EtaleDegree |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The sum of residue degrees in any fiber of a finite flat |
| 12 | unramified algebra over a domain is its generic module rank. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | theorem algebra_sum (R S : Type) [CommRing R] [CommRing S] [IsDomain R] [Algebra R S] |
| 17 | [Module.Finite R S] [Module.Flat R S] [Algebra.FormallyUnramified R S] |
| 18 | (p : Ideal R) [p.IsPrime] [Fintype (p.primesOver S)] : |
| 19 | ∑ q : p.primesOver S, q.val.inertiaDeg R = Module.finrank R S := by |
| 20 | have h := Ideal.sum_ramification_inertia_eq_finrank p S |
| 21 | refine (Finset.sum_congr rfl ?_).trans h |
| 22 | intro q _ |
| 23 | let : q.val.IsPrime := q.property.1 |
| 24 | rw [Ideal.ramificationIdx_eq_one, one_mul] |
| 25 | |
| 26 | end |
| 27 | |
| 28 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.EtaleDegree |