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.Finite.EtaleDegree |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.FiberDegree |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.GenericDegree |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.GenericField |
| 5 | import Mathlib.AlgebraicGeometry.Morphisms.Finite |
| 6 | import Mathlib.AlgebraicGeometry.Morphisms.Etale |
| 7 | |
| 8 | /-! # Etale Fiber Degree -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.EtaleFiberDegree |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! On a finite etale morphism of integral schemes, the sum of |
| 15 | native residue degrees in every fiber equals the generic degree. -/ |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 21 | |
| 22 | theorem sum {X Y : Scheme.{0}} [IsIntegral X] [IsIntegral Y] (f : X ⟶ Y) [IsFinite f] [Etale f] |
| 23 | (y : Y) [Fintype (f ⁻¹' ({y} : Set Y))] : |
| 24 | ∑ x : f ⁻¹' ({y} : Set Y), f.residueDegree x.val = f.residueDegree (genericPoint X) := by |
| 25 | obtain ⟨U, hU, hy, _⟩ := exists_isAffineOpen_mem_and_subset (show y ∈ (⊤ : Y.Opens) from trivial) |
| 26 | let : Nonempty U := ⟨⟨y, hy⟩⟩ |
| 27 | have hη := Smooth.GenericField.genericPoint_image f |
| 28 | have hηU : genericPoint Y ∈ U := (genericPoint_specializes y).mem_open U.isOpen hy |
| 29 | let : Nonempty (f ⁻¹ᵁ U) := ⟨⟨genericPoint X, by change f (genericPoint X) ∈ U; rwa [hη]⟩⟩ |
| 30 | have hV : IsAffineOpen (f ⁻¹ᵁ U) := hU.preimage f |
| 31 | let R := Γ(Y, U) |
| 32 | let S := Γ(X, f ⁻¹ᵁ U) |
| 33 | let : Algebra R S := (f.app U).hom.toAlgebra |
| 34 | let : Module.Finite R S := f.finite_app U hU |
| 35 | let : Algebra.Etale R S := by |
| 36 | change (f.app U).hom.Etale |
| 37 | rw [Scheme.Hom.app_eq_appLE] |
| 38 | exact f.etale_appLE hU hV le_rfl |
| 39 | let p := Affine.FiberDegree.prime U hU y hy |
| 40 | let : Fintype (p.asIdeal.primesOver S) := Fintype.ofEquiv (f ⁻¹' ({y} : Set Y)) |
| 41 | (Affine.FiberDegree.equiv f U hU hV y hy).symm |
| 42 | calc |
| 43 | _ = ∑ q : p.asIdeal.primesOver S, q.val.inertiaDeg R := Affine.FiberDegree.sum f U hU hV y hy |
| 44 | _ = Module.finrank R S := EtaleDegree.algebra_sum R S p.asIdeal |
| 45 | _ = _ := Affine.GenericDegree.rank f hη U hU hV |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.EtaleFiberDegree |