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.DivisorClass.Chern.SupportCodimension |
| 2 | import OAI.Algebra.Foundations.PolynomialCatenaryT |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles |
| 4 | |
| 5 | /-! # Cycle Codimension -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.Reference.CycleCodimension |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # The original point codimension equals the actual function-field codimension -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 14 | |
| 15 | open OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles OAI.AlgebraicGeometry.DivisorClass.Chern.SupportCodimension.Construction |
| 16 | |
| 17 | /-- The arbitrary-height version of the finite-type prime quotient dimension formula. -/ |
| 18 | theorem finiteType_height_trdeg (K A : Type) [Field K] [CommRing A] [IsDomain A] |
| 19 | [Algebra K A] [Algebra.FiniteType K A] (q : Ideal A) [q.IsPrime] |
| 20 | (p : ℕ) (hq : q.height = p) : |
| 21 | (Algebra.trdeg K (A ⧸ q)).toNat + p = (Algebra.trdeg K A).toNat := by |
| 22 | obtain ⟨n, f, hinj, hint⟩ := exists_integral_inj_algHom_of_fg K A |
| 23 | let P := MvPolynomial (Fin n) K |
| 24 | let : Algebra P A := f.toRingHom.toAlgebra |
| 25 | let : Algebra.IsIntegral P A := ⟨hint⟩ |
| 26 | let : FaithfulSMul P A := (faithfulSMul_iff_algebraMap_injective P A).mpr hinj |
| 27 | let r : Ideal P := q.comap (algebraMap P A) |
| 28 | have hr : r.height = p := by |
| 29 | have h := DivisorClass.Chern.IntegralDimension.Construction.integral_comap_height (R := P) (S := A) ⟨q, inferInstance⟩ |
| 30 | have h' : q.height = r.height := by |
| 31 | rw [← PrimeSpectrum.height_eq_orderHeight, ← PrimeSpectrum.height_eq_orderHeight] at h |
| 32 | exact h |
| 33 | exact h'.symm.trans hq |
| 34 | have hquot : ringKrullDim (A ⧸ q) = ringKrullDim (P ⧸ r) := |
| 35 | DivisorClass.Chern.IntegralDimension.Construction.integral_ringKrullDim_eq (R := P ⧸ r) (S := A ⧸ q) Ideal.algebraMap_quotient_injective |
| 36 | have hdim : (p : WithBot ℕ∞) + ringKrullDim (A ⧸ q) = ringKrullDim A := by |
| 37 | rw [hquot, DivisorClass.Chern.IntegralDimension.Construction.integral_ringKrullDim_eq (R := P) (S := A) hinj] |
| 38 | change (p : WithBot ℕ∞) + ringKrullDim (MvPolynomial (Fin n) K ⧸ r) = _ |
| 39 | have h := OAI.Algebra.Foundations.PolynomialCatenaryT.PolynomialCatenary.MvPolynomial.height_add_ringKrullDim_quotient_eq_fin r |
| 40 | rw [hr] at h |
| 41 | rw [MvPolynomial.ringKrullDim_of_isNoetherianRing, ringKrullDim_eq_zero_of_field, |
| 42 | zero_add, ENat.card_eq_coe_fintype_card, Fintype.card_fin, WithBot.coe_natCast] |
| 43 | simpa only [WithBot.coe_natCast] using h |
| 44 | rw [DivisorClass.Chern.FiniteTypeDimension.Construction.finiteType_ringKrullDim_eq_trdeg K (A ⧸ q), DivisorClass.Chern.FiniteTypeDimension.Construction.finiteType_ringKrullDim_eq_trdeg K A] at hdim |
| 45 | have h : p + (Algebra.trdeg K (A ⧸ q)).toNat = (Algebra.trdeg K A).toNat := by |
| 46 | exact_mod_cast hdim |
| 47 | omega |
| 48 | |
| 49 | set_option backward.isDefEq.respectTransparency false in |
| 50 | set_option backward.isDefEq.respectTransparency.types false in |
| 51 | set_option backward.defeqAttrib.useBackward true in |
| 52 | /-- The actual reduced closure of a codimension-`p` point has dimension `dim X - p`. -/ |
| 53 | theorem pointClosure_dimension_add_coheight {X : Scheme} [IsIntegral X] |
| 54 | (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) [LocallyOfFiniteType f] (x : X) |
| 55 | (p : ℕ) (hx : Order.coheight x = p) : |
| 56 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (irreducibleSetEquivPoints.symm x) f + p = |
| 57 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension f := by |
| 58 | obtain ⟨U, hU, hxU, _⟩ := exists_isAffineOpen_mem_and_subset (Opens.mem_top x) |
| 59 | let V : X.affineOpens := ⟨U, hU⟩ |
| 60 | let Z : IrreducibleCloseds X := irreducibleSetEquivPoints.symm x |
| 61 | let : Nonempty U := ⟨⟨x, hxU⟩⟩ |
| 62 | let : Nonempty (Foundations.Scheme.SupportAffineQuotient.supportAffineOpen Z V) := (Foundations.Scheme.SupportAffineInclusion.supportAffineOpen_nonempty_iff Z V).mpr |
| 63 | ⟨x, subset_closure (Set.mem_singleton x), hxU⟩ |
| 64 | let : Algebra ℂ Γ(X, U) := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 65 | let : Algebra.FiniteType ℂ Γ(X, U) := Foundations.Scheme.AffineSectionFiniteType.specSectionScalarAlgebra_finiteType f U hU |
| 66 | let : ((CycleClass.Geometric.GenericPoint.reducedSupportIdeal Z).ideal V).IsPrime := Foundations.Scheme.SupportAffineQuotient.supportAffineIdeal_isPrime Z V |
| 67 | have hp : ((CycleClass.Geometric.GenericPoint.reducedSupportIdeal Z).ideal V).height = p := |
| 68 | (DivisorClass.Chern.SupportCodimension.Construction.pointClosure_affineIdeal_height x V hxU).trans hx |
| 69 | rw [Foundations.Scheme.SupportDimension.supportTranscendenceDimension_eq_affineQuotient Z f V, |
| 70 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension_eq_affineSections f U hU] |
| 71 | exact finiteType_height_trdeg ℂ Γ(X, U) ((CycleClass.Geometric.GenericPoint.reducedSupportIdeal Z).ideal V) p hp |
| 72 | |
| 73 | /-- Both cycle constructions assign the same codimension to the same actual reduced support. -/ |
| 74 | theorem originalPoint_dimensionCodimension (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 75 | (x : V.carrier) (p : ℕ) (hx : Order.coheight x = p) : |
| 76 | CycleClass.Geometric.DimensionCycles.dimensionCodimension V (irreducibleSetEquivPoints.symm x) = p := by |
| 77 | have h := pointClosure_dimension_add_coheight V.structureMap x p hx |
| 78 | dsimp [CycleClass.Geometric.DimensionCycles.dimensionCodimension] |
| 79 | omega |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.ComplexMultiplication.Reference.CycleCodimension |