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.AbelianModuli.HilbertConstruction.EtaleCotangentCriterion |
| 2 | import Mathlib.RingTheory.LocalRing.Module |
| 3 | import Mathlib.RingTheory.Filtration |
| 4 | import Mathlib.LinearAlgebra.Dimension.Free |
| 5 | import Mathlib.LinearAlgebra.Dual.Lemmas |
| 6 | |
| 7 | /-! # Quotient Criterion -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Smooth.QuotientCriterion |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A smooth quotient of a local noetherian algebra cannot retain |
| 14 | the same tangent dimension unless the quotient is an isomorphism. |
| 15 | The argument uses the actual map on differentials and Nakayama's lemma, |
| 16 | so it also detects nilpotents in the original algebra. -/ |
| 17 | |
| 18 | open scoped TensorProduct |
| 19 | |
| 20 | theorem localModule_injective_of_residue_finrank_le |
| 21 | {R M N : Type*} [CommRing R] [IsLocalRing R] |
| 22 | [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] |
| 23 | [Module.Finite R M] [Module.Finite R N] [Module.Free R N] |
| 24 | (f : M →ₗ[R] N) (hf : Function.Surjective f) |
| 25 | (hd : Module.finrank (IsLocalRing.ResidueField R) (IsLocalRing.ResidueField R ⊗[R] M) ≤ |
| 26 | Module.finrank (IsLocalRing.ResidueField R) (IsLocalRing.ResidueField R ⊗[R] N)) : |
| 27 | Function.Injective f := by |
| 28 | let k := IsLocalRing.ResidueField R |
| 29 | have hbase : Function.Injective (f.baseChange k) := |
| 30 | (OrzechProperty.bijective_of_surjective_of_finrank_le |
| 31 | (f.baseChange k) (f.lTensor_surjective k hf) hd).injective |
| 32 | obtain ⟨g, hg⟩ := |
| 33 | (IsLocalRing.split_injective_iff_lTensor_residueField_injective f).mpr hbase |
| 34 | exact Function.HasLeftInverse.injective ⟨g, LinearMap.congr_fun hg⟩ |
| 35 | |
| 36 | /-- Coefficient-valued derivations are the dual of the actual fiber of |
| 37 | the module of differentials, with the original coefficient scalar action. -/ |
| 38 | def coefficientDifferentialDualEquiv |
| 39 | (k A C : Type*) [CommRing k] [CommRing A] [CommRing C] |
| 40 | [Algebra k A] [Algebra k C] [Algebra A C] [IsScalarTower k A C] : |
| 41 | (C ⊗[A] Ω[A⁄k] →ₗ[C] C) ≃ₗ[C] Derivation k A C := by |
| 42 | let e : (Ω[A⁄k] →ₗ[A] C) ≃ₗ[C] Derivation k A C := |
| 43 | { (KaehlerDifferential.linearMapEquivDerivation k A).toEquiv with |
| 44 | map_add' f g := (KaehlerDifferential.linearMapEquivDerivation k A).map_add f g |
| 45 | map_smul' c f := by |
| 46 | apply Derivation.ext |
| 47 | intro a |
| 48 | rfl } |
| 49 | exact (LinearMap.liftBaseChangeEquiv C).symm.trans e |
| 50 | |
| 51 | theorem coefficientDifferential_finrank_eq_derivations |
| 52 | (k A F : Type*) [CommRing k] [CommRing A] [Field F] |
| 53 | [Algebra k A] [Algebra k F] [Algebra A F] [IsScalarTower k A F] : |
| 54 | Module.finrank F (F ⊗[A] Ω[A⁄k]) = Module.finrank F (Derivation k A F) := by |
| 55 | rw [← Subspace.dual_finrank_eq] |
| 56 | exact (coefficientDifferentialDualEquiv k A F).finrank_eq |
| 57 | |
| 58 | section General |
| 59 | |
| 60 | variable (k A B : Type*) [CommRing k] [CommRing A] [CommRing B] |
| 61 | [Algebra k A] [Algebra k B] [Algebra A B] [IsScalarTower k A B] |
| 62 | [IsLocalRing B] [Algebra.EssFiniteType k A] [Algebra.EssFiniteType k B] |
| 63 | [Algebra.FormallySmooth k B] |
| 64 | (hAB : Function.Surjective (algebraMap A B)) |
| 65 | (hd : Module.finrank (IsLocalRing.ResidueField B) |
| 66 | (IsLocalRing.ResidueField B ⊗[B] (B ⊗[A] Ω[A⁄k])) ≤ |
| 67 | Module.finrank (IsLocalRing.ResidueField B) |
| 68 | (IsLocalRing.ResidueField B ⊗[B] Ω[B⁄k])) |
| 69 | |
| 70 | include hAB hd in |
| 71 | theorem smoothQuotient_cotangent_injective : |
| 72 | Function.Injective (KaehlerDifferential.mapBaseChange k A B) := by |
| 73 | let : Module.Free B Ω[B⁄k] := Module.free_of_flat_of_isLocalRing |
| 74 | exact localModule_injective_of_residue_finrank_le |
| 75 | (KaehlerDifferential.mapBaseChange k A B) |
| 76 | (KaehlerDifferential.mapBaseChange_surjective k A B hAB) hd |
| 77 | |
| 78 | include hAB hd in |
| 79 | theorem smoothQuotient_formallyEtale : Algebra.FormallyEtale A B := by |
| 80 | let : Algebra.FormallyUnramified A B := |
| 81 | Algebra.FormallyUnramified.of_surjective (Algebra.ofId A B) hAB |
| 82 | exact HilbertConstruction.EtaleCotangentCriterion.formallyEtale_of_cotangent_injective k A B |
| 83 | (smoothQuotient_cotangent_injective k A B hAB hd) |
| 84 | |
| 85 | include hAB hd in |
| 86 | theorem smoothQuotient_algebraMap_bijective [IsLocalRing A] [IsNoetherianRing A] : |
| 87 | Function.Bijective (algebraMap A B) := by |
| 88 | have hE := smoothQuotient_formallyEtale k A B hAB hd |
| 89 | have hI := (Algebra.FormallyEtale.iff_of_surjective hAB).mp hE |
| 90 | have hzero : RingHom.ker (algebraMap A B) = ⊥ := |
| 91 | ((Ideal.isIdempotentElem_iff_eq_bot_or_top_of_isLocalRing _).mp hI).resolve_right |
| 92 | (RingHom.ker_ne_top (algebraMap A B)) |
| 93 | exact ⟨(RingHom.injective_iff_ker_eq_bot _).mpr hzero, hAB⟩ |
| 94 | |
| 95 | include hAB hd in |
| 96 | theorem smoothQuotient_source_formallySmooth [IsLocalRing A] [IsNoetherianRing A] : |
| 97 | Algebra.FormallySmooth k A := by |
| 98 | let e : A ≃ₐ[k] B := AlgEquiv.ofBijective (IsScalarTower.toAlgHom k A B) |
| 99 | (smoothQuotient_algebraMap_bijective k A B hAB hd) |
| 100 | exact Algebra.FormallySmooth.of_equiv e.symm |
| 101 | |
| 102 | include hAB in |
| 103 | theorem smoothQuotient_source_formallySmooth_of_derivations |
| 104 | [IsLocalRing A] [IsNoetherianRing A] |
| 105 | (hderiv : Module.finrank (IsLocalRing.ResidueField B) |
| 106 | (Derivation k A (IsLocalRing.ResidueField B)) ≤ |
| 107 | Module.finrank (IsLocalRing.ResidueField B) |
| 108 | (Derivation k B (IsLocalRing.ResidueField B))) : |
| 109 | Algebra.FormallySmooth k A := by |
| 110 | apply smoothQuotient_source_formallySmooth k A B hAB |
| 111 | calc |
| 112 | _ = Module.finrank (IsLocalRing.ResidueField B) |
| 113 | (IsLocalRing.ResidueField B ⊗[A] Ω[A⁄k]) := |
| 114 | (TensorProduct.AlgebraTensorModule.cancelBaseChange A B |
| 115 | (IsLocalRing.ResidueField B) (IsLocalRing.ResidueField B) Ω[A⁄k]).finrank_eq |
| 116 | _ = Module.finrank (IsLocalRing.ResidueField B) |
| 117 | (Derivation k A (IsLocalRing.ResidueField B)) := |
| 118 | coefficientDifferential_finrank_eq_derivations k A (IsLocalRing.ResidueField B) |
| 119 | _ ≤ Module.finrank (IsLocalRing.ResidueField B) |
| 120 | (Derivation k B (IsLocalRing.ResidueField B)) := hderiv |
| 121 | _ = _ := (coefficientDifferential_finrank_eq_derivations k B |
| 122 | (IsLocalRing.ResidueField B)).symm |
| 123 | |
| 124 | end General |
| 125 | |
| 126 | /-- An augmentation of a local algebra identifies residue-field tensor |
| 127 | dimension with tensor dimension over the original coefficient field. -/ |
| 128 | theorem augmentedResidueTensor_finrank |
| 129 | (k B V : Type*) [Field k] [CommRing B] [IsLocalRing B] |
| 130 | [Algebra k B] [Algebra B k] [IsScalarTower k B k] |
| 131 | [AddCommGroup V] [Module B V] [Module.Finite B V] : |
| 132 | Module.finrank (IsLocalRing.ResidueField B) (IsLocalRing.ResidueField B ⊗[B] V) = |
| 133 | Module.finrank k (k ⊗[B] V) := by |
| 134 | have hs : Function.Surjective (algebraMap B k) := by |
| 135 | intro c |
| 136 | refine ⟨algebraMap k B c, ?_⟩ |
| 137 | simpa using (IsScalarTower.algebraMap_apply k B k c).symm |
| 138 | have hker := IsLocalRing.ker_eq_maximalIdeal (algebraMap B k) hs |
| 139 | let e : IsLocalRing.ResidueField B ≃ₐ[B] k := |
| 140 | (Ideal.quotientEquivAlgOfEq B hker.symm).trans |
| 141 | (Ideal.quotientKerAlgEquivOfSurjective (f := Algebra.ofId B k) hs) |
| 142 | let : Algebra (IsLocalRing.ResidueField B) k := e.toRingHom.toAlgebra |
| 143 | let : IsScalarTower B (IsLocalRing.ResidueField B) k := |
| 144 | IsScalarTower.of_algebraMap_eq (fun b => (e.commutes b).symm) |
| 145 | have h := (TensorProduct.AlgebraTensorModule.cancelBaseChange B |
| 146 | (IsLocalRing.ResidueField B) k k V).finrank_eq |
| 147 | rw [Module.finrank_baseChange] at h |
| 148 | exact h |
| 149 | |
| 150 | /-- A smooth augmented quotient with no smaller tangent space is the |
| 151 | original local algebra itself, including its possible nilpotents. -/ |
| 152 | theorem augmentedSmoothQuotient_algebraMap_bijective |
| 153 | (k A B : Type*) [Field k] [CommRing A] [CommRing B] |
| 154 | [Algebra k A] [Algebra k B] [Algebra A B] [IsScalarTower k A B] |
| 155 | [Algebra A k] [Algebra B k] [IsScalarTower k A k] |
| 156 | [IsScalarTower k B k] [IsScalarTower A B k] |
| 157 | [IsLocalRing A] [IsNoetherianRing A] [IsLocalRing B] |
| 158 | [Algebra.EssFiniteType k A] [Algebra.EssFiniteType k B] |
| 159 | [Algebra.FormallySmooth k B] |
| 160 | (hAB : Function.Surjective (algebraMap A B)) |
| 161 | (hderiv : Module.finrank k (Derivation k A k) ≤ Module.finrank k (Derivation k B k)) : |
| 162 | Function.Bijective (algebraMap A B) := by |
| 163 | apply smoothQuotient_algebraMap_bijective k A B hAB |
| 164 | calc |
| 165 | _ = Module.finrank k (k ⊗[B] (B ⊗[A] Ω[A⁄k])) := |
| 166 | augmentedResidueTensor_finrank k B (B ⊗[A] Ω[A⁄k]) |
| 167 | _ = Module.finrank k (k ⊗[A] Ω[A⁄k]) := |
| 168 | (TensorProduct.AlgebraTensorModule.cancelBaseChange A B k k Ω[A⁄k]).finrank_eq |
| 169 | _ = Module.finrank k (Derivation k A k) := |
| 170 | coefficientDifferential_finrank_eq_derivations k A k |
| 171 | _ ≤ Module.finrank k (Derivation k B k) := hderiv |
| 172 | _ = Module.finrank k (k ⊗[B] Ω[B⁄k]) := |
| 173 | (coefficientDifferential_finrank_eq_derivations k B k).symm |
| 174 | _ = _ := (augmentedResidueTensor_finrank k B Ω[B⁄k]).symm |
| 175 | |
| 176 | /-- A local noetherian algebra with a smooth augmented quotient is |
| 177 | formally smooth when its coefficient-valued tangent space is no larger |
| 178 | than that quotient's tangent space. -/ |
| 179 | theorem augmentedSmoothQuotient_source_formallySmooth |
| 180 | (k A B : Type*) [Field k] [CommRing A] [CommRing B] |
| 181 | [Algebra k A] [Algebra k B] [Algebra A B] [IsScalarTower k A B] |
| 182 | [Algebra A k] [Algebra B k] [IsScalarTower k A k] |
| 183 | [IsScalarTower k B k] [IsScalarTower A B k] |
| 184 | [IsLocalRing A] [IsNoetherianRing A] [IsLocalRing B] |
| 185 | [Algebra.EssFiniteType k A] [Algebra.EssFiniteType k B] |
| 186 | [Algebra.FormallySmooth k B] |
| 187 | (hAB : Function.Surjective (algebraMap A B)) |
| 188 | (hderiv : Module.finrank k (Derivation k A k) ≤ Module.finrank k (Derivation k B k)) : |
| 189 | Algebra.FormallySmooth k A := by |
| 190 | let e : A ≃ₐ[k] B := AlgEquiv.ofBijective (IsScalarTower.toAlgHom k A B) |
| 191 | (augmentedSmoothQuotient_algebraMap_bijective k A B hAB hderiv) |
| 192 | exact Algebra.FormallySmooth.of_equiv e.symm |
| 193 | |
| 194 | end |
| 195 | |
| 196 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Smooth.QuotientCriterion |