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.FormalGeometry.Completion.Frobenius |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Finite |
| 3 | import Mathlib.RingTheory.IntegralClosure.IsIntegral.Basic |
| 4 | |
| 5 | /-! # Frobenius Finite -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.FrobeniusFinite.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual q-power scheme Frobenius is finite on finite-type schemes over the finite field. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | set_option backward.defeqAttrib.useBackward true |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable (k : Type u) [Field k] [Fintype k] |
| 21 | |
| 22 | /-- Every element is integral over the image of the actual q-power ring map. -/ |
| 23 | theorem finiteFieldPowerRingHom_isIntegral {R : Type u} [CommRing R] (κ : k →+* R) : |
| 24 | (Frobenius.Construction.finiteFieldPowerRingHom k κ).IsIntegral := by |
| 25 | let : Algebra R R := (Frobenius.Construction.finiteFieldPowerRingHom k κ).toAlgebra |
| 26 | intro r |
| 27 | apply _root_.IsIntegral.of_pow (n := Fintype.card k) Fintype.card_pos |
| 28 | change _root_.IsIntegral R (algebraMap R R r) |
| 29 | exact isIntegral_algebraMap |
| 30 | |
| 31 | variable (X : Scheme.{u}) (κ : k →+* Γ(X, ⊤)) |
| 32 | |
| 33 | /-- Absolute q-power Frobenius has the same affine-open preimages. -/ |
| 34 | instance qPowerSchemeFrobenius_affine : IsAffineHom (Frobenius.Construction.qPowerSchemeFrobenius k X κ) where |
| 35 | isAffine_preimage _ hU := hU |
| 36 | |
| 37 | /-- Integrality of the actual Frobenius is checked on its actual section maps. -/ |
| 38 | instance qPowerSchemeFrobenius_integral : IsIntegralHom (Frobenius.Construction.qPowerSchemeFrobenius k X κ) where |
| 39 | isIntegral_app U _ := finiteFieldPowerRingHom_isIntegral k (Frobenius.Construction.sectionBaseMap k X κ U) |
| 40 | |
| 41 | variable (A : Over (Spec (CommRingCat.of k))) |
| 42 | |
| 43 | /-- Finite type plus actual integrality proves finiteness of the actual relative q-power map. -/ |
| 44 | theorem finiteFieldSchemeFrobenius_finite [LocallyOfFiniteType A.hom] : |
| 45 | IsFinite (Frobenius.Construction.finiteFieldSchemeFrobenius k A).left := by |
| 46 | have : IsIntegralHom (Frobenius.Construction.finiteFieldSchemeFrobenius k A).left := |
| 47 | qPowerSchemeFrobenius_integral k A.left (Frobenius.Construction.varietyBaseMap k A) |
| 48 | have : LocallyOfFiniteType ((Frobenius.Construction.finiteFieldSchemeFrobenius k A).left ≫ A.hom) := by |
| 49 | rw [(Frobenius.Construction.finiteFieldSchemeFrobenius k A).w] |
| 50 | infer_instance |
| 51 | have : LocallyOfFiniteType (Frobenius.Construction.finiteFieldSchemeFrobenius k A).left := |
| 52 | locallyOfFiniteType_of_comp _ A.hom |
| 53 | exact (IsFinite.iff_isIntegralHom_and_locallyOfFiniteType _).mpr ⟨inferInstance, inferInstance⟩ |
| 54 | |
| 55 | /-- The actual q-power map is surjective because it fixes the underlying points. -/ |
| 56 | theorem finiteFieldSchemeFrobenius_surjective : Surjective (Frobenius.Construction.finiteFieldSchemeFrobenius k A).left := |
| 57 | ⟨fun x => ⟨x, rfl⟩⟩ |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.FrobeniusFinite.Construction |