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.TateComparison.Etale |
| 2 | import Mathlib.AlgebraicGeometry.Sites.Fpqc |
| 3 | |
| 4 | /-! # Graph -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.CentralAction.Graph.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A finite etale correspondence with one geometric branch at every |
| 11 | source point is an actual graph. The inverse source map is descended. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | open OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Etale |
| 16 | |
| 17 | /-- Surjectivity on all algebraically closed points implies scheme |
| 18 | surjectivity, using the algebraic closure of each residue field. -/ |
| 19 | theorem surjective_of_geometric_lifts {B : Scheme} {X Y : Over B} |
| 20 | (f : X ⟶ Y) |
| 21 | (hlift : ∀ (k : Type) [Field k] [IsAlgClosed k] |
| 22 | (b : Spec (.of k) ⟶ B) (y : Over.mk b ⟶ Y), |
| 23 | ∃ x : Over.mk b ⟶ X, x ≫ f = y) : Surjective f.left := by |
| 24 | constructor |
| 25 | intro y |
| 26 | let k := AlgebraicClosure (Y.left.residueField y) |
| 27 | let p : Spec (.of k) ⟶ Spec (Y.left.residueField y) := |
| 28 | Spec.map (CommRingCat.ofHom (algebraMap (Y.left.residueField y) k)) |
| 29 | let a := p ≫ Y.left.fromSpecResidueField y |
| 30 | let b := a ≫ Y.hom |
| 31 | let z : Over.mk b ⟶ Y := Over.homMk a rfl |
| 32 | obtain ⟨x, hx⟩ := hlift k b z |
| 33 | refine ⟨x.left (default : Spec (.of k)), ?_⟩ |
| 34 | have he := congrArg (fun m => m.left (default : Spec (.of k))) hx |
| 35 | change f.left (x.left _) = (Y.left.fromSpecResidueField y) (p _) at he |
| 36 | exact he.trans (Scheme.fromSpecResidueField_apply y _) |
| 37 | |
| 38 | /-- Geometric singleton fibers give a source isomorphism on the whole |
| 39 | reduced moduli scheme, including all of its components. -/ |
| 40 | theorem finite_etale_isIso_of_geometric_bijective {B : Scheme} {X Y : Over B} |
| 41 | [IsReduced Y.left] [IsLocallyNoetherian Y.left] [IsSeparated Y.hom] |
| 42 | (f : X ⟶ Y) [IsFinite f.left] [Etale f.left] |
| 43 | (hbij : ∀ (k : Type) [Field k] [IsAlgClosed k] |
| 44 | (b : Spec (.of k) ⟶ B), |
| 45 | Function.Bijective (fun x : Over.mk b ⟶ X => x ≫ f)) : IsIso f := by |
| 46 | have : Surjective f.left := surjective_of_geometric_lifts f |
| 47 | (fun k _ _ b y => (hbij k b).2 y) |
| 48 | have : IsReduced X.left := TateComparison.Etale.etale_source_reduced f.left |
| 49 | have : IsLocallyNoetherian X.left := LocallyOfFiniteType.isLocallyNoetherian f.left |
| 50 | have : IsSeparated X.hom := by |
| 51 | rw [← f.w] |
| 52 | infer_instance |
| 53 | let R : Over B := Over.mk (pullback.fst f.left f.left ≫ X.hom) |
| 54 | have : IsReduced R.left := TateComparison.Etale.etale_source_reduced (pullback.fst f.left f.left) |
| 55 | let r₁ : R ⟶ X := Over.homMk (pullback.fst f.left f.left) rfl |
| 56 | let r₂ : R ⟶ X := Over.homMk (pullback.snd f.left f.left) (by |
| 57 | change pullback.snd f.left f.left ≫ X.hom = pullback.fst f.left f.left ≫ X.hom |
| 58 | rw [← f.w, ← Category.assoc, ← Category.assoc, pullback.condition]) |
| 59 | have hr : r₁ ≫ f = r₂ ≫ f := Over.OverMorphism.ext pullback.condition |
| 60 | have he : r₁ = r₂ := by |
| 61 | apply TateComparison.GeometricExt.over_hom_ext_geometric |
| 62 | intro k _ _ b z |
| 63 | apply (hbij k b).1 |
| 64 | change (z ≫ r₁) ≫ f = (z ≫ r₂) ≫ f |
| 65 | rw [Category.assoc, Category.assoc, hr] |
| 66 | have hp : pullback.fst f.left f.left = pullback.snd f.left f.left := |
| 67 | congrArg (fun z => z.left) he |
| 68 | have hc : ∀ {W : Scheme} (a b : W ⟶ X.left), a ≫ f.left = b ≫ f.left → a = b := by |
| 69 | intro W a b hab |
| 70 | have hz := congrArg (fun z => pullback.lift a b hab ≫ z) hp |
| 71 | simpa only [pullback.lift_fst, pullback.lift_snd] using hz |
| 72 | let g := EffectiveEpi.desc f.left (𝟙 X.left) (by |
| 73 | intro W a b hab |
| 74 | simp only [Category.comp_id] |
| 75 | exact hc a b hab) |
| 76 | have hfg : f.left ≫ g = 𝟙 X.left := EffectiveEpi.fac _ _ _ |
| 77 | have hgf : g ≫ f.left = 𝟙 Y.left := by |
| 78 | apply (cancel_epi f.left).mp |
| 79 | rw [← Category.assoc, hfg, Category.id_comp, Category.comp_id] |
| 80 | let e : X.left ≅ Y.left := ⟨f.left, g, hfg, hgf⟩ |
| 81 | have : IsIso ((Over.forget B).map f) := e.isIso_hom |
| 82 | exact isIso_of_reflects_iso f (Over.forget B) |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.AbelianScheme.CentralAction.Graph.Construction |