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.AbelianScheme.IsogenyQuotient.Geometric.Points |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Correspondences |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.FlatMono |
| 4 | import Mathlib.SetTheory.Cardinal.Finite |
| 5 | |
| 6 | /-! # Singleton Etale Fibers -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A finite étale morphism with one lift of every geometric point is |
| 13 | an isomorphism. Extensionality on the étale target handles arbitrary test |
| 14 | schemes, including nonreduced ones. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | theorem SingletonEtaleFibers.finiteEtale_isIso_of_singleton_geometric_fibers |
| 21 | {X Y : Scheme.{u}} (f : X ⟶ Y) [IsFinite f] [Etale f] |
| 22 | (h : ∀ (k : Type u) [Field k] [IsAlgClosed k] (p : Spec (.of k) ⟶ Y), |
| 23 | Nat.card {a : Spec (.of k) ⟶ X // a ≫ f = p} = 1) : IsIso f := by |
| 24 | have : Etale (Over.mk f).hom := inferInstanceAs (Etale f) |
| 25 | have hfmono : Mono f := by |
| 26 | constructor |
| 27 | intro T a b hab |
| 28 | let Ta : Over Y := Over.mk (a ≫ f) |
| 29 | let a' : Ta ⟶ Over.mk f := Over.homMk a rfl |
| 30 | let b' : Ta ⟶ Over.mk f := Over.homMk b hab.symm |
| 31 | have he : a' = b' := by |
| 32 | apply IsogenyQuotient.Geometric.Points.Construction.etale_ext_of_geometric_points |
| 33 | intro k _ _ p x |
| 34 | have hc := (Nat.card_eq_one_iff_unique.mp (h k p)).1 |
| 35 | let l₁ : {a : Spec (.of k) ⟶ X // a ≫ f = p} := |
| 36 | ⟨(x ≫ a').left, (x ≫ a').w⟩ |
| 37 | let l₂ : {a : Spec (.of k) ⟶ X // a ≫ f = p} := |
| 38 | ⟨(x ≫ b').left, (x ≫ b').w⟩ |
| 39 | apply Over.OverMorphism.ext |
| 40 | exact congrArg Subtype.val (hc.elim l₁ l₂) |
| 41 | exact congrArg (fun g => g.left) he |
| 42 | have hfsurj : Surjective f := by |
| 43 | constructor |
| 44 | intro y |
| 45 | let k := AlgebraicClosure (Y.residueField y) |
| 46 | let i := Spec.map (CommRingCat.ofHom (algebraMap (Y.residueField y) k)) |
| 47 | let p := i ≫ Y.fromSpecResidueField y |
| 48 | obtain ⟨a⟩ := (Nat.card_eq_one_iff_unique.mp (h k p)).2 |
| 49 | refine ⟨a.val (IsLocalRing.closedPoint k), ?_⟩ |
| 50 | change (a.val ≫ f) (IsLocalRing.closedPoint k) = y |
| 51 | rw [a.property] |
| 52 | exact Y.fromSpecResidueField_apply y (i (IsLocalRing.closedPoint k)) |
| 53 | exact Flat.isIso_of_surjective_of_mono f |
| 54 | |
| 55 | variable {B : Scheme.{u}} {X : Over B} (C : Correspondences.EtaleCorrespondence X) |
| 56 | {k : Type u} [Field k] (p : Spec (.of k) ⟶ X.left) |
| 57 | |
| 58 | def Correspondences.EtaleCorrespondence.schemeSourceFiberEquiv : |
| 59 | {a : Spec (.of k) ⟶ C.cover.left // a ≫ C.source.left = p} ≃ |
| 60 | C.Fiber (Over.homMk p rfl : Over.mk (p ≫ X.hom) ⟶ X) where |
| 61 | toFun a := ⟨Over.homMk a.val (by |
| 62 | rw [← C.source.w, ← Category.assoc, a.property] |
| 63 | rfl), by |
| 64 | apply Over.OverMorphism.ext |
| 65 | exact a.property⟩ |
| 66 | invFun a := ⟨a.val.left, congrArg (fun g => g.left) a.property⟩ |
| 67 | left_inv _ := rfl |
| 68 | right_inv a := by |
| 69 | apply Subtype.ext |
| 70 | apply Over.OverMorphism.ext |
| 71 | rfl |
| 72 | |
| 73 | theorem Correspondences.EtaleCorrespondence.source_isIso_of_fiber_card_one |
| 74 | (h : ∀ (k : Type u) [Field k] [IsAlgClosed k] |
| 75 | (b : Spec (.of k) ⟶ B) (x : Over.mk b ⟶ X), Nat.card (C.Fiber x) = 1) : |
| 76 | IsIso C.source := by |
| 77 | have : IsIso C.source.left := SingletonEtaleFibers.finiteEtale_isIso_of_singleton_geometric_fibers C.source.left |
| 78 | (by |
| 79 | intro k _ _ p |
| 80 | rw [Nat.card_congr (C.schemeSourceFiberEquiv p)] |
| 81 | exact h k (p ≫ X.hom) (Over.homMk p rfl)) |
| 82 | have : IsIso ((Over.forget B).map C.source) := inferInstanceAs (IsIso C.source.left) |
| 83 | exact isIso_of_reflects_iso C.source (Over.forget B) |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison |