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.EtaleDetection |
| 2 | import Mathlib.AlgebraicGeometry.Sites.Fpqc |
| 3 | import Mathlib.AlgebraicGeometry.AlgClosed.Basic |
| 4 | import Mathlib.FieldTheory.IsAlgClosed.AlgebraicClosure |
| 5 | |
| 6 | /-! # Points -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Geometric.Points.Construction |
| 9 | |
| 10 | /-! |
| 11 | Geometric point lemmas for IsogenyQuotient. A surjective locally finite type morphism |
| 12 | is surjective on algebraically closed field points. Field extensions are |
| 13 | effective covers, so testing all algebraically closed fields also tests |
| 14 | arbitrary residue fields. No family-level polarization assertion is assumed. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | open scoped _root_.CategoryTheory.MonObj |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | /-- Extension of fields is an fpqc cover of their spectra. -/ |
| 23 | theorem field_spec_epi |
| 24 | {K L : Type u} [Field K] [Field L] (i : K →+* L) : |
| 25 | Epi (Spec.map (CommRingCat.ofHom i)) := by |
| 26 | have : Flat (Spec.map (CommRingCat.ofHom i)) := by |
| 27 | rw [Flat.SpecMap_iff] |
| 28 | exact RingHom.Flat.of_isField (Field.toIsField K) i |
| 29 | have : Surjective (Spec.map (CommRingCat.ofHom i)) := |
| 30 | ⟨Function.surjective_to_subsingleton _⟩ |
| 31 | infer_instance |
| 32 | |
| 33 | /-- Surjective morphisms locally of finite type lift every geometric point. -/ |
| 34 | theorem surjective_on_geometric_points |
| 35 | {S : Scheme.{u}} {A B : Over S} (f : A ⟶ B) |
| 36 | [Surjective f.left] [LocallyOfFiniteType f.left] |
| 37 | (K : Type u) [Field K] [IsAlgClosed K] |
| 38 | (s : Spec (CommRingCat.of K) ⟶ S) : |
| 39 | Function.Surjective (fun a : Over.mk s ⟶ A => a ≫ f) := by |
| 40 | intro b |
| 41 | let Z := pullback f.left b.left |
| 42 | let p : Z ⟶ Spec (CommRingCat.of K) := pullback.snd f.left b.left |
| 43 | have hp : Surjective p := inferInstanceAs (Surjective (pullback.snd f.left b.left)) |
| 44 | have hpfin : LocallyOfFiniteType p := |
| 45 | inferInstanceAs (LocallyOfFiniteType (pullback.snd f.left b.left)) |
| 46 | have hnonempty : Nonempty Z := by |
| 47 | obtain ⟨z, _⟩ := hp.1 (default : Spec (CommRingCat.of K)) |
| 48 | exact ⟨z⟩ |
| 49 | have : JacobsonSpace Z := LocallyOfFiniteType.jacobsonSpace p |
| 50 | obtain ⟨z, _, hz⟩ := nonempty_inter_closedPoints |
| 51 | (Set.univ_nonempty : (Set.univ : Set Z).Nonempty) isOpen_univ.isLocallyClosed |
| 52 | change IsClosed ({z} : Set Z) at hz |
| 53 | let a := pointOfClosedPoint p z hz ≫ pullback.fst f.left b.left |
| 54 | have haf : a ≫ f.left = b.left := by |
| 55 | dsimp [a] |
| 56 | rw [Category.assoc, pullback.condition, ← Category.assoc] |
| 57 | change (pointOfClosedPoint p z hz ≫ p) ≫ b.left = b.left |
| 58 | rw [pointOfClosedPoint_comp, Category.id_comp] |
| 59 | have has : a ≫ A.hom = s := by |
| 60 | rw [← f.w, ← Category.assoc, haf, b.w] |
| 61 | rfl |
| 62 | exact ⟨Over.homMk a has, Over.OverMorphism.ext haf⟩ |
| 63 | |
| 64 | /-- Equality tested on algebraically closed field points also holds |
| 65 | on arbitrary field points, by descent along an algebraic closure. -/ |
| 66 | theorem field_points_eq_of_geometric_points |
| 67 | {S : Scheme.{u}} {X Y : Over S} (f g : X ⟶ Y) |
| 68 | (h : ∀ (K : Type u) [Field K] [IsAlgClosed K] |
| 69 | (s : Spec (CommRingCat.of K) ⟶ S) (x : Over.mk s ⟶ X), |
| 70 | x ≫ f = x ≫ g) |
| 71 | (K : Type u) [Field K] |
| 72 | (s : Spec (CommRingCat.of K) ⟶ S) (x : Over.mk s ⟶ X) : |
| 73 | x ≫ f = x ≫ g := by |
| 74 | let i := Spec.map (CommRingCat.ofHom (algebraMap K (AlgebraicClosure K))) |
| 75 | have : Epi i := field_spec_epi (algebraMap K (AlgebraicClosure K)) |
| 76 | let T : Over S := Over.mk (i ≫ s) |
| 77 | let e : T ⟶ Over.mk s := Over.homMk i rfl |
| 78 | have he := h (AlgebraicClosure K) (i ≫ s) (e ≫ x) |
| 79 | apply Over.OverMorphism.ext |
| 80 | apply (cancel_epi i).mp |
| 81 | simpa [e, Over.comp_left, Category.assoc] using |
| 82 | congrArg (fun a => a.left) he |
| 83 | |
| 84 | theorem etale_ext_of_geometric_points |
| 85 | {S : Scheme.{u}} {X Y : Over S} [Etale Y.hom] (f g : X ⟶ Y) |
| 86 | (h : ∀ (K : Type u) [Field K] [IsAlgClosed K] |
| 87 | (s : Spec (CommRingCat.of K) ⟶ S) (x : Over.mk s ⟶ X), |
| 88 | x ≫ f = x ≫ g) : f = g := |
| 89 | EtaleDetection.Construction.etale_ext_of_field_points f g (field_points_eq_of_geometric_points f g h) |
| 90 | |
| 91 | /-- The torsion integrality criterion can be tested over algebraically |
| 92 | closed fields, where the isogeny is surjective on points. -/ |
| 93 | theorem torsion_vanishing_of_geometric_points |
| 94 | {S : Scheme.{u}} {B D H : Over S} [GrpObj B] [GrpObj D] |
| 95 | (n : ℕ) (i : H ⟶ B) (hi : i ^ n = 1) |
| 96 | (f : B ⟶ D) [IsMonHom f] |
| 97 | (h_TorsionQuotient : Etale (TorsionQuotient.SubgroupFunctor.torsionScheme D n).hom) |
| 98 | (h_geo : ∀ (K : Type u) [Field K] [IsAlgClosed K] |
| 99 | (s : Spec (CommRingCat.of K) ⟶ S) (x : Over.mk s ⟶ H), |
| 100 | (x ≫ i) ≫ f = 1) : i ≫ f = 1 := by |
| 101 | apply EtaleDetection.Construction.torsion_vanishing_of_field_points n i hi f h_TorsionQuotient |
| 102 | intro K hK s x |
| 103 | have h := field_points_eq_of_geometric_points (i ≫ f) (1 : H ⟶ D) |
| 104 | (by |
| 105 | intro L hL hclosed t y |
| 106 | simpa only [Category.assoc, MonObj.comp_one] using h_geo L t y) |
| 107 | K s x |
| 108 | simpa only [Category.assoc, MonObj.comp_one] using h |
| 109 | |
| 110 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Geometric.Points.Construction |