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.ThetaConstruction.RelativeStalkParameters |
| 2 | import OAI.AlgebraicGeometry.Picard.ThetaConstruction.RelativeStandardFlatness |
| 3 | import OAI.RepresentationTheory.Theta.Geometric.StalkChartProjection |
| 4 | import OAI.RepresentationTheory.Theta.Geometric.FlatSourceLocalizations |
| 5 | |
| 6 | /-! # Relative Stalk Flatness -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Picard.ThetaConstruction.RelativeStalkFlatness.Geometric.RelativeRigidifiedCharts |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The actual Picard comparison projection is flat after localization |
| 13 | at a comparison point when its fiber H1 fits the smooth ambient dimension. -/ |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 16 | |
| 17 | theorem stalkChart_baseChange_projection {X Y Z : Scheme} |
| 18 | (f : Z ⟶ X) (p : X ⟶ Y) (b : X) |
| 19 | {U : Y.Opens} (hU : IsAffineOpen U) {V : X.Opens} (hV : IsAffineOpen V) |
| 20 | (hb : b ∈ V) (hv : V ≤ p ⁻¹ᵁ U) : |
| 21 | (pullback.snd f (X.fromSpecStalk b) ≫ Spec.map (p.appLE U V hv ≫ X.presheaf.germ V b hb)) ≫ |
| 22 | hU.fromSpec = pullback.fst f (X.fromSpecStalk b) ≫ f ≫ p := by |
| 23 | let j := X.fromSpecStalk b |
| 24 | let r := Spec.map (p.appLE U V hv ≫ X.presheaf.germ V b hb) |
| 25 | have hr : r ≫ hU.fromSpec = j ≫ p := RepresentationTheory.Theta.Geometric.StalkChartProjection.stalkChart_projection p b hU hV hb hv |
| 26 | calc |
| 27 | (pullback.snd f j ≫ r) ≫ hU.fromSpec = pullback.snd f j ≫ (r ≫ hU.fromSpec) := |
| 28 | Category.assoc _ _ _ |
| 29 | _ = pullback.snd f j ≫ (j ≫ p) := congrArg (fun k => pullback.snd f j ≫ k) hr |
| 30 | _ = (pullback.snd f j ≫ j) ≫ p := (Category.assoc _ _ _).symm |
| 31 | _ = (pullback.fst f j ≫ f) ≫ p := |
| 32 | congrArg (fun k => k ≫ p) (pullback.condition (f := f) (g := j)).symm |
| 33 | _ = pullback.fst f j ≫ f ≫ p := Category.assoc _ _ _ |
| 34 | |
| 35 | theorem stalkChart_baseChange_unramified {X Y Z : Scheme} |
| 36 | (f : Z ⟶ X) (p : X ⟶ Y) [FormallyUnramified (f ≫ p)] (b : X) |
| 37 | {U : Y.Opens} (hU : IsAffineOpen U) {V : X.Opens} (hV : IsAffineOpen V) |
| 38 | (hb : b ∈ V) (hv : V ≤ p ⁻¹ᵁ U) : |
| 39 | FormallyUnramified (pullback.snd f (X.fromSpecStalk b) ≫ |
| 40 | Spec.map (p.appLE U V hv ≫ X.presheaf.germ V b hb)) := by |
| 41 | let q := pullback.snd f (X.fromSpecStalk b) ≫ |
| 42 | Spec.map (p.appLE U V hv ≫ X.presheaf.germ V b hb) |
| 43 | have hcomp : FormallyUnramified (q ≫ hU.fromSpec) := |
| 44 | (congrArg FormallyUnramified (stalkChart_baseChange_projection f p b hU hV hb hv)).mpr |
| 45 | (MorphismProperty.comp_mem (@FormallyUnramified) _ _ inferInstance |
| 46 | (inferInstanceAs (FormallyUnramified (f ≫ p)))) |
| 47 | let := hcomp |
| 48 | exact FormallyUnramified.of_comp q hU.fromSpec |
| 49 | |
| 50 | variable {S : Scheme} {A B : Over S} |
| 51 | [GrpObj A] [IsProper A.hom] [Smooth A.hom] [GeometricallyConnected A.hom] |
| 52 | [IsLocallyNoetherian B.left] (PP : AbelianModuli.HilbertConstruction.Projective.ProjectivePresentations.ProjectivePresentation A) (D : AbelianScheme.IsogenyQuotient.Relative.RigidifiedLine.Construction.RelativeRigidifiedProductLine A B) |
| 53 | {Y : Scheme} (n : ℕ) (p : B.left ⟶ Y) [SmoothOfRelativeDimension n p] |
| 54 | [FormallyUnramified ((RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom ≫ p)] (z : (RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).left) |
| 55 | |
| 56 | omit [SmoothOfRelativeDimension n p] in |
| 57 | theorem stalkChart_zeroScheme_flat |
| 58 | {U : Y.Opens} (hU : IsAffineOpen U) {V : B.left.Opens} (hV : IsAffineOpen V) |
| 59 | (hb : (RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom z ∈ V) (hv : V ≤ p ⁻¹ᵁ U) |
| 60 | (hstd : letI : Algebra Γ(Y, U) Γ(B.left, V) := (p.appLE U V hv).hom.toAlgebra |
| 61 | Algebra.IsStandardSmoothOfRelativeDimension n Γ(Y, U) Γ(B.left, V)) |
| 62 | (hdim : RelativeProjectiveEquations.Geometric.relativeProjectiveClosedFiberH1 |
| 63 | (FormalGeometry.Completion.Projective.ConstantFamily.Construction.tensorFamilyOver A (RelativeStalkParameters.Geometric.RelativeRigidifiedCharts.stalkParameter B ((RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom z))).hom |
| 64 | (FormalGeometry.Completion.Projective.ConstantFamily.Construction.tensorFamilyProjectivePresentation A (RelativeStalkParameters.Geometric.RelativeRigidifiedCharts.stalkParameter B ((RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom z)) PP) |
| 65 | (D.line (RelativeStalkParameters.Geometric.RelativeRigidifiedCharts.stalkMap B ((RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom z))) ≤ n) : |
| 66 | Flat (pullback.snd (RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom (B.left.fromSpecStalk ((RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom z)) ≫ |
| 67 | Spec.map (p.appLE U V hv ≫ B.left.presheaf.germ V ((RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom z) hb)) := by |
| 68 | let b := (RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom z |
| 69 | let hlocal : IsLocalRing (B.left.presheaf.stalk b) := |
| 70 | B.left.toLocallyRingedSpace.isLocalRing b |
| 71 | let j := B.left.fromSpecStalk b |
| 72 | let : Algebra Γ(Y, U) Γ(B.left, V) := (p.appLE U V hv).hom.toAlgebra |
| 73 | let := TopCat.Presheaf.algebra_section_stalk B.left.presheaf (⟨b, hb⟩ : V) |
| 74 | let : Algebra Γ(Y, U) (B.left.presheaf.stalk b) := |
| 75 | ((B.left.presheaf.germ V b hb).hom.comp (p.appLE U V hv).hom).toAlgebra |
| 76 | let : IsScalarTower Γ(Y, U) Γ(B.left, V) (B.left.presheaf.stalk b) := |
| 77 | IsScalarTower.of_algebraMap_eq' rfl |
| 78 | let : IsLocalization.AtPrime (B.left.presheaf.stalk b) (hV.primeIdealOf ⟨b, hb⟩).asIdeal := |
| 79 | hV.isLocalization_stalk ⟨b, hb⟩ |
| 80 | let r := Spec.map (p.appLE U V hv ≫ B.left.presheaf.germ V b hb) |
| 81 | let q := pullback.snd (RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom j ≫ r |
| 82 | let : FormallyUnramified q := |
| 83 | stalkChart_baseChange_unramified (RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom p b hU hV hb hv |
| 84 | have hunramified : FormallyUnramified |
| 85 | ((RepresentationTheory.Theta.Geometric.SubobjectPullbackPoints.subobjectPullback (RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP) (RelativeStalkParameters.Geometric.RelativeRigidifiedCharts.stalkMap B b).left).hom ≫ |
| 86 | Spec.map (CommRingCat.ofHom (algebraMap Γ(Y, U) (B.left.presheaf.stalk b)))) := by |
| 87 | change FormallyUnramified q |
| 88 | infer_instance |
| 89 | obtain ⟨eM⟩ := RelativeStalkParameters.Geometric.RelativeRigidifiedCharts.stalk_fiber_trivial PP D z |
| 90 | exact @RelativeStandardFlatness.Geometric.RelativeRigidifiedCharts.standardLocalization_flat |
| 91 | Γ(Y, U) Γ(B.left, V) (B.left.presheaf.stalk b) |
| 92 | _ _ _ hlocal _ _ _ _ _ |
| 93 | (hV.primeIdealOf ⟨b, hb⟩).asIdeal.primeCompl _ n hstd |
| 94 | S A B _ _ _ _ _ PP D (j ≫ B.hom) (RelativeStalkParameters.Geometric.RelativeRigidifiedCharts.stalkMap B b) hunramified eM hdim |
| 95 | |
| 96 | theorem stalk_projection_flat |
| 97 | (hdim : RelativeProjectiveEquations.Geometric.relativeProjectiveClosedFiberH1 |
| 98 | (FormalGeometry.Completion.Projective.ConstantFamily.Construction.tensorFamilyOver A (RelativeStalkParameters.Geometric.RelativeRigidifiedCharts.stalkParameter B ((RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom z))).hom |
| 99 | (FormalGeometry.Completion.Projective.ConstantFamily.Construction.tensorFamilyProjectivePresentation A (RelativeStalkParameters.Geometric.RelativeRigidifiedCharts.stalkParameter B ((RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom z)) PP) |
| 100 | (D.line (RelativeStalkParameters.Geometric.RelativeRigidifiedCharts.stalkMap B ((RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom z))) ≤ n) : |
| 101 | Flat (pullback.fst (RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom (B.left.fromSpecStalk ((RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom z)) ≫ |
| 102 | (RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom ≫ p) := by |
| 103 | let b := (RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom z |
| 104 | obtain ⟨U, hU, V, hV, hb, hv, hstd⟩ := |
| 105 | SmoothOfRelativeDimension.exists_isStandardSmoothOfRelativeDimension (n := n) (f := p) b |
| 106 | let q := pullback.snd (RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom (B.left.fromSpecStalk b) ≫ |
| 107 | Spec.map (p.appLE U V hv ≫ B.left.presheaf.germ V b hb) |
| 108 | let : Flat q := stalkChart_zeroScheme_flat PP D n p z hU hV hb hv hstd hdim |
| 109 | have hflat : Flat (q ≫ hU.fromSpec) := inferInstance |
| 110 | have hfac := stalkChart_baseChange_projection (RelativeZeroScheme.Geometric.RelativeRigidifiedCharts.zeroScheme D PP).hom p b hU hV hb hv |
| 111 | change q ≫ hU.fromSpec = _ at hfac |
| 112 | rwa [hfac] at hflat |
| 113 | |
| 114 | end |
| 115 | |
| 116 | end OAI.AlgebraicGeometry.Picard.ThetaConstruction.RelativeStalkFlatness.Geometric.RelativeRigidifiedCharts |