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.IntersectionTheory.ProjectionFormula.Affine.SupportBaseChange |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Open.SupportBaseChangeSquare |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Smooth.IntegralAffineSourceCharts |
| 4 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Geometric.AffinePrimePoint |
| 5 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Integral.PulledSupport |
| 6 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Integral.FiberOpen |
| 7 | |
| 8 | /-! # Pullback Module -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.PullbackModule |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! The reduced inverse-image support under a smooth morphism with |
| 15 | geometrically integral fibers has the actual base-changed local module |
| 16 | at every point, including nongeneric points of the original support. -/ |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 22 | |
| 23 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeQuotient |
| 24 | |
| 25 | variable {X Y : Scheme} [IsLocallyNoetherian Y] (f : X ⟶ Y) [Smooth f] [GeometricallyIntegral f] |
| 26 | (B : IrreducibleCloseds Y) (x : X) (hx : f x ∈ (B : Set Y)) |
| 27 | |
| 28 | include hx in |
| 29 | theorem mem : x ∈ (Divisors.LineBundles.Integral.PulledSupport.BundleCycles.integralPulledSupport f B : Set X) := by |
| 30 | rw [Divisors.LineBundles.Integral.PulledSupport.BundleCycles.integralPulledSupport_coe] |
| 31 | exact hx |
| 32 | |
| 33 | theorem kernel : (Stalk.PrimeQuotient.kernelPrime Y B (f x) hx).asIdeal.map (f.stalkMap x).hom = |
| 34 | (Stalk.PrimeQuotient.kernelPrime X (Divisors.LineBundles.Integral.PulledSupport.BundleCycles.integralPulledSupport f B) x (mem f B x hx)).asIdeal := by |
| 35 | let : IsLocallyNoetherian X := LocallyOfFiniteType.isLocallyNoetherian f |
| 36 | obtain ⟨U, V, q, i, j, hU, hV, hq, hgi, hi, hj, hv, hs⟩ := Divisors.LineBundles.Smooth.IntegralAffineSourceCharts.BundleCycles.smoothIntegral_hasAffineSourceCharts f x |
| 37 | let := hU |
| 38 | let := hV |
| 39 | let := hq |
| 40 | let := hgi |
| 41 | let := hi |
| 42 | let := hj |
| 43 | let : IsLocallyNoetherian U := LocallyOfFiniteType.isLocallyNoetherian i |
| 44 | let : IsLocallyNoetherian V := LocallyOfFiniteType.isLocallyNoetherian j |
| 45 | obtain ⟨v, hv⟩ := hv |
| 46 | have hqv : i (q v) = f x := |
| 47 | (congrArg (fun g : V ⟶ Y => g v) hs).trans (congrArg f hv) |
| 48 | have hb : (i ⁻¹' (B : Set Y)).Nonempty := ⟨q v, by change i (q v) ∈ (B : Set Y); rwa [hqv]⟩ |
| 49 | let B' := Open.SupportDimension.preimage i B hb |
| 50 | let R := Γ(U, ⊤) |
| 51 | let S := Γ(V, ⊤) |
| 52 | let : Algebra R S := q.appTop.hom.toAlgebra |
| 53 | let : IsNoetherianRing R := IsLocallyNoetherian.component_noetherian ⟨⊤, isAffineOpen_top U⟩ |
| 54 | let q₀ := Divisors.LineBundles.AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S |
| 55 | have h₀ : q₀ ≫ U.isoSpec.inv = V.isoSpec.inv ≫ q := Scheme.isoSpec_inv_naturality q |
| 56 | have hsq : IsPullback q₀ V.isoSpec.inv U.isoSpec.inv q := IsPullback.of_vert_isIso ⟨h₀⟩ |
| 57 | let : Smooth q₀ := MorphismProperty.of_isPullback hsq.flip inferInstance |
| 58 | let : GeometricallyIntegral q₀ := MorphismProperty.of_isPullback hsq.flip inferInstance |
| 59 | let i' : Spec (.of R) ⟶ Y := U.isoSpec.inv ≫ i |
| 60 | let j' : Spec (.of S) ⟶ X := V.isoSpec.inv ≫ j |
| 61 | have hs' : q₀ ≫ i' = j' ≫ f := by |
| 62 | change q₀ ≫ U.isoSpec.inv ≫ i = (V.isoSpec.inv ≫ j) ≫ f |
| 63 | rw [← Category.assoc, h₀, Category.assoc, hs, ← Category.assoc] |
| 64 | let P : PrimeSpectrum R := U.isoSpec.hom (CycleClass.Thom.IntersectionGeometry.supportPoint B') |
| 65 | let z : PrimeSpectrum S := V.isoSpec.hom v |
| 66 | have hP : i' P = CycleClass.Thom.IntersectionGeometry.supportPoint B := by |
| 67 | have he := congrArg (fun g : U ⟶ U => g (CycleClass.Thom.IntersectionGeometry.supportPoint B')) U.isoSpec.hom_inv_id |
| 68 | exact (congrArg i he).trans (Open.SupportBaseChangeSquare.preimage_point i B hb) |
| 69 | have hz : j' z = x := by |
| 70 | have he := congrArg (fun g : V ⟶ V => g v) V.isoSpec.hom_inv_id |
| 71 | exact (congrArg j he).trans hv |
| 72 | have hqz : i' (q₀ z) = f x := |
| 73 | (congrArg (fun g : Spec (.of S) ⟶ Y => g z) hs').trans (congrArg f hz) |
| 74 | have hPz : P.asIdeal.map (algebraMap R S) ≤ z.asIdeal := by |
| 75 | apply Ideal.map_le_iff_le_comap.mpr |
| 76 | apply (PrimeSpectrum.le_iff_specializes P (q₀ z)).mpr |
| 77 | apply i'.isOpenEmbedding.isEmbedding.isInducing.specializes_iff.mp |
| 78 | rw [hP, hqz] |
| 79 | exact (B.isIrreducible.isGenericPoint_genericPoint B.isClosed).specializes hx |
| 80 | let Q := Divisors.LineBundles.Geometric.AffinePrimePoint.BundleCycles.geometricAffinePrimePoint R S P |
| 81 | let A₀ := Affine.SupportStalk.support S Q |
| 82 | let B₀ := Affine.SupportStalk.support R P |
| 83 | have hB₀ : i' (CycleClass.Thom.IntersectionGeometry.supportPoint B₀) = CycleClass.Thom.IntersectionGeometry.supportPoint B := |
| 84 | (congrArg i' (Affine.SupportStalk.point R P)).trans hP |
| 85 | have hA₀ : j' (CycleClass.Thom.IntersectionGeometry.supportPoint A₀) = CycleClass.Thom.IntersectionGeometry.supportPoint (Divisors.LineBundles.Integral.PulledSupport.BundleCycles.integralPulledSupport f B) := by |
| 86 | rw [Affine.SupportStalk.point] |
| 87 | change j' (Divisors.LineBundles.Geometric.AffinePrimePoint.BundleCycles.geometricAffinePrimePoint R S P) = _ |
| 88 | rw [Divisors.LineBundles.Geometric.AffinePrimePoint.BundleCycles.geometricAffinePrimePoint_eq_fiberGeneric, |
| 89 | Divisors.LineBundles.Integral.FiberOpen.BundleCycles.integralFiberGenericPoint_openSquare f q₀ i' j' hs', hP] |
| 90 | exact (Divisors.LineBundles.Integral.PulledSupport.BundleCycles.integralPulledSupport_genericPoint f B).symm |
| 91 | have hzA : z ∈ (A₀ : Set (Spec (.of S))) := Affine.SupportStalk.mem S Q z hPz |
| 92 | have hzB : q₀ z ∈ (B₀ : Set (Spec (.of R))) := |
| 93 | Affine.SupportStalk.mem R P (q₀ z) (Ideal.map_le_iff_le_comap.mp hPz) |
| 94 | have hloc : (Stalk.PrimeQuotient.kernelPrime (Spec (.of R)) B₀ (q₀ z) hzB).asIdeal.map (q₀.stalkMap z).hom = |
| 95 | (Stalk.PrimeQuotient.kernelPrime (Spec (.of S)) A₀ z hzA).asIdeal := by |
| 96 | rw [← Affine.SupportStalk.kernel_map R P (q₀ z) (Ideal.map_le_iff_le_comap.mp hPz), |
| 97 | ← Affine.SupportStalk.kernel_map S Q z hPz] |
| 98 | exact Affine.SupportBaseChange.ideal R S (algebraMap R S) P z |
| 99 | cases hz |
| 100 | exact Open.SupportBaseChangeSquare.kernel f q₀ i' j' hs'.symm |
| 101 | (Divisors.LineBundles.Integral.PulledSupport.BundleCycles.integralPulledSupport f B) B A₀ B₀ hA₀ hB₀ z hzA hzB (mem f B _ hx) hx hloc |
| 102 | |
| 103 | def equiv : |
| 104 | letI : Algebra (Y.presheaf.stalk (f x)) (X.presheaf.stalk x) := (f.stalkMap x).hom.toAlgebra |
| 105 | (Flat.Extension.baseChange (Y.presheaf.stalk (f x)) (X.presheaf.stalk x)).obj |
| 106 | (CycleClass.Thom.IntersectionGeometry.localSupportModule Y B (f x) hx) ≃ₗ[X.presheaf.stalk x] |
| 107 | CycleClass.Thom.IntersectionGeometry.localSupportModule X (Divisors.LineBundles.Integral.PulledSupport.BundleCycles.integralPulledSupport f B) x (mem f B x hx) := by |
| 108 | let R := Y.presheaf.stalk (f x) |
| 109 | let S := X.presheaf.stalk x |
| 110 | let : Algebra R S := (f.stalkMap x).hom.toAlgebra |
| 111 | let p := Stalk.PrimeQuotient.kernelPrime Y B (f x) hx |
| 112 | let q := Stalk.PrimeQuotient.kernelPrime X (Divisors.LineBundles.Integral.PulledSupport.BundleCycles.integralPulledSupport f B) x (mem f B x hx) |
| 113 | let eY := Stalk.PrimeQuotient.moduleEquiv Y B (f x) hx p (Stalk.PrimeQuotient.kernelPrime_image Y B (f x) hx) |
| 114 | let eX := Stalk.PrimeQuotient.moduleEquiv X (Divisors.LineBundles.Integral.PulledSupport.BundleCycles.integralPulledSupport f B) x (mem f B x hx) q |
| 115 | (Stalk.PrimeQuotient.kernelPrime_image X (Divisors.LineBundles.Integral.PulledSupport.BundleCycles.integralPulledSupport f B) x (mem f B x hx)) |
| 116 | exact ((Flat.Extension.baseChange R S).mapIso eY.toModuleIso).toLinearEquiv.trans |
| 117 | ((Ideal.qoutMapEquivTensorQout (R := R) (I := p.asIdeal) S).symm.trans |
| 118 | ((Submodule.quotEquivOfEq _ _ (kernel f B x hx)).trans eX.symm)) |
| 119 | |
| 120 | end |
| 121 | |
| 122 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.PullbackModule |