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.AbelianModuli.ReferenceFamily.Frame.Factorization |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.QuasiProjectiveAmpleness |
| 3 | import OAI.AlgebraicGeometry.AbelianScheme.TorsionQuotient.FiniteEtaleLift |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Ample.QuasiProjectivePresentation |
| 5 | |
| 6 | /-! # Compatible Level -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.CompatibleLevel.LevelCover |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A compatible full-level parameter scheme over a fixed abelian |
| 13 | scheme. A natural restriction of levels gives a morphism between the |
| 14 | actual full-frame schemes. Its equalizer with a prescribed lower level |
| 15 | is finite etale and classifies compatible levels on every test scheme. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | |
| 19 | variable {S : Scheme.{0}} {g L N : ℕ} (A : HilbertConstruction.Abelian.Schemes.AbelianScheme g S) |
| 20 | {K : Type} [Field K] [CharZero K] (p : S ⟶ Spec (.of K)) |
| 21 | [NeZero L] [NeZero N] |
| 22 | |
| 23 | variable (r : Frame.FrameRestriction.LevelCover.fullLevelFamilyFunctor A (N := N) ⟶ Frame.FrameRestriction.LevelCover.fullLevelFamilyFunctor A (N := L)) |
| 24 | (α : A.FullLevel L) |
| 25 | |
| 26 | omit p in |
| 27 | theorem fullLevelTransformation_restrict {T U : Over S} (f : T ⟶ U) |
| 28 | (β : (A.pullback U.hom).FullLevel N) : |
| 29 | r.app (.op T) (β.restrict (A := A) f) = |
| 30 | HilbertConstruction.Abelian.Schemes.AbelianScheme.FullLevel.restrict (A := A) (r.app (.op U) β) f := by |
| 31 | exact NatTrans.naturality_apply (FD := TypeCat.Fun) (CD := fun X : Type 1 => X) r f.op β |
| 32 | |
| 33 | def fullFrameMapOfTransformation : Frame.Locus.LevelCover.fullFrameScheme A p (N := N) ⟶ Frame.Locus.LevelCover.fullFrameScheme A p (N := L) := |
| 34 | (Frame.Factorization.LevelCover.fullFramePointsEquiv A p (Frame.Locus.LevelCover.fullFrameScheme A p (N := N))).symm |
| 35 | (r.app (.op (Frame.Locus.LevelCover.fullFrameScheme A p (N := N))) (Finite.Monomorphisms.LevelCover.canonicalFullFrameLevel A p)) |
| 36 | |
| 37 | def fixedFullFrameMap (T : Over S) : T ⟶ Frame.Locus.LevelCover.fullFrameScheme A p (N := L) := |
| 38 | (Frame.Factorization.LevelCover.fullFramePointsEquiv A p T).symm (α.pullback T.hom) |
| 39 | |
| 40 | theorem fullFrameMapOfTransformation_points {T : Over S} |
| 41 | (f : T ⟶ Frame.Locus.LevelCover.fullFrameScheme A p (N := N)) : |
| 42 | Frame.Factorization.LevelCover.fullFramePointsEquiv A p T (f ≫ fullFrameMapOfTransformation A p r) = |
| 43 | r.app (.op T) (Frame.Factorization.LevelCover.fullFramePointsEquiv A p T f) := by |
| 44 | have h := (Frame.Factorization.LevelCover.fullFramePointsEquiv A p (Frame.Locus.LevelCover.fullFrameScheme A p (N := N))).apply_symm_apply |
| 45 | (r.app (.op (Frame.Locus.LevelCover.fullFrameScheme A p (N := N))) (Finite.Monomorphisms.LevelCover.canonicalFullFrameLevel A p)) |
| 46 | have hf : Frame.Factorization.LevelCover.fullFramePointsEquiv A p T f = (Finite.Monomorphisms.LevelCover.canonicalFullFrameLevel A p).restrict f := rfl |
| 47 | exact (Frame.Factorization.LevelCover.fullFramePointsEquiv_natural A p f (fullFrameMapOfTransformation A p r)).trans |
| 48 | ((congrArg (fun β : (A.pullback (Frame.Locus.LevelCover.fullFrameScheme A p (N := N)).hom).FullLevel L => |
| 49 | β.restrict f) h).trans |
| 50 | ((fullLevelTransformation_restrict A r f (Finite.Monomorphisms.LevelCover.canonicalFullFrameLevel A p)).symm.trans |
| 51 | (congrArg (r.app (.op T)) hf.symm))) |
| 52 | |
| 53 | theorem fixedFullFrameMap_points {T U : Over S} (f : T ⟶ U) : |
| 54 | Frame.Factorization.LevelCover.fullFramePointsEquiv A p T (f ≫ fixedFullFrameMap A p α U) = α.pullback T.hom := by |
| 55 | rw [Frame.Factorization.LevelCover.fullFramePointsEquiv_natural] |
| 56 | change ((Frame.Factorization.LevelCover.fullFramePointsEquiv A p U) |
| 57 | ((Frame.Factorization.LevelCover.fullFramePointsEquiv A p U).symm (α.pullback U.hom))).restrict f = _ |
| 58 | rw [Equiv.apply_symm_apply, α.restrict_pullback] |
| 59 | |
| 60 | theorem fullFrame_compatible_iff {T : Over S} (f : T ⟶ Frame.Locus.LevelCover.fullFrameScheme A p (N := N)) : |
| 61 | f ≫ fullFrameMapOfTransformation A p r = |
| 62 | f ≫ fixedFullFrameMap A p α (Frame.Locus.LevelCover.fullFrameScheme A p (N := N)) ↔ |
| 63 | r.app (.op T) (Frame.Factorization.LevelCover.fullFramePointsEquiv A p T f) = α.pullback T.hom := by |
| 64 | constructor |
| 65 | · intro h |
| 66 | exact (fullFrameMapOfTransformation_points A p r f).symm.trans |
| 67 | ((congrArg (Frame.Factorization.LevelCover.fullFramePointsEquiv A p T) h).trans (fixedFullFrameMap_points A p α f)) |
| 68 | · intro h |
| 69 | apply (Frame.Factorization.LevelCover.fullFramePointsEquiv A p T).injective |
| 70 | exact (fullFrameMapOfTransformation_points A p r f).trans |
| 71 | (h.trans (fixedFullFrameMap_points A p α f).symm) |
| 72 | |
| 73 | def compatibleFullFrameScheme : Over S := |
| 74 | equalizer (fullFrameMapOfTransformation A p r) |
| 75 | (fixedFullFrameMap A p α (Frame.Locus.LevelCover.fullFrameScheme A p (N := N))) |
| 76 | |
| 77 | def compatibleFullFrameInclusion : compatibleFullFrameScheme A p r α ⟶ Frame.Locus.LevelCover.fullFrameScheme A p (N := N) := |
| 78 | equalizer.ι (fullFrameMapOfTransformation A p r) |
| 79 | (fixedFullFrameMap A p α (Frame.Locus.LevelCover.fullFrameScheme A p (N := N))) |
| 80 | |
| 81 | theorem compatibleFullFrame_finite_etale : |
| 82 | IsFinite (compatibleFullFrameScheme A p r α).hom ∧ |
| 83 | Etale (compatibleFullFrameScheme A p r α).hom := by |
| 84 | have : IsFinite (Frame.Locus.LevelCover.fullFrameScheme A p (N := N)).hom := (Frame.Locus.LevelCover.fullFrameScheme_finite_etale A p).1 |
| 85 | have : Etale (Frame.Locus.LevelCover.fullFrameScheme A p (N := N)).hom := (Frame.Locus.LevelCover.fullFrameScheme_finite_etale A p).2 |
| 86 | have : IsFinite (Frame.Locus.LevelCover.fullFrameScheme A p (N := L)).hom := (Frame.Locus.LevelCover.fullFrameScheme_finite_etale A p).1 |
| 87 | have : Etale (Frame.Locus.LevelCover.fullFrameScheme A p (N := L)).hom := (Frame.Locus.LevelCover.fullFrameScheme_finite_etale A p).2 |
| 88 | exact AbelianScheme.TorsionQuotient.FiniteEtaleLift.FiniteEtaleLimits.equalizer_finite_etale _ _ |
| 89 | |
| 90 | instance compatibleFullFrame_isFinite : IsFinite (compatibleFullFrameScheme A p r α).hom := |
| 91 | (compatibleFullFrame_finite_etale A p r α).1 |
| 92 | |
| 93 | instance compatibleFullFrame_etale : Etale (compatibleFullFrameScheme A p r α).hom := |
| 94 | (compatibleFullFrame_finite_etale A p r α).2 |
| 95 | |
| 96 | theorem compatibleFullFrameInclusion_open_closed : |
| 97 | IsOpenImmersion (compatibleFullFrameInclusion A p r α).left ∧ |
| 98 | IsClosedImmersion (compatibleFullFrameInclusion A p r α).left := by |
| 99 | have : IsFinite (Frame.Locus.LevelCover.fullFrameScheme A p (N := N)).hom := (Frame.Locus.LevelCover.fullFrameScheme_finite_etale A p).1 |
| 100 | have : Etale (Frame.Locus.LevelCover.fullFrameScheme A p (N := N)).hom := (Frame.Locus.LevelCover.fullFrameScheme_finite_etale A p).2 |
| 101 | have : IsFinite (Frame.Locus.LevelCover.fullFrameScheme A p (N := L)).hom := (Frame.Locus.LevelCover.fullFrameScheme_finite_etale A p).1 |
| 102 | have : Etale (Frame.Locus.LevelCover.fullFrameScheme A p (N := L)).hom := (Frame.Locus.LevelCover.fullFrameScheme_finite_etale A p).2 |
| 103 | exact AbelianScheme.TorsionQuotient.FiniteEtaleLift.FiniteEtaleLimits.equalizer_open_closed _ _ |
| 104 | |
| 105 | def compatibleFullFramePointsEquiv (T : Over S) : |
| 106 | (T ⟶ compatibleFullFrameScheme A p r α) ≃ |
| 107 | {β : (A.pullback T.hom).FullLevel N | r.app (.op T) β = α.pullback T.hom} where |
| 108 | toFun f := ⟨Frame.Factorization.LevelCover.fullFramePointsEquiv A p T (f ≫ compatibleFullFrameInclusion A p r α), |
| 109 | (fullFrame_compatible_iff A p r α _).mp (by |
| 110 | exact (Category.assoc f (compatibleFullFrameInclusion A p r α) |
| 111 | (fullFrameMapOfTransformation A p r)).trans |
| 112 | ((congrArg (fun q => f ≫ q) (equalizer.condition (fullFrameMapOfTransformation A p r) |
| 113 | (fixedFullFrameMap A p α (Frame.Locus.LevelCover.fullFrameScheme A p (N := N))))).trans |
| 114 | (Category.assoc f (compatibleFullFrameInclusion A p r α) |
| 115 | (fixedFullFrameMap A p α (Frame.Locus.LevelCover.fullFrameScheme A p (N := N)))).symm))⟩ |
| 116 | invFun β := equalizer.lift ((Frame.Factorization.LevelCover.fullFramePointsEquiv A p T).symm β.val) |
| 117 | ((fullFrame_compatible_iff A p r α _).mpr (by |
| 118 | rw [Equiv.apply_symm_apply] |
| 119 | exact β.property)) |
| 120 | left_inv f := by |
| 121 | apply equalizer.hom_ext |
| 122 | rw [equalizer.lift_ι, Equiv.symm_apply_apply] |
| 123 | rfl |
| 124 | right_inv β := by |
| 125 | apply Subtype.ext |
| 126 | change Frame.Factorization.LevelCover.fullFramePointsEquiv A p T |
| 127 | (equalizer.lift _ _ ≫ compatibleFullFrameInclusion A p r α) = β.val |
| 128 | rw [compatibleFullFrameInclusion, equalizer.lift_ι, Equiv.apply_symm_apply] |
| 129 | |
| 130 | theorem compatibleFullFramePointsEquiv_natural {T U : Over S} (j : T ⟶ U) |
| 131 | (f : U ⟶ compatibleFullFrameScheme A p r α) : |
| 132 | (compatibleFullFramePointsEquiv A p r α T (j ≫ f)).val = |
| 133 | (compatibleFullFramePointsEquiv A p r α U f).val.restrict j := by |
| 134 | change Frame.Factorization.LevelCover.fullFramePointsEquiv A p T ((j ≫ f) ≫ compatibleFullFrameInclusion A p r α) = _ |
| 135 | rw [Category.assoc] |
| 136 | exact Frame.Factorization.LevelCover.fullFramePointsEquiv_natural A p j (f ≫ compatibleFullFrameInclusion A p r α) |
| 137 | |
| 138 | def compatibleFullFrameLevel : (A.pullback (compatibleFullFrameScheme A p r α).hom).FullLevel N := |
| 139 | Frame.Factorization.LevelCover.fullFramePointsEquiv A p (compatibleFullFrameScheme A p r α) (compatibleFullFrameInclusion A p r α) |
| 140 | |
| 141 | theorem compatibleFullFrameLevel_compatible : |
| 142 | r.app (.op (compatibleFullFrameScheme A p r α)) (compatibleFullFrameLevel A p r α) = |
| 143 | α.pullback (compatibleFullFrameScheme A p r α).hom := |
| 144 | (fullFrame_compatible_iff A p r α (compatibleFullFrameInclusion A p r α)).mp |
| 145 | (equalizer.condition _ _) |
| 146 | |
| 147 | theorem compatibleFullFrameLevel_restrict {T : Over S} (f : T ⟶ compatibleFullFrameScheme A p r α) : |
| 148 | (compatibleFullFrameLevel A p r α).restrict f = (compatibleFullFramePointsEquiv A p r α T f).val := |
| 149 | (Frame.Factorization.LevelCover.fullFramePointsEquiv_natural A p f (compatibleFullFrameInclusion A p r α)).symm |
| 150 | |
| 151 | theorem compatibleFullFrame_isAmple (H : HilbertConstruction.Line.Bundles.LineBundle S) (hH : H.IsAmple) : |
| 152 | (H.pullback (compatibleFullFrameScheme A p r α).hom).IsAmple := |
| 153 | hH.pullback_of_isAffineHom (compatibleFullFrameScheme A p r α).hom |
| 154 | |
| 155 | theorem compatibleFullFrame_quasiProjective (P : HilbertConstruction.Projective.ProjectivePresentations.QuasiProjectivePresentation (Over.mk p)) : |
| 156 | Nonempty (HilbertConstruction.Projective.ProjectivePresentations.QuasiProjectivePresentation ((Over.map p).obj (compatibleFullFrameScheme A p r α))) := by |
| 157 | have : IsSeparated p := P.separated |
| 158 | have : S.IsSeparated := ⟨by rw [← terminal.comp_from p]; infer_instance⟩ |
| 159 | have : (compatibleFullFrameScheme A p r α).left.IsSeparated := ⟨by |
| 160 | rw [← terminal.comp_from (compatibleFullFrameScheme A p r α).hom] |
| 161 | infer_instance⟩ |
| 162 | have : LocallyOfFiniteType p := P.locallyFiniteType |
| 163 | exact (compatibleFullFrame_isAmple A p r α (QuasiProjectiveAmpleness.quasiProjectiveAmpleLineBundle P) |
| 164 | (QuasiProjectiveAmpleness.quasiProjectiveAmpleLineBundle_isAmple P)).exists_quasiProjectivePresentation |
| 165 | ((compatibleFullFrameScheme A p r α).hom ≫ p) |
| 166 | |
| 167 | end |
| 168 | |
| 169 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.CompatibleLevel.LevelCover |