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.TorsionQuotient.SubgroupFunctor |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Etale |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.IsIso |
| 4 | |
| 5 | /-! # Etale Detection -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.EtaleDetection.Construction |
| 8 | |
| 9 | /-! |
| 10 | Fieldwise detection for the relative IsogenyQuotient construction. Equality of maps |
| 11 | to an etale scheme can be checked on residue fields without any reducedness |
| 12 | assumption on the source. Applied to the target's finite etale n-torsion, |
| 13 | this gives the integrality test required for relative polarization descent. |
| 14 | The actual subgroup and torsion definitions come from TorsionQuotient's repaired API. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | open scoped _root_.CategoryTheory.MonObj |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | section Detection |
| 23 | |
| 24 | variable {S : Scheme.{u}} {X Y : Over S} |
| 25 | |
| 26 | set_option backward.isDefEq.respectTransparency false in |
| 27 | /-- An unramified target makes the equality locus of two maps open. -/ |
| 28 | theorem equalizer_openImmersion |
| 29 | [FormallyUnramified Y.hom] [LocallyOfFiniteType Y.hom] |
| 30 | (f g : X ⟶ Y) : IsOpenImmersion (equalizer.ι f g).left := by |
| 31 | refine MorphismProperty.of_isPullback |
| 32 | ((Limits.isPullback_equalizer_prod f g).map (Over.forget S)).flip ?_ |
| 33 | change IsOpenImmersion (prod.lift (𝟙 Y) (𝟙 Y)).left |
| 34 | rw [← MorphismProperty.cancel_right_of_respectsIso @IsOpenImmersion _ |
| 35 | (Over.prodLeftIsoPullback Y Y).hom] |
| 36 | convert! (inferInstance : IsOpenImmersion (pullback.diagonal Y.hom)) |
| 37 | ext1 <;> simp [← Over.comp_left] |
| 38 | |
| 39 | /-- Maps to an etale target are determined by their values on residue |
| 40 | fields, including when the source scheme has nilpotents. -/ |
| 41 | theorem etale_ext_of_residue_fields |
| 42 | [Etale Y.hom] (f g : X ⟶ Y) |
| 43 | (h : ∀ x : X.left, |
| 44 | X.left.fromSpecResidueField x ≫ f.left = |
| 45 | X.left.fromSpecResidueField x ≫ g.left) : f = g := by |
| 46 | have hopen : IsOpenImmersion (equalizer.ι f g).left := equalizer_openImmersion f g |
| 47 | have hsurj : Surjective (equalizer.ι f g).left := by |
| 48 | constructor |
| 49 | intro x |
| 50 | let T : Over S := Over.mk (X.left.fromSpecResidueField x ≫ X.hom) |
| 51 | let p : T ⟶ X := Over.homMk (X.left.fromSpecResidueField x) rfl |
| 52 | have hp : p ≫ f = p ≫ g := Over.OverMorphism.ext (h x) |
| 53 | let l := equalizer.lift p hp |
| 54 | let x₀ : Spec (X.left.residueField x) := default |
| 55 | refine ⟨l.left x₀, ?_⟩ |
| 56 | change (l.left ≫ (equalizer.ι f g).left) x₀ = x |
| 57 | rw [← Over.comp_left, equalizer.lift_ι] |
| 58 | exact X.left.fromSpecResidueField_apply x x₀ |
| 59 | have : IsIso (equalizer.ι f g).left := |
| 60 | (isIso_iff_isOpenImmersion_and_surjective _).mpr ⟨hopen, hsurj⟩ |
| 61 | apply Over.OverMorphism.ext |
| 62 | apply (cancel_epi (equalizer.ι f g).left).mp |
| 63 | exact congrArg (fun a => a.left) (equalizer.condition f g) |
| 64 | |
| 65 | /-- A version whose hypotheses are stated on arbitrary field-valued |
| 66 | points, as in the field-level polarization descent input. -/ |
| 67 | theorem etale_ext_of_field_points |
| 68 | [Etale Y.hom] (f g : X ⟶ Y) |
| 69 | (h : ∀ (K : Type u) [Field K] (s : Spec (CommRingCat.of K) ⟶ S) |
| 70 | (x : Over.mk s ⟶ X), x ≫ f = x ≫ g) : f = g := by |
| 71 | apply etale_ext_of_residue_fields f g |
| 72 | intro x |
| 73 | exact congrArg (fun a => a.left) |
| 74 | (h (X.left.residueField x) (X.left.fromSpecResidueField x ≫ X.hom) |
| 75 | (Over.homMk (X.left.fromSpecResidueField x) rfl)) |
| 76 | |
| 77 | end Detection |
| 78 | |
| 79 | variable {S : Scheme.{u}} {B D H : Over S} [GrpObj B] [GrpObj D] |
| 80 | |
| 81 | /-- A homomorphism sends n-torsion to n-torsion. -/ |
| 82 | noncomputable def mapTorsion (f : B ⟶ D) [IsMonHom f] (n : ℕ) : |
| 83 | TorsionQuotient.SubgroupFunctor.torsionScheme B n ⟶ TorsionQuotient.SubgroupFunctor.torsionScheme D n := |
| 84 | TorsionQuotient.SubgroupFunctor.torsionLift n (TorsionQuotient.SubgroupFunctor.torsionι B n ≫ f) (by |
| 85 | rw [← MonObj.pow_comp] |
| 86 | have hi : TorsionQuotient.SubgroupFunctor.torsionι B n ^ n = 1 := |
| 87 | (TorsionQuotient.SubgroupFunctor.factors_through_torsion_iff n (TorsionQuotient.SubgroupFunctor.torsionι B n)).mp |
| 88 | ⟨𝟙 _, Category.id_comp _⟩ |
| 89 | rw [hi, MonObj.one_comp]) |
| 90 | |
| 91 | @[simp] |
| 92 | theorem mapTorsion_ι (f : B ⟶ D) [IsMonHom f] (n : ℕ) : |
| 93 | mapTorsion f n ≫ TorsionQuotient.SubgroupFunctor.torsionι D n = TorsionQuotient.SubgroupFunctor.torsionι B n ≫ f := |
| 94 | TorsionQuotient.SubgroupFunctor.torsionLift_ι _ _ _ |
| 95 | |
| 96 | /-- Fieldwise vanishing on an n-torsion subgroup implies global vanishing |
| 97 | as a scheme morphism. Only the target n-torsion needs to be etale. -/ |
| 98 | theorem torsion_vanishing_of_field_points |
| 99 | (n : ℕ) (i : H ⟶ B) (hi : i ^ n = 1) |
| 100 | (f : B ⟶ D) [IsMonHom f] |
| 101 | (h_TorsionQuotient : Etale (TorsionQuotient.SubgroupFunctor.torsionScheme D n).hom) |
| 102 | (h_fieldwise : ∀ (K : Type u) [Field K] |
| 103 | (s : Spec (CommRingCat.of K) ⟶ S) (x : Over.mk s ⟶ H), |
| 104 | (x ≫ i) ≫ f = 1) : i ≫ f = 1 := by |
| 105 | let a := TorsionQuotient.SubgroupFunctor.torsionLift n (i ≫ f) (by |
| 106 | rw [← MonObj.pow_comp, hi, MonObj.one_comp]) |
| 107 | let b := TorsionQuotient.SubgroupFunctor.torsionLift n (1 : H ⟶ D) (one_pow n) |
| 108 | have : Etale (TorsionQuotient.SubgroupFunctor.torsionScheme D n).hom := h_TorsionQuotient |
| 109 | have : Mono (TorsionQuotient.SubgroupFunctor.torsionι D n) := by |
| 110 | unfold TorsionQuotient.SubgroupFunctor.torsionι |
| 111 | exact equalizer.ι_mono (f := (𝟙 D : D ⟶ D) ^ n) (g := (1 : D ⟶ D)) |
| 112 | have hab : a = b := by |
| 113 | apply etale_ext_of_field_points |
| 114 | intro K hK s x |
| 115 | apply (cancel_mono (TorsionQuotient.SubgroupFunctor.torsionι D n)).mp |
| 116 | simp only [Category.assoc, a, b, TorsionQuotient.SubgroupFunctor.torsionLift_ι, MonObj.comp_one] |
| 117 | simpa only [Category.assoc] using h_fieldwise K s x |
| 118 | have h := congrArg (fun t => t ≫ TorsionQuotient.SubgroupFunctor.torsionι D n) hab |
| 119 | simpa only [a, b, TorsionQuotient.SubgroupFunctor.torsionLift_ι] using h |
| 120 | |
| 121 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.EtaleDetection.Construction |