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.Frobenius |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Integral |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.UniversallyInjective |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Finite |
| 5 | import Mathlib.AlgebraicGeometry.Morphisms.FinitePresentation |
| 6 | |
| 7 | /-! # Properties -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.Properties.Construction |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite _root_.CategoryTheory.Limits |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable (p : ℕ) (hp : p.Prime) |
| 16 | |
| 17 | theorem powerRingHom_integral (R : Type u) [CommRing R] |
| 18 | (hR : (p : R) = 0) : (Frobenius.Construction.powerRingHom p hp R hR).IsIntegral := by |
| 19 | intro x |
| 20 | refine ⟨Polynomial.X ^ p - Polynomial.C x, Polynomial.monic_X_pow_sub_C x hp.ne_zero, ?_⟩ |
| 21 | simp [Polynomial.eval₂_sub, Polynomial.eval₂_pow, Frobenius.Construction.powerRingHom] |
| 22 | |
| 23 | instance absoluteFrobenius_affine (X : Scheme.{u}) |
| 24 | (hX : (p : Γ(X, ⊤)) = 0) : IsAffineHom (Frobenius.Construction.absoluteFrobenius p hp X hX) where |
| 25 | isAffine_preimage _ hU := hU |
| 26 | |
| 27 | instance absoluteFrobenius_integral (X : Scheme.{u}) |
| 28 | (hX : (p : Γ(X, ⊤)) = 0) : IsIntegralHom (Frobenius.Construction.absoluteFrobenius p hp X hX) where |
| 29 | isIntegral_app U _ := powerRingHom_integral p hp Γ(X, U) |
| 30 | (Frobenius.Construction.section_prime_eq_zero p X hX U) |
| 31 | |
| 32 | instance absoluteFrobenius_surjective (X : Scheme.{u}) |
| 33 | (hX : (p : Γ(X, ⊤)) = 0) : Surjective (Frobenius.Construction.absoluteFrobenius p hp X hX) where |
| 34 | surj x := ⟨x, rfl⟩ |
| 35 | |
| 36 | theorem ringedFrobenius_stalk_injective (X : Scheme.{u}) [IsReduced X] |
| 37 | (hX : (p : Γ(X, ⊤)) = 0) (x : X) : |
| 38 | Function.Injective ((Frobenius.Construction.ringedFrobenius p hp X hX).stalkMap x) := by |
| 39 | intro a b hab |
| 40 | apply sub_eq_zero.mp |
| 41 | apply _root_.IsReduced.eq_zero |
| 42 | refine ⟨p, ?_⟩ |
| 43 | erw [← Frobenius.Construction.ringedFrobenius_stalk_apply p hp X hX x (a - b)] |
| 44 | exact ((Frobenius.Construction.ringedFrobenius p hp X hX).stalkMap x).hom.map_sub a b |>.trans |
| 45 | (sub_eq_zero.mpr hab) |
| 46 | |
| 47 | instance absoluteFrobenius_epi (X : Scheme.{u}) [IsReduced X] |
| 48 | (hX : (p : Γ(X, ⊤)) = 0) : Epi (Frobenius.Construction.absoluteFrobenius p hp X hX) := by |
| 49 | apply (Scheme.forgetToLocallyRingedSpace ⋙ |
| 50 | LocallyRingedSpace.forgetToSheafedSpace).epi_of_epi_map |
| 51 | apply SheafedSpace.epi_of_base_surjective_of_stalk_mono |
| 52 | · intro x |
| 53 | exact ⟨x, rfl⟩ |
| 54 | · intro x |
| 55 | exact ConcreteCategory.mono_of_injective _ |
| 56 | (ringedFrobenius_stalk_injective p hp X hX x) |
| 57 | |
| 58 | instance absoluteFrobenius_universallyInjective (X : Scheme.{u}) |
| 59 | (hX : (p : Γ(X, ⊤)) = 0) : |
| 60 | UniversallyInjective (Frobenius.Construction.absoluteFrobenius p hp X hX) := by |
| 61 | apply ((tfae_universallyInjective (Frobenius.Construction.absoluteFrobenius p hp X hX)).out 2 1).mp |
| 62 | intro K _ g h he |
| 63 | let hK := Frobenius.Construction.prime_eq_zero_of_map p hX g |
| 64 | apply (cancel_epi (Frobenius.Construction.absoluteFrobenius p hp (Spec (CommRingCat.of K)) hK)).mp |
| 65 | rw [Frobenius.Construction.absoluteFrobenius_naturality p hp hK hX g, |
| 66 | Frobenius.Construction.absoluteFrobenius_naturality p hp hK hX h] |
| 67 | exact he |
| 68 | |
| 69 | set_option backward.isDefEq.respectTransparency.types false in |
| 70 | instance relativeFrobenius_integral {S : Scheme.{u}} |
| 71 | (hS : (p : Γ(S, ⊤)) = 0) (A : Over S) : |
| 72 | IsIntegralHom (Frobenius.Construction.relativeFrobenius p hp hS A).left := by |
| 73 | have hcomp : IsIntegralHom ((Frobenius.Construction.relativeFrobenius p hp hS A).left ≫ |
| 74 | pullback.fst A.hom (Frobenius.Construction.absoluteFrobenius p hp S hS)) := by |
| 75 | rw [Frobenius.Construction.relativeFrobenius_comp_fst] |
| 76 | infer_instance |
| 77 | have hsep : IsSeparated (pullback.fst A.hom (Frobenius.Construction.absoluteFrobenius p hp S hS)) := |
| 78 | IsSeparated.of_isAffineHom _ |
| 79 | exact @IsIntegralHom.of_comp A.left |
| 80 | (pullback A.hom (Frobenius.Construction.absoluteFrobenius p hp S hS)) A.left |
| 81 | (Frobenius.Construction.relativeFrobenius p hp hS A).left |
| 82 | (pullback.fst A.hom (Frobenius.Construction.absoluteFrobenius p hp S hS)) hcomp hsep |
| 83 | |
| 84 | instance relativeFrobenius_finite {S : Scheme.{u}} |
| 85 | (hS : (p : Γ(S, ⊤)) = 0) (A : Over S) [LocallyOfFiniteType A.hom] : |
| 86 | IsFinite (Frobenius.Construction.relativeFrobenius p hp hS A).left := by |
| 87 | have hcomp : LocallyOfFiniteType ((Frobenius.Construction.relativeFrobenius p hp hS A).left ≫ |
| 88 | (Frobenius.Construction.frobeniusTwist p hp hS A).hom) := by |
| 89 | rw [Over.w] |
| 90 | infer_instance |
| 91 | have : LocallyOfFiniteType (Frobenius.Construction.relativeFrobenius p hp hS A).left := |
| 92 | locallyOfFiniteType_of_comp _ (Frobenius.Construction.frobeniusTwist p hp hS A).hom |
| 93 | exact (IsFinite.iff_isIntegralHom_and_locallyOfFiniteType _).mpr ⟨inferInstance, inferInstance⟩ |
| 94 | |
| 95 | set_option backward.isDefEq.respectTransparency.types false in |
| 96 | instance relativeFrobenius_surjective {S : Scheme.{u}} |
| 97 | (hS : (p : Γ(S, ⊤)) = 0) (A : Over S) : |
| 98 | Surjective (Frobenius.Construction.relativeFrobenius p hp hS A).left := by |
| 99 | constructor |
| 100 | intro y |
| 101 | let π := pullback.fst A.hom (Frobenius.Construction.absoluteFrobenius p hp S hS) |
| 102 | have : UniversallyInjective π := |
| 103 | MorphismProperty.pullback_fst (P := @UniversallyInjective) |
| 104 | A.hom (Frobenius.Construction.absoluteFrobenius p hp S hS) inferInstance |
| 105 | refine ⟨π y, π.injective ?_⟩ |
| 106 | have h := congrArg (fun f : A.left ⟶ A.left => f (π y)) |
| 107 | (Frobenius.Construction.relativeFrobenius_comp_fst p hp hS A) |
| 108 | exact h |
| 109 | |
| 110 | set_option backward.isDefEq.respectTransparency.types false in |
| 111 | instance relativeFrobenius_universallyInjective {S : Scheme.{u}} |
| 112 | (hS : (p : Γ(S, ⊤)) = 0) (A : Over S) : |
| 113 | UniversallyInjective (Frobenius.Construction.relativeFrobenius p hp hS A).left := by |
| 114 | apply ((tfae_universallyInjective (Frobenius.Construction.relativeFrobenius p hp hS A).left).out 2 1).mp |
| 115 | intro K _ g h he |
| 116 | have hinj : ∀ (L : Type u) [Field L], Function.Injective |
| 117 | (fun g : Spec (CommRingCat.of L) ⟶ A.left => |
| 118 | g ≫ Frobenius.Construction.absoluteFrobenius p hp A.left (Frobenius.Construction.prime_eq_zero_of_map p hS A.hom)) := |
| 119 | ((tfae_universallyInjective |
| 120 | (Frobenius.Construction.absoluteFrobenius p hp A.left (Frobenius.Construction.prime_eq_zero_of_map p hS A.hom))).out 1 2).mp |
| 121 | (absoluteFrobenius_universallyInjective p hp A.left _) |
| 122 | apply hinj K |
| 123 | let π := pullback.fst A.hom (Frobenius.Construction.absoluteFrobenius p hp S hS) |
| 124 | let F := (Frobenius.Construction.relativeFrobenius p hp hS A).left |
| 125 | have hF := Frobenius.Construction.relativeFrobenius_comp_fst p hp hS A |
| 126 | calc |
| 127 | g ≫ Frobenius.Construction.absoluteFrobenius p hp A.left _ = g ≫ (F ≫ π) := |
| 128 | congrArg (fun t => g ≫ t) hF.symm |
| 129 | _ = (g ≫ F) ≫ π := (Category.assoc g F π).symm |
| 130 | _ = (h ≫ F) ≫ π := congrArg (fun t => t ≫ π) he |
| 131 | _ = h ≫ (F ≫ π) := Category.assoc h F π |
| 132 | _ = h ≫ Frobenius.Construction.absoluteFrobenius p hp A.left _ := |
| 133 | congrArg (fun t => h ≫ t) hF |
| 134 | |
| 135 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.Properties.Construction |