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.Group |
| 2 | import OAI.AlgebraicGeometry.Picard.Homomorphisms.GroupDescent |
| 3 | import Mathlib.CategoryTheory.Limits.Shapes.Pullback.Pasting |
| 4 | |
| 5 | /-! # Frobenius Base Change -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.FrobeniusBaseChange |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Relative Frobenius commutes with every change of the base scheme. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite _root_.CategoryTheory.Limits |
| 14 | open _root_.CategoryTheory.MonoidalCategory |
| 15 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | namespace Construction |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable (p : ℕ) (hp : p.Prime) {S T : Scheme.{u}} |
| 24 | variable (hS : (p : Γ(S, ⊤)) = 0) (s : T ⟶ S) (A : Over S) |
| 25 | |
| 26 | def frobeniusTwistBaseChangeSchemeIso : |
| 27 | (Frobenius.Construction.frobeniusTwist p hp (Frobenius.Construction.prime_eq_zero_of_map p hS s) ((Over.pullback s).obj A)).left ≅ |
| 28 | ((Over.pullback s).obj (Frobenius.Construction.frobeniusTwist p hp hS A)).left := |
| 29 | pullbackLeftPullbackSndIso A.hom s |
| 30 | (Frobenius.Construction.absoluteFrobenius p hp T (Frobenius.Construction.prime_eq_zero_of_map p hS s)) ≪≫ |
| 31 | pullback.congrHom rfl (Frobenius.Construction.absoluteFrobenius_naturality p hp _ hS s) ≪≫ |
| 32 | (pullbackLeftPullbackSndIso A.hom (Frobenius.Construction.absoluteFrobenius p hp S hS) s).symm |
| 33 | |
| 34 | @[reassoc (attr := simp)] |
| 35 | theorem frobeniusTwistBaseChangeSchemeIso_hom_snd : |
| 36 | (frobeniusTwistBaseChangeSchemeIso p hp hS s A).hom ≫ |
| 37 | pullback.snd (Frobenius.Construction.frobeniusTwist p hp hS A).hom s = |
| 38 | (Frobenius.Construction.frobeniusTwist p hp (Frobenius.Construction.prime_eq_zero_of_map p hS s) ((Over.pullback s).obj A)).hom := by |
| 39 | simp [frobeniusTwistBaseChangeSchemeIso, Frobenius.Construction.frobeniusTwist, pullback.map] |
| 40 | erw [pullback.lift_snd, pullbackLeftPullbackSndIso_hom_snd] |
| 41 | |
| 42 | @[reassoc (attr := simp)] |
| 43 | theorem frobeniusTwistBaseChangeSchemeIso_hom_fst_fst : |
| 44 | (frobeniusTwistBaseChangeSchemeIso p hp hS s A).hom ≫ |
| 45 | pullback.fst (Frobenius.Construction.frobeniusTwist p hp hS A).hom s ≫ |
| 46 | pullback.fst A.hom (Frobenius.Construction.absoluteFrobenius p hp S hS) = |
| 47 | pullback.fst ((Over.pullback s).obj A).hom |
| 48 | (Frobenius.Construction.absoluteFrobenius p hp T (Frobenius.Construction.prime_eq_zero_of_map p hS s)) ≫ |
| 49 | pullback.fst A.hom s := by |
| 50 | simp [frobeniusTwistBaseChangeSchemeIso, Frobenius.Construction.frobeniusTwist, pullback.map] |
| 51 | erw [pullback.lift_fst, pullbackLeftPullbackSndIso_hom_fst] |
| 52 | |
| 53 | def frobeniusTwistBaseChangeIso : |
| 54 | Frobenius.Construction.frobeniusTwist p hp (Frobenius.Construction.prime_eq_zero_of_map p hS s) ((Over.pullback s).obj A) ≅ |
| 55 | (Over.pullback s).obj (Frobenius.Construction.frobeniusTwist p hp hS A) := |
| 56 | Over.isoMk (frobeniusTwistBaseChangeSchemeIso p hp hS s A) |
| 57 | (frobeniusTwistBaseChangeSchemeIso_hom_snd p hp hS s A) |
| 58 | |
| 59 | theorem relativeFrobenius_baseChange_left_fst_fst : |
| 60 | (Frobenius.Construction.relativeFrobenius p hp (Frobenius.Construction.prime_eq_zero_of_map p hS s) ((Over.pullback s).obj A)).left ≫ |
| 61 | (frobeniusTwistBaseChangeSchemeIso p hp hS s A).hom ≫ |
| 62 | pullback.fst (Frobenius.Construction.frobeniusTwist p hp hS A).hom s ≫ |
| 63 | pullback.fst A.hom (Frobenius.Construction.absoluteFrobenius p hp S hS) = |
| 64 | pullback.fst A.hom s ≫ |
| 65 | Frobenius.Construction.absoluteFrobenius p hp A.left (Frobenius.Construction.prime_eq_zero_of_map p hS A.hom) := by |
| 66 | let X := (Over.pullback s).obj A |
| 67 | let FX := (Frobenius.Construction.relativeFrobenius p hp (Frobenius.Construction.prime_eq_zero_of_map p hS s) X).left |
| 68 | let r := pullback.fst X.hom (Frobenius.Construction.absoluteFrobenius p hp T (Frobenius.Construction.prime_eq_zero_of_map p hS s)) |
| 69 | let a := pullback.fst A.hom s |
| 70 | have h₁ := congrArg (fun z => FX ≫ z) |
| 71 | (frobeniusTwistBaseChangeSchemeIso_hom_fst_fst p hp hS s A) |
| 72 | have h₂ := congrArg (fun z => z ≫ a) |
| 73 | (Frobenius.Construction.relativeFrobenius_comp_fst p hp (Frobenius.Construction.prime_eq_zero_of_map p hS s) X) |
| 74 | exact h₁.trans ((Category.assoc FX r a).symm.trans |
| 75 | (h₂.trans (Frobenius.Construction.absoluteFrobenius_naturality p hp _ _ a))) |
| 76 | |
| 77 | theorem relativeFrobenius_baseChange_right_fst_fst : |
| 78 | ((Over.pullback s).map (Frobenius.Construction.relativeFrobenius p hp hS A)).left ≫ |
| 79 | pullback.fst (Frobenius.Construction.frobeniusTwist p hp hS A).hom s ≫ |
| 80 | pullback.fst A.hom (Frobenius.Construction.absoluteFrobenius p hp S hS) = |
| 81 | pullback.fst A.hom s ≫ |
| 82 | Frobenius.Construction.absoluteFrobenius p hp A.left (Frobenius.Construction.prime_eq_zero_of_map p hS A.hom) := by |
| 83 | let F := Frobenius.Construction.relativeFrobenius p hp hS A |
| 84 | have h : ((Over.pullback s).map F).left ≫ |
| 85 | pullback.fst (Frobenius.Construction.frobeniusTwist p hp hS A).hom s = pullback.fst A.hom s ≫ F.left := |
| 86 | pullback.lift_fst _ _ _ |
| 87 | exact (Category.assoc _ _ _).symm.trans |
| 88 | ((congrArg (fun z => z ≫ pullback.fst A.hom (Frobenius.Construction.absoluteFrobenius p hp S hS)) h).trans |
| 89 | ((Category.assoc _ _ _).trans |
| 90 | (congrArg (fun z => pullback.fst A.hom s ≫ z) |
| 91 | (Frobenius.Construction.relativeFrobenius_comp_fst p hp hS A)))) |
| 92 | |
| 93 | theorem relativeFrobenius_baseChange : |
| 94 | Frobenius.Construction.relativeFrobenius p hp (Frobenius.Construction.prime_eq_zero_of_map p hS s) ((Over.pullback s).obj A) ≫ |
| 95 | (frobeniusTwistBaseChangeIso p hp hS s A).hom = |
| 96 | (Over.pullback s).map (Frobenius.Construction.relativeFrobenius p hp hS A) := by |
| 97 | let l := Frobenius.Construction.relativeFrobenius p hp (Frobenius.Construction.prime_eq_zero_of_map p hS s) ((Over.pullback s).obj A) ≫ |
| 98 | (frobeniusTwistBaseChangeIso p hp hS s A).hom |
| 99 | let r := (Over.pullback s).map (Frobenius.Construction.relativeFrobenius p hp hS A) |
| 100 | have hsnd : l.left ≫ pullback.snd (Frobenius.Construction.frobeniusTwist p hp hS A).hom s = |
| 101 | r.left ≫ pullback.snd (Frobenius.Construction.frobeniusTwist p hp hS A).hom s := l.w.trans r.w.symm |
| 102 | apply Over.OverMorphism.ext |
| 103 | apply pullback.hom_ext |
| 104 | · apply pullback.hom_ext |
| 105 | · have h := (relativeFrobenius_baseChange_left_fst_fst p hp hS s A).trans |
| 106 | (relativeFrobenius_baseChange_right_fst_fst p hp hS s A).symm |
| 107 | let a := (Frobenius.Construction.relativeFrobenius p hp (Frobenius.Construction.prime_eq_zero_of_map p hS s) |
| 108 | ((Over.pullback s).obj A)).left |
| 109 | let b := (frobeniusTwistBaseChangeSchemeIso p hp hS s A).hom |
| 110 | let c := pullback.fst (Frobenius.Construction.frobeniusTwist p hp hS A).hom s |
| 111 | let d := pullback.fst A.hom (Frobenius.Construction.absoluteFrobenius p hp S hS) |
| 112 | exact (Category.assoc (a ≫ b) c d).trans |
| 113 | ((Category.assoc a b (c ≫ d)).trans (h.trans (Category.assoc r.left c d).symm)) |
| 114 | · have hl := congrArg (fun z => l.left ≫ z) |
| 115 | (pullback.condition (f := (Frobenius.Construction.frobeniusTwist p hp hS A).hom) (g := s)) |
| 116 | have hr := congrArg (fun z => r.left ≫ z) |
| 117 | (pullback.condition (f := (Frobenius.Construction.frobeniusTwist p hp hS A).hom) (g := s)) |
| 118 | have he := congrArg (fun z => z ≫ s) hsnd |
| 119 | exact (Category.assoc _ _ _).trans (hl.trans |
| 120 | ((Category.assoc _ _ _).symm.trans (he.trans |
| 121 | ((Category.assoc _ _ _).trans (hr.symm.trans (Category.assoc _ _ _).symm))))) |
| 122 | · exact hsnd |
| 123 | |
| 124 | instance frobeniusTwistBaseChangeIso_isMonHom [GrpObj A] [Smooth A.hom] : |
| 125 | IsMonHom (frobeniusTwistBaseChangeIso p hp hS s A).hom := by |
| 126 | let X := (Over.pullback s).obj A |
| 127 | let F := Frobenius.Construction.relativeFrobenius p hp (Frobenius.Construction.prime_eq_zero_of_map p hS s) X |
| 128 | have : Smooth X.hom := inferInstanceAs (Smooth (pullback.snd A.hom s)) |
| 129 | have : Flat F.left := Homomorphisms.Smooth.Construction.relativeFrobenius_smooth_flat p hp _ X |
| 130 | have : EffectiveEpi (F ⊗ₘ F) := GroupDescent.Construction.effectiveEpi_tensor_over_of_fpqc F F |
| 131 | exact GroupDescent.Construction.descended_isMonHom F ((Over.pullback s).map (Frobenius.Construction.relativeFrobenius p hp hS A)) |
| 132 | (frobeniusTwistBaseChangeIso p hp hS s A).hom |
| 133 | (relativeFrobenius_baseChange p hp hS s A) |
| 134 | |
| 135 | end Construction |
| 136 | |
| 137 | end |
| 138 | |
| 139 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.FrobeniusBaseChange |