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.AffineComplexPoints |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace |
| 3 | |
| 4 | /-! # Affine Scheme Complex Points -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.AffineSchemeComplexPoints |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Complex points of an affine scheme and its global sections |
| 12 | |
| 13 | The algebra on global sections and the isomorphism with their spectrum are the |
| 14 | canonical mathlib constructions over the given complex structure morphism. |
| 15 | -/ |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 20 | |
| 21 | /-- The global-section algebra induced by the specified complex structure map. -/ |
| 22 | instance affineOverGammaAlgebra (X : Over ProjectiveSpace.complexBase) [IsAffine X.left] : |
| 23 | Algebra ℂ Γ(X.left, ⊤) := |
| 24 | (Spec.preimage (X.left.isoSpec.inv ≫ X.hom)).hom.toAlgebra |
| 25 | |
| 26 | /-- An affine complex scheme is isomorphic over `Spec ℂ` to the spectrum of its |
| 27 | actual global-section algebra. -/ |
| 28 | def affineOverIso (X : Over ProjectiveSpace.complexBase) [IsAffine X.left] : |
| 29 | X ≅ AffineComplexPoints.affineSchemeOver ℂ Γ(X.left, ⊤) := |
| 30 | Over.isoMk X.left.isoSpec (by |
| 31 | change X.left.isoSpec.hom ≫ |
| 32 | Spec.map (CommRingCat.ofHom (algebraMap ℂ Γ(X.left, ⊤))) = X.hom |
| 33 | change X.left.isoSpec.hom ≫ Spec.map (Spec.preimage (X.left.isoSpec.inv ≫ X.hom)) = X.hom |
| 34 | simp) |
| 35 | |
| 36 | @[simp] |
| 37 | theorem affineOverIso_hom_left (X : Over ProjectiveSpace.complexBase) [IsAffine X.left] : |
| 38 | (affineOverIso X).hom.left = X.left.isoSpec.hom := rfl |
| 39 | |
| 40 | @[simp] |
| 41 | theorem affineOverIso_inv_left (X : Over ProjectiveSpace.complexBase) [IsAffine X.left] : |
| 42 | (affineOverIso X).inv.left = X.left.isoSpec.inv := rfl |
| 43 | |
| 44 | /-- Native relative complex points of an affine scheme are exactly the |
| 45 | complex-algebra characters of its global sections. -/ |
| 46 | def affineNativePointEquiv (X : Over ProjectiveSpace.complexBase) [IsAffine X.left] : |
| 47 | (Over.mk (𝟙 ProjectiveSpace.complexBase) ⟶ X) ≃ AffineComplexPoints.affineComplexPoints Γ(X.left, ⊤) where |
| 48 | toFun p := (AffineComplexPoints.affineComplexPointsOverEquiv Γ(X.left, ⊤)).symm |
| 49 | (p ≫ (affineOverIso X).hom) |
| 50 | invFun x := AffineComplexPoints.affineComplexPointsOverEquiv Γ(X.left, ⊤) x ≫ (affineOverIso X).inv |
| 51 | left_inv p := by simp |
| 52 | right_inv x := by simp |
| 53 | |
| 54 | @[simp] |
| 55 | theorem affineNativePointEquiv_symm_left (X : Over ProjectiveSpace.complexBase) [IsAffine X.left] |
| 56 | (x : AffineComplexPoints.affineComplexPoints Γ(X.left, ⊤)) : |
| 57 | ((affineNativePointEquiv X).symm x).left = |
| 58 | Spec.map (CommRingCat.ofHom x.toRingHom) ≫ X.left.isoSpec.inv := by |
| 59 | change (AffineComplexPoints.affineComplexPointsOverEquiv Γ(X.left, ⊤) x).left ≫ X.left.isoSpec.inv = _ |
| 60 | rw [AffineComplexPoints.affineComplexPointsOverEquiv_left] |
| 61 | |
| 62 | /-- The character corresponding to a native point has the usual spectrum map. -/ |
| 63 | theorem affineNativePointEquiv_spec (X : Over ProjectiveSpace.complexBase) [IsAffine X.left] |
| 64 | (p : Over.mk (𝟙 ProjectiveSpace.complexBase) ⟶ X) : |
| 65 | Spec.map (CommRingCat.ofHom (affineNativePointEquiv X p).toRingHom) = |
| 66 | p.left ≫ X.left.isoSpec.hom := by |
| 67 | change Spec.map (CommRingCat.ofHom |
| 68 | ((AffineComplexPoints.affineComplexPointsOverEquiv Γ(X.left, ⊤)).symm |
| 69 | (p ≫ (affineOverIso X).hom)).toRingHom) = _ |
| 70 | rw [← AffineComplexPoints.affineComplexPointsOverEquiv_left, Equiv.apply_symm_apply] |
| 71 | rfl |
| 72 | |
| 73 | /-- Pullback on global sections, bundled as a complex-algebra homomorphism. -/ |
| 74 | def affineAppTopAlgHom {X Y : Over ProjectiveSpace.complexBase} [IsAffine X.left] [IsAffine Y.left] |
| 75 | (f : X ⟶ Y) : Γ(Y.left, ⊤) →ₐ[ℂ] Γ(X.left, ⊤) := |
| 76 | (AffineComplexPoints.affineAlgHomOverSpecEquiv ℂ Γ(Y.left, ⊤) Γ(X.left, ⊤)).symm |
| 77 | ((affineOverIso X).inv ≫ f ≫ (affineOverIso Y).hom) |
| 78 | |
| 79 | /-- The coordinate homomorphism gives precisely the conjugated scheme morphism. -/ |
| 80 | theorem affineAppTopAlgHom_over {X Y : Over ProjectiveSpace.complexBase} |
| 81 | [IsAffine X.left] [IsAffine Y.left] (f : X ⟶ Y) : |
| 82 | AffineComplexPoints.affineAlgHomOverSpecEquiv ℂ Γ(Y.left, ⊤) Γ(X.left, ⊤) (affineAppTopAlgHom f) = |
| 83 | (affineOverIso X).inv ≫ f ≫ (affineOverIso Y).hom := |
| 84 | (AffineComplexPoints.affineAlgHomOverSpecEquiv ℂ Γ(Y.left, ⊤) Γ(X.left, ⊤)).apply_symm_apply _ |
| 85 | |
| 86 | /-- This algebra homomorphism really is the existing pullback on global sections. -/ |
| 87 | theorem affineAppTopAlgHom_toRingHom {X Y : Over ProjectiveSpace.complexBase} |
| 88 | [IsAffine X.left] [IsAffine Y.left] (f : X ⟶ Y) : |
| 89 | (affineAppTopAlgHom f).toRingHom = f.left.appTop.hom := by |
| 90 | have h := congrArg Over.Hom.left (affineAppTopAlgHom_over f) |
| 91 | have hs : Spec.map (CommRingCat.ofHom (affineAppTopAlgHom f).toRingHom) = |
| 92 | Spec.map f.left.appTop := by |
| 93 | calc |
| 94 | _ = X.left.isoSpec.inv ≫ f.left ≫ Y.left.isoSpec.hom := by |
| 95 | simpa only [AffineComplexPoints.affineAlgHomOverSpecEquiv_left, Over.comp_left, |
| 96 | affineOverIso_inv_left, affineOverIso_hom_left] using h |
| 97 | _ = _ := by |
| 98 | rw [← Scheme.isoSpec_hom_naturality f.left] |
| 99 | simp |
| 100 | exact congrArg CommRingCat.Hom.hom (Spec.map_injective hs) |
| 101 | |
| 102 | @[simp] |
| 103 | theorem affineAppTopAlgHom_apply {X Y : Over ProjectiveSpace.complexBase} |
| 104 | [IsAffine X.left] [IsAffine Y.left] (f : X ⟶ Y) (a : Γ(Y.left, ⊤)) : |
| 105 | affineAppTopAlgHom f a = f.left.appTop a := |
| 106 | congrArg (fun h : Γ(Y.left, ⊤) →+* Γ(X.left, ⊤) => h a) |
| 107 | (affineAppTopAlgHom_toRingHom f) |
| 108 | |
| 109 | /-- Evaluating the character of a scheme point is pullback of the section, |
| 110 | followed by the canonical identification of sections of `Spec ℂ` with `ℂ`. -/ |
| 111 | theorem affineNativePointEquiv_toRingHom (X : Over ProjectiveSpace.complexBase) [IsAffine X.left] |
| 112 | (p : Over.mk (𝟙 ProjectiveSpace.complexBase) ⟶ X) : |
| 113 | (affineNativePointEquiv X p).toRingHom = |
| 114 | (p.left.appTop ≫ (Scheme.ΓSpecIso (CommRingCat.of ℂ)).hom).hom := by |
| 115 | have hcat : (CommRingCat.ofHom (affineNativePointEquiv X p).toRingHom : |
| 116 | Γ(X.left, ⊤) ⟶ CommRingCat.of ℂ) = |
| 117 | p.left.appTop ≫ (Scheme.ΓSpecIso (CommRingCat.of ℂ)).hom := by |
| 118 | apply (cancel_epi (Scheme.ΓSpecIso Γ(X.left, ⊤)).hom).mp |
| 119 | rw [← Scheme.ΓSpecIso_naturality, affineNativePointEquiv_spec] |
| 120 | simp only [Scheme.Hom.comp_appTop, Scheme.isoSpec_hom, |
| 121 | Scheme.toSpecΓ_appTop, Category.assoc] |
| 122 | exact congrArg CommRingCat.Hom.hom hcat |
| 123 | |
| 124 | theorem affineNativePointEquiv_eval (X : Over ProjectiveSpace.complexBase) [IsAffine X.left] |
| 125 | (p : Over.mk (𝟙 ProjectiveSpace.complexBase) ⟶ X) (a : Γ(X.left, ⊤)) : |
| 126 | affineNativePointEquiv X p a = |
| 127 | (Scheme.ΓSpecIso (CommRingCat.of ℂ)).hom (p.left.appTop a) := |
| 128 | congrArg (fun h : Γ(X.left, ⊤) →+* ℂ => h a) (affineNativePointEquiv_toRingHom X p) |
| 129 | |
| 130 | /-- The native-point/global-section correspondence is natural in affine |
| 131 | complex schemes. -/ |
| 132 | theorem affineNativePointEquiv_natural {X Y : Over ProjectiveSpace.complexBase} |
| 133 | [IsAffine X.left] [IsAffine Y.left] (f : X ⟶ Y) |
| 134 | (p : Over.mk (𝟙 ProjectiveSpace.complexBase) ⟶ X) : |
| 135 | affineNativePointEquiv Y (p ≫ f) = |
| 136 | (affineNativePointEquiv X p).comp (affineAppTopAlgHom f) := by |
| 137 | ext a |
| 138 | simp only [AlgHom.comp_apply, affineNativePointEquiv_eval, |
| 139 | affineAppTopAlgHom_apply, Over.comp_left, Scheme.Hom.comp_appTop, CommRingCat.comp_apply] |
| 140 | |
| 141 | end |
| 142 | |
| 143 | end OAI.AlgebraicGeometry.Foundations.Scheme.AffineSchemeComplexPoints |