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.TranscendenceDimension |
| 2 | |
| 3 | /-! # Open Function Field -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.OpenFunctionField |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Function fields and dimensions under nonempty open immersions |
| 11 | |
| 12 | The function-field isomorphism is the actual stalk isomorphism of the open |
| 13 | immersion at the generic point, transported along the proved equality of |
| 14 | generic points. Its compatibility with scalar constants is proved from the |
| 15 | germ/stalk-map identity. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {Y X : Scheme.{u}} [IrreducibleSpace Y] [IrreducibleSpace X] |
| 23 | |
| 24 | /-- An open immersion identifies the actual generic stalks. -/ |
| 25 | def openImmersionFunctionFieldIso (i : Y ⟶ X) [IsOpenImmersion i] : |
| 26 | X.functionField ≅ Y.functionField := |
| 27 | X.presheaf.stalkCongr |
| 28 | (Inseparable.of_eq (genericPoint_eq_of_isOpenImmersion i).symm) ≪≫ |
| 29 | asIso (i.stalkMap (genericPoint Y)) |
| 30 | |
| 31 | set_option backward.isDefEq.respectTransparency.types false in |
| 32 | /-- The generic-stalk isomorphism commutes with taking germs of global sections. -/ |
| 33 | theorem openImmersionFunctionFieldIso_germ (i : Y ⟶ X) [IsOpenImmersion i] : |
| 34 | X.presheaf.germ ⊤ (genericPoint X) (by trivial) ≫ (openImmersionFunctionFieldIso i).hom = |
| 35 | i.appTop ≫ Y.presheaf.germ ⊤ (genericPoint Y) (by trivial) := by |
| 36 | simp only [openImmersionFunctionFieldIso, Iso.trans_hom, |
| 37 | TopCat.Presheaf.stalkCongr_hom, asIso_hom, ← Category.assoc] |
| 38 | rw [TopCat.Presheaf.germ_stalkSpecializes] |
| 39 | exact i.germ_stalkMap ⊤ (genericPoint Y) (by trivial) |
| 40 | |
| 41 | /-- Compatibility with the original global-functions base map is a genuine |
| 42 | consequence of functoriality of pullback and of germs. -/ |
| 43 | theorem openImmersionFunctionFieldIso_base {S : Scheme.{u}} |
| 44 | (i : Y ⟶ X) [IsOpenImmersion i] (f : X ⟶ S) : |
| 45 | Betti.AffineDimension.Realization.functionFieldBaseMap f ≫ (openImmersionFunctionFieldIso i).hom = |
| 46 | Betti.AffineDimension.Realization.functionFieldBaseMap (i ≫ f) := by |
| 47 | simp only [Betti.AffineDimension.Realization.functionFieldBaseMap, Scheme.Hom.comp_appTop, Category.assoc] |
| 48 | rw [openImmersionFunctionFieldIso_germ] |
| 49 | |
| 50 | variable {K : Type u} [Field K] |
| 51 | |
| 52 | /-- The generic-stalk isomorphism respects the canonical scalar map. -/ |
| 53 | theorem openImmersionFunctionFieldIso_scalar |
| 54 | (i : Y ⟶ X) [IsOpenImmersion i] (f : X ⟶ Spec (.of K)) : |
| 55 | (openImmersionFunctionFieldIso i).hom.hom.comp (FunctionFieldScalar.functionFieldScalarMap f) = |
| 56 | FunctionFieldScalar.functionFieldScalarMap (i ≫ f) := by |
| 57 | exact congrArg |
| 58 | (fun g : Γ(Spec (.of K), ⊤) ⟶ Y.functionField => |
| 59 | g.hom.comp (Scheme.ΓSpecIso (.of K)).inv.hom) |
| 60 | (openImmersionFunctionFieldIso_base i f) |
| 61 | |
| 62 | /-- An actual open immersion induces an isomorphism of the canonical scalar algebras. -/ |
| 63 | def openImmersionFunctionFieldAlgEquiv |
| 64 | (i : Y ⟶ X) [IsOpenImmersion i] (f : X ⟶ Spec (.of K)) : |
| 65 | letI := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 66 | letI := FunctionFieldScalar.functionFieldScalarAlgebra (i ≫ f) |
| 67 | X.functionField ≃ₐ[K] Y.functionField := by |
| 68 | let := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 69 | let := FunctionFieldScalar.functionFieldScalarAlgebra (i ≫ f) |
| 70 | refine { (openImmersionFunctionFieldIso i).commRingCatIsoToRingEquiv with |
| 71 | commutes' := ?_ } |
| 72 | intro c |
| 73 | exact DFunLike.congr_fun (openImmersionFunctionFieldIso_scalar i f) c |
| 74 | |
| 75 | variable [IsIntegral Y] [IsIntegral X] |
| 76 | |
| 77 | /-- Nonempty open immersions preserve the canonical transcendence dimension. |
| 78 | No finite-type assumption is needed for the equality of these cardinal-to-natural values. -/ |
| 79 | theorem schemeTranscendenceDimension_openImmersion |
| 80 | (i : Y ⟶ X) [IsOpenImmersion i] (f : X ⟶ Spec (.of K)) : |
| 81 | TranscendenceDimension.schemeTranscendenceDimension (i ≫ f) = TranscendenceDimension.schemeTranscendenceDimension f := by |
| 82 | let := FunctionFieldScalar.functionFieldScalarAlgebra f |
| 83 | let := FunctionFieldScalar.functionFieldScalarAlgebra (i ≫ f) |
| 84 | exact congrArg Cardinal.toNat (openImmersionFunctionFieldAlgEquiv i f).trdeg_eq.symm |
| 85 | |
| 86 | /-- In particular, restricting to any nonempty actual open subscheme preserves dimension. -/ |
| 87 | theorem schemeTranscendenceDimension_open (f : X ⟶ Spec (.of K)) |
| 88 | (U : X.Opens) [Nonempty U] : |
| 89 | TranscendenceDimension.schemeTranscendenceDimension (U.ι ≫ f) = TranscendenceDimension.schemeTranscendenceDimension f := |
| 90 | schemeTranscendenceDimension_openImmersion U.ι f |
| 91 | |
| 92 | end |
| 93 | |
| 94 | end OAI.AlgebraicGeometry.Foundations.Scheme.OpenFunctionField |