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.TranscendenceDegreeTransfer |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.SpecScalarTransport |
| 3 | import OAI.AlgebraicGeometry.Foundations.Scheme.FunctionFieldScalar |
| 4 | import OAI.AlgebraicGeometry.Betti.AffineDimension |
| 5 | import Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion |
| 6 | |
| 7 | /-! # Closed Immersion Dimension -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.ClosedImmersionDimension |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # Dimension monotonicity for closed immersions |
| 15 | |
| 16 | The algebraic comparison uses a surjection between affine coordinate rings. |
| 17 | It does not assert a map between the two function fields: a closed immersion |
| 18 | does not in general induce such a map. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 22 | |
| 23 | universe u v w |
| 24 | |
| 25 | /-- Quotienting an integral algebra cannot increase the transcendence degree |
| 26 | of its fraction field. -/ |
| 27 | theorem fractionRing_trdeg_le_of_surjective_algHom |
| 28 | (k : Type u) {A B : Type v} [Field k] [CommRing A] [CommRing B] |
| 29 | [IsDomain A] [IsDomain B] [Algebra k A] [Algebra k B] |
| 30 | (f : A →ₐ[k] B) (hf : Function.Surjective f) : |
| 31 | Algebra.trdeg k (FractionRing B) ≤ Algebra.trdeg k (FractionRing A) := by |
| 32 | rw [← TranscendenceDegreeTransfer.trdeg_eq_fractionRing k B, ← TranscendenceDegreeTransfer.trdeg_eq_fractionRing k A] |
| 33 | exact trdeg_le_of_surjective f hf |
| 34 | |
| 35 | /-- The same comparison for any actual fraction fields, with their compatible |
| 36 | base-field scalar structures. -/ |
| 37 | theorem fractionField_trdeg_le_of_surjective_algHom |
| 38 | (k : Type u) {A B KA KB : Type v} [Field k] [CommRing A] [CommRing B] |
| 39 | [IsDomain A] [IsDomain B] [Field KA] [Field KB] |
| 40 | [Algebra k A] [Algebra k B] [Algebra k KA] [Algebra k KB] |
| 41 | [Algebra A KA] [Algebra B KB] [IsScalarTower k A KA] [IsScalarTower k B KB] |
| 42 | [IsFractionRing A KA] [IsFractionRing B KB] |
| 43 | (f : A →ₐ[k] B) (hf : Function.Surjective f) : |
| 44 | Algebra.trdeg k KB ≤ Algebra.trdeg k KA := by |
| 45 | rw [← TranscendenceDegreeTransfer.trdeg_eq_of_isFractionRing k B KB, ← TranscendenceDegreeTransfer.trdeg_eq_of_isFractionRing k A KA] |
| 46 | exact trdeg_le_of_surjective f hf |
| 47 | |
| 48 | /-- The fraction-ring inequality with explicit cardinal lifts when the two |
| 49 | coordinate rings live in different universes. -/ |
| 50 | theorem lift_fractionRing_trdeg_le_of_surjective_algHom |
| 51 | (k : Type u) {A : Type v} {B : Type w} [Field k] [CommRing A] [CommRing B] |
| 52 | [IsDomain A] [IsDomain B] [Algebra k A] [Algebra k B] |
| 53 | (f : A →ₐ[k] B) (hf : Function.Surjective f) : |
| 54 | Cardinal.lift.{v} (Algebra.trdeg k (FractionRing B)) ≤ |
| 55 | Cardinal.lift.{w} (Algebra.trdeg k (FractionRing A)) := by |
| 56 | rw [← TranscendenceDegreeTransfer.trdeg_eq_fractionRing k B, ← TranscendenceDegreeTransfer.trdeg_eq_fractionRing k A] |
| 57 | exact lift_trdeg_le_of_surjective f hf |
| 58 | |
| 59 | /-- Restriction along a scheme morphism commutes with the actual base-section |
| 60 | map on an open set and its inverse image. -/ |
| 61 | theorem sectionBaseMap_app {Z X S : Scheme.{u}} (i : Z ⟶ X) (f : X ⟶ S) |
| 62 | (U : X.Opens) : |
| 63 | Betti.AffineDimension.Realization.sectionBaseMap f U ≫ i.app U = |
| 64 | Betti.AffineDimension.Realization.sectionBaseMap (i ≫ f) (i ⁻¹ᵁ U) := by |
| 65 | dsimp only [Betti.AffineDimension.Realization.sectionBaseMap] |
| 66 | rw [i.app_eq_appLE] |
| 67 | exact Scheme.Hom.appLE_comp_appLE i f ⊤ U (i ⁻¹ᵁ U) le_top le_rfl |
| 68 | |
| 69 | /-- Pullback on sections respects the scalar map induced by the structure |
| 70 | morphism to the spectrum of the scalar ring. -/ |
| 71 | theorem specSectionScalarMap_app {k : Type u} [CommRing k] |
| 72 | {Z X : Scheme.{u}} (i : Z ⟶ X) (f : X ⟶ Spec (.of k)) (U : X.Opens) : |
| 73 | (i.app U).hom.comp (SpecScalarTransport.specSectionScalarMap f U) = |
| 74 | SpecScalarTransport.specSectionScalarMap (i ≫ f) (i ⁻¹ᵁ U) := by |
| 75 | ext r |
| 76 | exact congrArg |
| 77 | (fun q : Γ(Spec (.of k), ⊤) ⟶ Γ(Z, i ⁻¹ᵁ U) => |
| 78 | q ((Scheme.ΓSpecIso (.of k)).inv r)) |
| 79 | (sectionBaseMap_app i f U) |
| 80 | |
| 81 | /-- The existing section pullback as an algebra homomorphism for the actual |
| 82 | base-ring scalar structures. -/ |
| 83 | def sectionPullbackAlgHom {k : Type u} [CommRing k] |
| 84 | {Z X : Scheme.{u}} (i : Z ⟶ X) (f : X ⟶ Spec (.of k)) (U : X.Opens) : |
| 85 | letI := SpecScalarTransport.specSectionScalarAlgebra f U |
| 86 | letI := SpecScalarTransport.specSectionScalarAlgebra (i ≫ f) (i ⁻¹ᵁ U) |
| 87 | Γ(X, U) →ₐ[k] Γ(Z, i ⁻¹ᵁ U) := by |
| 88 | letI := SpecScalarTransport.specSectionScalarAlgebra f U |
| 89 | letI := SpecScalarTransport.specSectionScalarAlgebra (i ≫ f) (i ⁻¹ᵁ U) |
| 90 | exact |
| 91 | { (i.app U).hom with |
| 92 | commutes' := fun r => congrArg (fun h : k →+* Γ(Z, i ⁻¹ᵁ U) => h r) |
| 93 | (specSectionScalarMap_app i f U) } |
| 94 | |
| 95 | /-- On an affine open of the target, a closed immersion gives a surjective |
| 96 | algebra homomorphism of the actual section rings. -/ |
| 97 | theorem sectionPullbackAlgHom_surjective {k : Type u} [CommRing k] |
| 98 | {Z X : Scheme.{u}} (i : Z ⟶ X) [IsClosedImmersion i] |
| 99 | (f : X ⟶ Spec (.of k)) (U : X.Opens) (hU : IsAffineOpen U) : |
| 100 | letI := SpecScalarTransport.specSectionScalarAlgebra f U |
| 101 | letI := SpecScalarTransport.specSectionScalarAlgebra (i ≫ f) (i ⁻¹ᵁ U) |
| 102 | Function.Surjective (sectionPullbackAlgHom i f U) := |
| 103 | i.app_surjective U hU |
| 104 | |
| 105 | /-- A nonempty common affine chart compares the actual function fields of |
| 106 | an integral closed subscheme and its integral ambient scheme. -/ |
| 107 | theorem closedImmersion_functionField_trdeg_le_of_affineOpen |
| 108 | {k : Type u} [Field k] {Z X : Scheme.{u}} [IsIntegral Z] [IsIntegral X] |
| 109 | (i : Z ⟶ X) [IsClosedImmersion i] (f : X ⟶ Spec (.of k)) |
| 110 | (U : X.Opens) [hV : Nonempty (i ⁻¹ᵁ U)] (hU : IsAffineOpen U) : |
| 111 | let := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 112 | let := FunctionFieldScalar.functionFieldScalarAlgebra (i ≫ f) |
| 113 | Algebra.trdeg k Z.functionField ≤ Algebra.trdeg k X.functionField := by |
| 114 | let z := Classical.choice hV |
| 115 | let : Nonempty U := ⟨⟨i z.val, z.property⟩⟩ |
| 116 | let := SpecScalarTransport.specSectionScalarAlgebra f U |
| 117 | let := SpecScalarTransport.specSectionScalarAlgebra (i ≫ f) (i ⁻¹ᵁ U) |
| 118 | let := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 119 | let := FunctionFieldScalar.functionFieldScalarAlgebra (i ≫ f) |
| 120 | let := FunctionFieldScalar.functionFieldScalar_isScalarTower f U |
| 121 | let := FunctionFieldScalar.functionFieldScalar_isScalarTower (i ≫ f) (i ⁻¹ᵁ U) |
| 122 | let := functionField_isFractionRing_of_isAffineOpen X U hU |
| 123 | let := functionField_isFractionRing_of_isAffineOpen Z (i ⁻¹ᵁ U) (hU.preimage i) |
| 124 | exact fractionField_trdeg_le_of_surjective_algHom k |
| 125 | (KA := X.functionField) (KB := Z.functionField) |
| 126 | (sectionPullbackAlgHom i f U) (sectionPullbackAlgHom_surjective i f U hU) |
| 127 | |
| 128 | /-- A closed immersion between integral schemes cannot increase the |
| 129 | transcendence degree of the actual function field over the given scalar field. |
| 130 | The proof uses an affine chart around the image of the source generic point. -/ |
| 131 | theorem closedImmersion_functionField_trdeg_le |
| 132 | {k : Type u} [Field k] {Z X : Scheme.{u}} [IsIntegral Z] [IsIntegral X] |
| 133 | (i : Z ⟶ X) [IsClosedImmersion i] (f : X ⟶ Spec (.of k)) : |
| 134 | let := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 135 | let := FunctionFieldScalar.functionFieldScalarAlgebra (i ≫ f) |
| 136 | Algebra.trdeg k Z.functionField ≤ Algebra.trdeg k X.functionField := by |
| 137 | let z := genericPoint Z |
| 138 | let U : X.Opens := (X.affineCover.f (X.affineCover.idx (i z))).opensRange |
| 139 | have hU : IsAffineOpen U := isAffineOpen_opensRange (X.affineCover.f _) |
| 140 | let : Nonempty (i ⁻¹ᵁ U) := ⟨⟨z, X.affineCover.covers (i z)⟩⟩ |
| 141 | exact closedImmersion_functionField_trdeg_le_of_affineOpen i f U hU |
| 142 | |
| 143 | end |
| 144 | |
| 145 | end OAI.AlgebraicGeometry.Foundations.Scheme.ClosedImmersionDimension |