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.Divisors.LineBundles.Smooth.IntegralAffineSourceCharts |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Geometric.AffinePrimePoint |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Integral.FiberOpen |
| 4 | |
| 5 | /-! # Fiber Grading -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Integral.FiberGrading |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The generic point of a geometrically integral smooth fiber preserves |
| 12 | the actual point codimension, including over singular target schemes. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace _root_.Order |
| 18 | |
| 19 | theorem affine_coheight {E X : Scheme.{0}} [IsAffine E] [IsAffine X] |
| 20 | [IsLocallyNoetherian E] [IsLocallyNoetherian X] |
| 21 | (p : E ⟶ X) [Smooth p] [GeometricallyIntegral p] (x : X) : |
| 22 | coheight (Divisors.LineBundles.Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint p x) = coheight x := by |
| 23 | let R := Γ(X, ⊤) |
| 24 | let S := Γ(E, ⊤) |
| 25 | let : Algebra R S := p.appTop.hom.toAlgebra |
| 26 | let : IsNoetherianRing R := IsLocallyNoetherian.component_noetherian ⟨⊤, isAffineOpen_top X⟩ |
| 27 | let : IsNoetherianRing S := IsLocallyNoetherian.component_noetherian ⟨⊤, isAffineOpen_top E⟩ |
| 28 | let q := Divisors.LineBundles.AlgebraSpectrumProjection.BundleCycles.algebraSpectrumProjection R S |
| 29 | have hs : IsPullback q E.isoSpec.inv X.isoSpec.inv p := |
| 30 | IsPullback.of_vert_isIso ⟨Scheme.isoSpec_inv_naturality p⟩ |
| 31 | let : Smooth q := MorphismProperty.of_isPullback hs.flip inferInstance |
| 32 | let : GeometricallyIntegral q := MorphismProperty.of_isPullback hs.flip inferInstance |
| 33 | let y := X.isoSpec.hom x |
| 34 | have hy : X.isoSpec.inv y = x := by |
| 35 | exact congrArg (fun h : X ⟶ X => h x) X.isoSpec.hom_inv_id |
| 36 | have he := Divisors.LineBundles.Integral.FiberOpen.BundleCycles.integralFiberGenericPoint_openSquare p q X.isoSpec.inv E.isoSpec.inv hs.w y |
| 37 | have he' := he.trans (congrArg (Divisors.LineBundles.Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint p) hy) |
| 38 | calc |
| 39 | coheight (Divisors.LineBundles.Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint p x) = |
| 40 | coheight (E.isoSpec.inv (Divisors.LineBundles.Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint q y)) := congrArg Order.coheight he'.symm |
| 41 | _ = coheight (Divisors.LineBundles.Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint q y) := coheight_eq_of_isOpenImmersion E.isoSpec.inv |
| 42 | _ = coheight (Divisors.LineBundles.Geometric.AffinePrimePoint.BundleCycles.geometricAffinePrimePoint R S y) := |
| 43 | congrArg Order.coheight (Divisors.LineBundles.Geometric.AffinePrimePoint.BundleCycles.geometricAffinePrimePoint_eq_fiberGeneric R S y).symm |
| 44 | _ = coheight y := Divisors.LineBundles.Geometric.AffinePrimePoint.BundleCycles.geometricAffinePrimePoint_coheight R S y |
| 45 | _ = coheight (X.isoSpec.inv y) := (coheight_eq_of_isOpenImmersion X.isoSpec.inv).symm |
| 46 | _ = coheight x := congrArg Order.coheight hy |
| 47 | |
| 48 | theorem coheight {E X : Scheme.{0}} |
| 49 | [IsLocallyNoetherian E] [IsLocallyNoetherian X] |
| 50 | (p : E ⟶ X) [Smooth p] [GeometricallyIntegral p] (x : X) : |
| 51 | Order.coheight (Divisors.LineBundles.Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint p x) = Order.coheight x := by |
| 52 | obtain ⟨U, V, q, i, j, hU, hV, hq, hgi, hi, hj, hz, hs⟩ := |
| 53 | Divisors.LineBundles.Smooth.IntegralAffineSourceCharts.BundleCycles.smoothIntegral_hasAffineSourceCharts p (Divisors.LineBundles.Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint p x) |
| 54 | let := hU |
| 55 | let := hV |
| 56 | let := hq |
| 57 | let := hgi |
| 58 | let := hi |
| 59 | let := hj |
| 60 | let : IsLocallyNoetherian U := LocallyOfFiniteType.isLocallyNoetherian i |
| 61 | let : IsLocallyNoetherian V := LocallyOfFiniteType.isLocallyNoetherian j |
| 62 | obtain ⟨z, hz⟩ := hz |
| 63 | have hx : i (q z) = x := |
| 64 | (congrArg (fun h : V ⟶ X => h z) hs).trans |
| 65 | ((congrArg p hz).trans (Divisors.LineBundles.Integral.FiberGenericPoint.BundleCycles.integralFiberGenericPoint_projection p x)) |
| 66 | have he := Divisors.LineBundles.Integral.FiberOpen.BundleCycles.integralFiberGenericPoint_openSquare p q i j hs (q z) |
| 67 | rw [hx] at he |
| 68 | rw [← he, coheight_eq_of_isOpenImmersion j, affine_coheight q, |
| 69 | ← coheight_eq_of_isOpenImmersion i, hx] |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Integral.FiberGrading |