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.WeaklyEtale |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.FlatMono |
| 4 | |
| 5 | /-! # Weakly Etale -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.WeaklyEtale.WeaklyEtaleFrobenius |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Relative Frobenius is invertible on every weakly étale object of the actual pro-étale site. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | theorem isIso_of_universallyInjective_surjective {X Y : Scheme.{u}} |
| 18 | (f : X ⟶ Y) [WeaklyEtale f] [UniversallyInjective f] |
| 19 | [Surjective f] [QuasiCompact f] [QuasiSeparated f] : IsIso f := by |
| 20 | let : Surjective (pullback.diagonal f) := |
| 21 | (UniversallyInjective.iff_diagonal f).mp inferInstance |
| 22 | let : IsIso (pullback.diagonal f) := Flat.isIso_of_surjective_of_mono _ |
| 23 | let : Mono f := (pullback.isIso_diagonal_iff f).mp inferInstance |
| 24 | exact Flat.isIso_of_surjective_of_mono f |
| 25 | |
| 26 | open OAI.AlgebraicGeometry.Picard.Homomorphisms.Properties.Construction |
| 27 | |
| 28 | theorem relativeFrobenius_weaklyEtale (p : ℕ) (hp : p.Prime) {S : Scheme.{u}} |
| 29 | (hS : (p : Γ(S, ⊤)) = 0) (A : Over S) [WeaklyEtale A.hom] : |
| 30 | WeaklyEtale (OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction.relativeFrobenius p hp hS A).left := by |
| 31 | let : WeaklyEtale ((OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction.relativeFrobenius p hp hS A).left ≫ |
| 32 | (OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction.frobeniusTwist p hp hS A).hom) := by |
| 33 | rw [Over.w] |
| 34 | infer_instance |
| 35 | let : WeaklyEtale (OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction.frobeniusTwist p hp hS A).hom := |
| 36 | inferInstanceAs (WeaklyEtale (pullback.snd A.hom (OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction.absoluteFrobenius p hp S hS))) |
| 37 | exact WeaklyEtale.of_comp _ (OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction.frobeniusTwist p hp hS A).hom |
| 38 | |
| 39 | theorem relativeFrobenius_isIso (p : ℕ) (hp : p.Prime) {S : Scheme.{u}} |
| 40 | (hS : (p : Γ(S, ⊤)) = 0) (A : Over S) [WeaklyEtale A.hom] : |
| 41 | IsIso (OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction.relativeFrobenius p hp hS A).left := by |
| 42 | let := relativeFrobenius_weaklyEtale p hp hS A |
| 43 | exact isIso_of_universallyInjective_surjective _ |
| 44 | |
| 45 | theorem absoluteFrobenius_square (p : ℕ) (hp : p.Prime) {X Y : Scheme.{u}} |
| 46 | (hY : (p : Γ(Y, ⊤)) = 0) (f : X ⟶ Y) [WeaklyEtale f] : |
| 47 | IsPullback (OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction.absoluteFrobenius p hp X (OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction.prime_eq_zero_of_map p hY f)) f |
| 48 | f (OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction.absoluteFrobenius p hp Y hY) := by |
| 49 | let A : Over Y := Over.mk f |
| 50 | let : WeaklyEtale A.hom := inferInstanceAs (WeaklyEtale f) |
| 51 | let hIso : IsIso (OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction.relativeFrobenius p hp hY A).left := relativeFrobenius_isIso p hp hY A |
| 52 | let i := @asIso Scheme _ A.left (OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction.frobeniusTwist p hp hY A).left |
| 53 | (OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction.relativeFrobenius p hp hY A).left hIso |
| 54 | exact IsPullback.of_iso_pullback |
| 55 | ⟨OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction.absoluteFrobenius_naturality p hp _ hY f⟩ i |
| 56 | (OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction.relativeFrobenius_comp_fst p hp hY A) (OAI.AlgebraicGeometry.Picard.Homomorphisms.Frobenius.Construction.relativeFrobenius p hp hY A).w |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.NumberTheory.PadicHodge.GeometricComparison.WeaklyEtale.WeaklyEtaleFrobenius |