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.ReferenceFamily.DualOpen.Lifts |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Intrinsic.AffineDualPoints |
| 3 | import OAI.AlgebraicGeometry.Foundations.Scheme.AffineComplexPoints |
| 4 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.AffineOpenDifferential |
| 5 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.AffineOverlap |
| 6 | |
| 7 | /-! # Dual Open -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Affine.DualOpen |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! The actual relative Spec equivalence identifies algebra dual-number |
| 16 | points with scheme dual-number points and preserves their reduction. -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry OAI.AlgebraicGeometry.Foundations.Scheme.AffineComplexPoints |
| 19 | |
| 20 | variable {S : Type} [CommRing S] [Algebra ℂ S] |
| 21 | |
| 22 | def affineDualSchemeMap (f : S →ₐ[ℂ] DualNumber ℂ) : LieRanks.dualNumberTest ℂ ⟶ Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ S := |
| 23 | Foundations.Scheme.AffineComplexPoints.affineAlgHomOverSpecEquiv ℂ S (DualNumber ℂ) f |
| 24 | |
| 25 | theorem affineDualSchemeMap_reduction (f : S →ₐ[ℂ] DualNumber ℂ) : |
| 26 | LieRanks.dualNumberOrigin ℂ ≫ affineDualSchemeMap f = |
| 27 | Foundations.Scheme.AffineComplexPoints.affineComplexPointsOverEquiv S ((TrivSqZeroExt.fstHom ℂ ℂ ℂ).comp f) := by |
| 28 | apply Over.OverMorphism.ext |
| 29 | rw [Foundations.Scheme.AffineComplexPoints.affineComplexPointsOverEquiv_left] |
| 30 | change Spec.map (CommRingCat.ofHom (LieRanks.dualNumberReduction ℂ)) ≫ |
| 31 | Spec.map (CommRingCat.ofHom f.toRingHom) = _ |
| 32 | rw [← Spec.map_comp] |
| 33 | rfl |
| 34 | |
| 35 | def affineDualSchemeEquiv (x : S →ₐ[ℂ] ℂ) : |
| 36 | Dual.PresentedAlgebra.DualAlgebraPoints x ≃ DualOpen.Lifts.DualSchemePoints (Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ S) (Foundations.Scheme.AffineComplexPoints.affineComplexPointsOverEquiv S x) where |
| 37 | toFun f := ⟨affineDualSchemeMap f.val, (affineDualSchemeMap_reduction f.val).trans |
| 38 | (congrArg (Foundations.Scheme.AffineComplexPoints.affineComplexPointsOverEquiv S) f.property)⟩ |
| 39 | invFun f := ⟨(Foundations.Scheme.AffineComplexPoints.affineAlgHomOverSpecEquiv ℂ S (DualNumber ℂ)).symm f.val, by |
| 40 | apply (Foundations.Scheme.AffineComplexPoints.affineComplexPointsOverEquiv S).injective |
| 41 | have hf : affineDualSchemeMap ((Foundations.Scheme.AffineComplexPoints.affineAlgHomOverSpecEquiv ℂ S (DualNumber ℂ)).symm f.val) = f.val := |
| 42 | (Foundations.Scheme.AffineComplexPoints.affineAlgHomOverSpecEquiv ℂ S (DualNumber ℂ)).apply_symm_apply f.val |
| 43 | exact (affineDualSchemeMap_reduction _).symm.trans |
| 44 | ((congrArg (fun g => LieRanks.dualNumberOrigin ℂ ≫ g) hf).trans f.property)⟩ |
| 45 | left_inv f := Subtype.ext ((Foundations.Scheme.AffineComplexPoints.affineAlgHomOverSpecEquiv ℂ S (DualNumber ℂ)).symm_apply_apply f.val) |
| 46 | right_inv f := Subtype.ext ((Foundations.Scheme.AffineComplexPoints.affineAlgHomOverSpecEquiv ℂ S (DualNumber ℂ)).apply_symm_apply f.val) |
| 47 | |
| 48 | theorem affineDualSchemeMap_comp {T : Type} [CommRing T] [Algebra ℂ T] |
| 49 | (h : S →ₐ[ℂ] T) (f : T →ₐ[ℂ] DualNumber ℂ) : |
| 50 | affineDualSchemeMap (f.comp h) = |
| 51 | affineDualSchemeMap f ≫ Foundations.Scheme.AffineComplexPoints.affineAlgHomOverSpecEquiv ℂ S T h := by |
| 52 | apply Over.OverMorphism.ext |
| 53 | change Spec.map (CommRingCat.ofHom (f.comp h).toRingHom) = |
| 54 | Spec.map (CommRingCat.ofHom f.toRingHom) ≫ Spec.map (CommRingCat.ofHom h.toRingHom) |
| 55 | rw [← Spec.map_comp] |
| 56 | rfl |
| 57 | |
| 58 | end |
| 59 | |
| 60 | section |
| 61 | |
| 62 | /-! An actual affine open immersion transports the native tangent |
| 63 | comparison to scheme-valued dual-number points. -/ |
| 64 | |
| 65 | open _root_.CategoryTheory _root_.AlgebraicGeometry OAI.AlgebraicGeometry.Foundations.Scheme.AffineComplexPoints OAI.AlgebraicGeometry.ComplexPoints.Analytic.AffineOpenDifferential |
| 66 | open scoped _root_.Manifold ContDiff |
| 67 | |
| 68 | variable {X : Over Foundations.Scheme.ProjectiveSpace.complexBase} [IsIntegral X.left] [Smooth X.hom] |
| 69 | (A : CommAlgCat ℂ) [IsDomain A] [Algebra.Smooth ℂ A] |
| 70 | |
| 71 | local notation "ModelA" => (Fin (OAI.AlgebraicGeometry.Foundations.Scheme.SmoothDomainDimension.Algebraic.genericDifferentialRank ℂ A) → ℂ) |
| 72 | local notation "ModelX" => (Fin (OAI.AlgebraicGeometry.Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) → ℂ) |
| 73 | |
| 74 | def affineOpenTangentDualEquiv (i : Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ A ⟶ X) [IsOpenImmersion i.left] |
| 75 | (x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) : |
| 76 | TangentSpace 𝓘(ℂ, ModelX) (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affinePointMap A i x) ≃ |
| 77 | DualOpen.Lifts.DualSchemePoints X (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affinePointMap A i x) := |
| 78 | (LinearEquiv.ofBijective |
| 79 | (mfderiv 𝓘(ℂ, ModelA) 𝓘(ℂ, ModelX) (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affinePointMap A i) x).toLinearMap |
| 80 | (ComplexPoints.Analytic.AffineOpenDifferential.mfderiv_affinePointMap_bijective A i x)).symm.toEquiv.trans |
| 81 | ((Intrinsic.AffineDualPoints.nativeAffineDualPointEquiv x).trans |
| 82 | ((affineDualSchemeEquiv x).trans |
| 83 | (DualOpen.Lifts.dualOpenPointsEquiv i (Foundations.Scheme.AffineComplexPoints.affineComplexPointsOverEquiv A x)))) |
| 84 | |
| 85 | theorem affineOpenTangentDualEquiv_mfderiv (i : Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ A ⟶ X) [IsOpenImmersion i.left] |
| 86 | (x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) (v : TangentSpace 𝓘(ℂ, ModelA) x) : |
| 87 | (affineOpenTangentDualEquiv A i x |
| 88 | (mfderiv 𝓘(ℂ, ModelA) 𝓘(ℂ, ModelX) (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affinePointMap A i) x v)).val = |
| 89 | affineDualSchemeMap (Intrinsic.AffineDualPoints.nativeAffineDualPointEquiv x v).val ≫ i := by |
| 90 | let d := LinearEquiv.ofBijective |
| 91 | (mfderiv 𝓘(ℂ, ModelA) 𝓘(ℂ, ModelX) (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affinePointMap A i) x).toLinearMap |
| 92 | (ComplexPoints.Analytic.AffineOpenDifferential.mfderiv_affinePointMap_bijective A i x) |
| 93 | exact congrArg (fun w => affineDualSchemeMap (Intrinsic.AffineDualPoints.nativeAffineDualPointEquiv x w).val ≫ i) |
| 94 | (d.symm_apply_apply v) |
| 95 | |
| 96 | end |
| 97 | |
| 98 | section |
| 99 | |
| 100 | /-! The actual tangent comparison commutes with a refinement of affine |
| 101 | open neighborhoods, by the chain rule and functoriality of relative Spec. -/ |
| 102 | |
| 103 | open _root_.CategoryTheory _root_.AlgebraicGeometry OAI.AlgebraicGeometry.Foundations.Scheme.AffineComplexPoints OAI.AlgebraicGeometry.ComplexPoints.Analytic.AffineOpenDifferential |
| 104 | open scoped _root_.Manifold ContDiff |
| 105 | |
| 106 | variable {X : Over Foundations.Scheme.ProjectiveSpace.complexBase} [IsIntegral X.left] [Smooth X.hom] |
| 107 | (A B : CommAlgCat ℂ) [IsDomain A] [Algebra.Smooth ℂ A] |
| 108 | [IsDomain B] [Algebra.Smooth ℂ B] |
| 109 | |
| 110 | local notation "ModelA" => (Fin (OAI.AlgebraicGeometry.Foundations.Scheme.SmoothDomainDimension.Algebraic.genericDifferentialRank ℂ A) → ℂ) |
| 111 | local notation "ModelB" => (Fin (OAI.AlgebraicGeometry.Foundations.Scheme.SmoothDomainDimension.Algebraic.genericDifferentialRank ℂ B) → ℂ) |
| 112 | local notation "ModelX" => (Fin (OAI.AlgebraicGeometry.Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) → ℂ) |
| 113 | |
| 114 | theorem affinePointMap_refinement_derivative |
| 115 | (i : Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ A ⟶ X) [IsOpenImmersion i.left] |
| 116 | (j : Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ B ⟶ X) (h : A →ₐ[ℂ] B) |
| 117 | (hfac : Foundations.Scheme.AffineComplexPoints.affineAlgHomOverSpecEquiv ℂ A B h ≫ i = j) |
| 118 | (y : Foundations.Scheme.AffineComplexPoints.affineComplexPoints B) (v : TangentSpace 𝓘(ℂ, ModelB) y) : |
| 119 | mfderiv 𝓘(ℂ, ModelB) 𝓘(ℂ, ModelX) (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affinePointMap B j) y v = |
| 120 | mfderiv 𝓘(ℂ, ModelA) 𝓘(ℂ, ModelX) (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affinePointMap A i) |
| 121 | (y.comp h) (mfderiv 𝓘(ℂ, ModelB) 𝓘(ℂ, ModelA) |
| 122 | (Foundations.Scheme.AffineComplexPoints.affineComplexPoints.comap h) y v) := by |
| 123 | have heq : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affinePointMap B j = |
| 124 | ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affinePointMap A i ∘ Foundations.Scheme.AffineComplexPoints.affineComplexPoints.comap h := by |
| 125 | funext z |
| 126 | rw [← hfac, ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affinePointMap_comap] |
| 127 | rfl |
| 128 | rw [heq] |
| 129 | exact mfderiv_comp_apply y |
| 130 | ((ComplexPoints.Analytic.AffineOpenDifferential.contMDiff_affinePointMap A i 1).mdifferentiableAt one_ne_zero) |
| 131 | ((ComplexPoints.Analytic.SmoothAffineMaps.contMDiff_smoothDomain_comap h 1).mdifferentiableAt one_ne_zero) v |
| 132 | |
| 133 | theorem affineOpenTangentDual_refinement |
| 134 | (i : Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ A ⟶ X) [IsOpenImmersion i.left] |
| 135 | (j : Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ B ⟶ X) [IsOpenImmersion j.left] |
| 136 | (h : A →ₐ[ℂ] B) (hfac : Foundations.Scheme.AffineComplexPoints.affineAlgHomOverSpecEquiv ℂ A B h ≫ i = j) |
| 137 | (y : Foundations.Scheme.AffineComplexPoints.affineComplexPoints B) (v : ModelX) : |
| 138 | (affineOpenTangentDualEquiv A i (y.comp h) v).val = |
| 139 | (affineOpenTangentDualEquiv B j y v).val := by |
| 140 | obtain ⟨w, rfl⟩ := (ComplexPoints.Analytic.AffineOpenDifferential.mfderiv_affinePointMap_bijective B j y).surjective v |
| 141 | have hd := affinePointMap_refinement_derivative A B i j h hfac y w |
| 142 | have hleft := congrArg (fun z : ModelX => |
| 143 | (affineOpenTangentDualEquiv A i (y.comp h) z).val) hd |
| 144 | have ha := affineOpenTangentDualEquiv_mfderiv A i (y.comp h) |
| 145 | (mfderiv 𝓘(ℂ, ModelB) 𝓘(ℂ, ModelA) (Foundations.Scheme.AffineComplexPoints.affineComplexPoints.comap h) y w) |
| 146 | have hn := congrArg (fun f : A →ₐ[ℂ] DualNumber ℂ => affineDualSchemeMap f ≫ i) |
| 147 | (Intrinsic.AffineDualPoints.nativeAffineDualPoint_natural h y w) |
| 148 | have hc : affineDualSchemeMap ((Intrinsic.AffineDualPoints.nativeAffineDualPointEquiv y w).val.comp h) ≫ i = |
| 149 | affineDualSchemeMap (Intrinsic.AffineDualPoints.nativeAffineDualPointEquiv y w).val ≫ j := by |
| 150 | rw [affineDualSchemeMap_comp, Category.assoc, hfac] |
| 151 | exact hleft.trans (ha.trans (hn.trans (hc.trans |
| 152 | (affineOpenTangentDualEquiv_mfderiv B j y w).symm))) |
| 153 | |
| 154 | end |
| 155 | |
| 156 | /-! Independence of the actual tangent comparison from its affine open |
| 157 | neighborhood, proved on a common principal localization. -/ |
| 158 | |
| 159 | open _root_.CategoryTheory _root_.AlgebraicGeometry OAI.AlgebraicGeometry.Foundations.Scheme.AffineComplexPoints OAI.AlgebraicGeometry.ComplexPoints.Analytic.AffineOpenDifferential |
| 160 | open scoped _root_.Manifold ContDiff |
| 161 | |
| 162 | variable {X : Over Foundations.Scheme.ProjectiveSpace.complexBase} [IsIntegral X.left] [Smooth X.hom] |
| 163 | (A B : CommAlgCat ℂ) [IsDomain A] [Algebra.Smooth ℂ A] |
| 164 | [IsDomain B] [Algebra.Smooth ℂ B] |
| 165 | |
| 166 | local notation "ModelX" => (Fin (OAI.AlgebraicGeometry.Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) → ℂ) |
| 167 | |
| 168 | theorem affineOpenTangentDual_independent |
| 169 | (i : Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ A ⟶ X) [IsOpenImmersion i.left] |
| 170 | (j : Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ B ⟶ X) [IsOpenImmersion j.left] |
| 171 | (x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) (y : Foundations.Scheme.AffineComplexPoints.affineComplexPoints B) |
| 172 | (hxy : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affinePointMap A i x = ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affinePointMap B j y) |
| 173 | (v : ModelX) : |
| 174 | (affineOpenTangentDualEquiv A i x v).val = |
| 175 | (affineOpenTangentDualEquiv B j y v).val := by |
| 176 | obtain ⟨a, ha, h, hfac, hpoint⟩ := |
| 177 | ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.exists_affineLocalizationTransition A B i j x ⟨y, hxy.symm⟩ |
| 178 | have hane : a ≠ 0 := fun heq => ha (heq ▸ map_zero x) |
| 179 | let C := CommAlgCat.of ℂ (Localization.Away a) |
| 180 | let : IsDomain C := Localization.Away.isDomain hane |
| 181 | let : Algebra.Smooth A C := Algebra.Smooth.of_isLocalization_Away a |
| 182 | let : Algebra.Smooth ℂ C := Algebra.Smooth.comp ℂ A C |
| 183 | let r : A →ₐ[ℂ] C := Algebra.algHom ℂ A (Localization.Away a) |
| 184 | let k := Foundations.Scheme.AffineComplexPoints.affineAlgHomOverSpecEquiv ℂ A C r ≫ i |
| 185 | let : IsOpenImmersion (Foundations.Scheme.AffineComplexPoints.affineAlgHomOverSpecEquiv ℂ A C r).left := by |
| 186 | change IsOpenImmersion (Spec.map (CommRingCat.ofHom (algebraMap A (Localization.Away a)))) |
| 187 | infer_instance |
| 188 | let : IsOpenImmersion k.left := by |
| 189 | change IsOpenImmersion ((Foundations.Scheme.AffineComplexPoints.affineAlgHomOverSpecEquiv ℂ A C r).left ≫ i.left) |
| 190 | infer_instance |
| 191 | let z : Foundations.Scheme.AffineComplexPoints.affineComplexPoints C := Foundations.Scheme.LocalizationComplexPoints.Algebraic.localizePoint x a ha |
| 192 | have hzA : z.comp r = x := Foundations.Scheme.LocalizationComplexPoints.Algebraic.localizePoint_comp x a ha |
| 193 | have hzB : z.comp h = y := |
| 194 | (ComplexPoints.Analytic.SmoothSchemeManifold.isOpenEmbedding_affinePointMap B j).injective ((hpoint ⟨x, ha⟩).trans hxy) |
| 195 | have hA := affineOpenTangentDual_refinement A C i k r rfl z v |
| 196 | have hB := affineOpenTangentDual_refinement B C j k h hfac z v |
| 197 | have hAx : (affineOpenTangentDualEquiv A i (z.comp r) v).val = |
| 198 | (affineOpenTangentDualEquiv A i x v).val := |
| 199 | congrArg (fun q => (affineOpenTangentDualEquiv A i q v).val) hzA |
| 200 | have hBy : (affineOpenTangentDualEquiv B j (z.comp h) v).val = |
| 201 | (affineOpenTangentDualEquiv B j y v).val := |
| 202 | congrArg (fun q => (affineOpenTangentDualEquiv B j q v).val) hzB |
| 203 | exact hAx.symm.trans (hA.trans (hB.symm.trans hBy)) |
| 204 | |
| 205 | end |
| 206 | |
| 207 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Affine.DualOpen |