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.Picard.Homomorphisms.Properties |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Etale |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.FlatMono |
| 4 | |
| 5 | /-! # Etale -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.Etale.Construction |
| 8 | |
| 9 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite _root_.CategoryTheory.Limits |
| 10 | |
| 11 | universe u |
| 12 | |
| 13 | variable (p : ℕ) (hp : p.Prime) |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency.types false in |
| 16 | instance relativeFrobenius_etale {S : Scheme.{u}} |
| 17 | (hS : (p : Γ(S, ⊤)) = 0) (A : Over S) [Etale A.hom] : |
| 18 | Etale (Frobenius.Construction.relativeFrobenius p hp hS A).left := by |
| 19 | have hcomp : Etale ((Frobenius.Construction.relativeFrobenius p hp hS A).left ≫ |
| 20 | (Frobenius.Construction.frobeniusTwist p hp hS A).hom) := by |
| 21 | rw [Over.w] |
| 22 | infer_instance |
| 23 | have : Etale (Frobenius.Construction.frobeniusTwist p hp hS A).hom := |
| 24 | inferInstanceAs (Etale (pullback.snd A.hom (Frobenius.Construction.absoluteFrobenius p hp S hS))) |
| 25 | exact Etale.of_comp _ (Frobenius.Construction.frobeniusTwist p hp hS A).hom |
| 26 | |
| 27 | /-- Étale, universally injective, surjective and quasi-compact implies an |
| 28 | isomorphism. The proof first makes the diagonal an isomorphism. -/ |
| 29 | theorem isIso_of_etale_universallyInjective_surjective |
| 30 | {X Y : Scheme.{u}} (f : X ⟶ Y) [Etale f] [UniversallyInjective f] |
| 31 | [Surjective f] [QuasiCompact f] : IsIso f := by |
| 32 | have hdiagSurj : Surjective (pullback.diagonal f) := |
| 33 | (UniversallyInjective.iff_diagonal f).mp inferInstance |
| 34 | have hdiagIso : IsIso (pullback.diagonal f) := |
| 35 | (isIso_iff_isOpenImmersion_and_surjective _).mpr ⟨inferInstance, hdiagSurj⟩ |
| 36 | have : Mono f := (pullback.isIso_diagonal_iff f).mp hdiagIso |
| 37 | exact Flat.isIso_of_surjective_of_mono f |
| 38 | |
| 39 | instance relativeFrobenius_isIso_of_etale {S : Scheme.{u}} |
| 40 | (hS : (p : Γ(S, ⊤)) = 0) (A : Over S) [Etale A.hom] : |
| 41 | IsIso (Frobenius.Construction.relativeFrobenius p hp hS A).left := |
| 42 | isIso_of_etale_universallyInjective_surjective _ |
| 43 | |
| 44 | set_option backward.isDefEq.respectTransparency.types false in |
| 45 | /-- Absolute Frobenius commutes with étale base change. -/ |
| 46 | theorem absoluteFrobenius_square_isPullback_of_etale {X Y : Scheme.{u}} |
| 47 | (hY : (p : Γ(Y, ⊤)) = 0) (f : X ⟶ Y) [Etale f] : |
| 48 | IsPullback (Frobenius.Construction.absoluteFrobenius p hp X (Frobenius.Construction.prime_eq_zero_of_map p hY f)) f |
| 49 | f (Frobenius.Construction.absoluteFrobenius p hp Y hY) := by |
| 50 | let A : Over Y := Over.mk f |
| 51 | have : Etale A.hom := ‹Etale f› |
| 52 | have hIso : IsIso (Frobenius.Construction.relativeFrobenius p hp hY A).left := |
| 53 | relativeFrobenius_isIso_of_etale p hp hY A |
| 54 | let i := @asIso Scheme _ A.left (Frobenius.Construction.frobeniusTwist p hp hY A).left |
| 55 | (Frobenius.Construction.relativeFrobenius p hp hY A).left hIso |
| 56 | refine IsPullback.of_iso_pullback |
| 57 | ⟨Frobenius.Construction.absoluteFrobenius_naturality p hp _ hY f⟩ |
| 58 | i ?_ ?_ |
| 59 | · exact Frobenius.Construction.relativeFrobenius_comp_fst p hp hY A |
| 60 | · exact (Frobenius.Construction.relativeFrobenius p hp hY A).w |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.Etale.Construction |