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.Foundations.Scheme.FunctionFieldScalar |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.FunctionFieldFiniteType |
| 3 | import OAI.AlgebraicGeometry.Foundations.Scheme.SpecScalarTransport |
| 4 | import OAI.AlgebraicGeometry.Foundations.Scheme.DifferentialTranscendenceDegree |
| 5 | import OAI.AlgebraicGeometry.Foundations.Scheme.DifferentialBaseIso |
| 6 | import OAI.AlgebraicGeometry.Foundations.Scheme.TranscendenceDegreeTransfer |
| 7 | |
| 8 | /-! # Transcendence Dimension -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.TranscendenceDimension |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! |
| 15 | # Dimension from the actual function field |
| 16 | |
| 17 | For an integral scheme over a field, the structure morphism gives its function |
| 18 | field its canonical scalar algebra. Its transcendence degree therefore defines |
| 19 | a dimension without any choice of an affine presentation. Local finite type |
| 20 | ensures that taking the natural-number value loses no information. On every |
| 21 | nonempty affine open it agrees with the transcendence degree of the actual |
| 22 | ring of sections. |
| 23 | -/ |
| 24 | |
| 25 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | variable {K : Type u} [Field K] {X : Scheme.{u}} [IsIntegral X] |
| 30 | |
| 31 | /-- The transcendence dimension of an integral scheme over its actual base |
| 32 | field. The finite-type theorem below verifies that the cardinal-to-natural |
| 33 | conversion preserves the full transcendence degree in the intended setting. -/ |
| 34 | def schemeTranscendenceDimension (f : X ⟶ Spec (.of K)) : ℕ := |
| 35 | letI := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 36 | (Algebra.trdeg K X.functionField).toNat |
| 37 | |
| 38 | /-- The defining expression, with the structure-morphism scalar algebra |
| 39 | made explicit for use in downstream statements. -/ |
| 40 | theorem schemeTranscendenceDimension_def (f : X ⟶ Spec (.of K)) : |
| 41 | letI := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 42 | schemeTranscendenceDimension f = (Algebra.trdeg K X.functionField).toNat := rfl |
| 43 | |
| 44 | /-- For a locally finite-type integral scheme, the natural-number dimension |
| 45 | recovers the complete cardinal-valued transcendence degree. -/ |
| 46 | theorem schemeTranscendenceDimension_cast (f : X ⟶ Spec (.of K)) |
| 47 | [LocallyOfFiniteType f] : |
| 48 | letI := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 49 | (schemeTranscendenceDimension f : Cardinal) = Algebra.trdeg K X.functionField := by |
| 50 | let := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 51 | exact Cardinal.cast_toNat_of_lt_aleph0 (FunctionFieldFiniteType.functionFieldScalar_trdeg_lt_aleph0 f) |
| 52 | |
| 53 | /-- Every finite transcendence basis of the actual function field counts |
| 54 | the same dimension. -/ |
| 55 | theorem schemeTranscendenceDimension_eq_natCard_basis |
| 56 | (f : X ⟶ Spec (.of K)) {ι : Type u} [Finite ι] (v : ι → X.functionField) : |
| 57 | letI := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 58 | IsTranscendenceBasis K v → schemeTranscendenceDimension f = Nat.card ι := by |
| 59 | let := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 60 | intro hv |
| 61 | exact congrArg Cardinal.toNat hv.cardinalMk_eq_trdeg.symm |
| 62 | |
| 63 | /-- The locally finite-type hypothesis supplies an actual finite |
| 64 | transcendence basis of cardinality equal to this dimension. -/ |
| 65 | theorem exists_schemeTranscendenceBasis (f : X ⟶ Spec (.of K)) |
| 66 | [LocallyOfFiniteType f] : |
| 67 | letI := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 68 | ∃ s : Finset X.functionField, IsTranscendenceBasis K ((↑) : s → X.functionField) ∧ |
| 69 | s.card = schemeTranscendenceDimension f := by |
| 70 | let := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 71 | let := FunctionFieldFiniteType.functionFieldScalar_finTrdeg f |
| 72 | obtain ⟨s, hs⟩ := exists_finset_isTranscendenceBasis K X.functionField |
| 73 | refine ⟨s, hs, ?_⟩ |
| 74 | have h := schemeTranscendenceDimension_eq_natCard_basis f ((↑) : s → X.functionField) hs |
| 75 | simpa using h.symm |
| 76 | |
| 77 | /-- Over a perfect field the same dimension is computed by the genuine |
| 78 | module of Kähler differentials of the function field. -/ |
| 79 | theorem schemeTranscendenceDimension_eq_kaehlerFinrank [PerfectField K] |
| 80 | (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] : |
| 81 | letI := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 82 | schemeTranscendenceDimension f = Module.finrank X.functionField Ω[X.functionField⁄K] := by |
| 83 | let := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 84 | let := FunctionFieldFiniteType.functionFieldScalar_essFiniteType f |
| 85 | exact (DifferentialTranscendenceDegree.kaehler_finrank_eq_trdeg K X.functionField).symm |
| 86 | |
| 87 | /-- The function-field differential module is finite-dimensional in the |
| 88 | perfect-field locally finite-type setting. -/ |
| 89 | theorem functionFieldScalar_kaehlerFinite [PerfectField K] |
| 90 | (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] : |
| 91 | letI := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 92 | Module.Finite X.functionField Ω[X.functionField⁄K] := by |
| 93 | let := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 94 | let := FunctionFieldFiniteType.functionFieldScalar_essFiniteType f |
| 95 | exact DifferentialTranscendenceDegree.kaehler_finite_of_essFiniteType K X.functionField |
| 96 | |
| 97 | /-- On any nonempty affine open, the canonical dimension is the |
| 98 | transcendence degree of the actual sections over the actual base field. -/ |
| 99 | theorem schemeTranscendenceDimension_eq_affineSections |
| 100 | (f : X ⟶ Spec (.of K)) (U : X.Opens) [Nonempty U] (hU : IsAffineOpen U) : |
| 101 | letI := SpecScalarTransport.specSectionScalarAlgebra f U |
| 102 | schemeTranscendenceDimension f = (Algebra.trdeg K Γ(X, U)).toNat := by |
| 103 | let := SpecScalarTransport.specSectionScalarAlgebra f U |
| 104 | let := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 105 | let := FunctionFieldScalar.functionFieldScalar_isScalarTower f U |
| 106 | let := functionField_isFractionRing_of_isAffineOpen X U hU |
| 107 | exact congrArg Cardinal.toNat (TranscendenceDegreeTransfer.trdeg_eq_of_isFractionRing K Γ(X, U) X.functionField).symm |
| 108 | |
| 109 | /-- Replacing global functions on the base spectrum by the actual scalar |
| 110 | field leaves the function-field differential dimension unchanged. -/ |
| 111 | theorem functionFieldScalar_kaehlerFinrank_eq_base |
| 112 | (f : X ⟶ Spec (.of K)) : |
| 113 | letI := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 114 | Module.finrank X.functionField Ω[X.functionField⁄K] = |
| 115 | Betti.AffineDimension.Realization.functionFieldDifferentialDimension f := by |
| 116 | let := FunctionFieldScalar.specGlobalScalarAlgebra K |
| 117 | let := Betti.AffineDimension.Realization.functionFieldBaseAlgebra f |
| 118 | let := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 119 | let := FunctionFieldScalar.functionFieldBaseScalar_isScalarTower f |
| 120 | exact (DifferentialBaseIso.kaehlerDifferentialEquivOfSurjectiveBase K Γ(Spec (.of K), ⊤) X.functionField |
| 121 | (FunctionFieldScalar.specGlobalScalarAlgebra_surjective (K := K))).finrank_eq |
| 122 | |
| 123 | /-- In characteristic zero, the canonical transcendence dimension agrees |
| 124 | with the common differential dimension used by the genuine smooth charts. -/ |
| 125 | theorem schemeTranscendenceDimension_eq_functionFieldDifferentialDimension |
| 126 | [CharZero K] (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] : |
| 127 | schemeTranscendenceDimension f = Betti.AffineDimension.Realization.functionFieldDifferentialDimension f := by |
| 128 | let := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 129 | exact (schemeTranscendenceDimension_eq_kaehlerFinrank f).trans |
| 130 | (functionFieldScalar_kaehlerFinrank_eq_base f) |
| 131 | |
| 132 | end |
| 133 | |
| 134 | end OAI.AlgebraicGeometry.Foundations.Scheme.TranscendenceDimension |