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.Resolution.Blowups.Global.MixedBoundary |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.Boundary.LocalSmoothness |
| 3 | import OAI.AlgebraicGeometry.Resolution.Blowups.Mixed.CenterEtaleBaseChange |
| 4 | import OAI.AlgebraicGeometry.Resolution.Blowups.Affine.ComplexNaturality |
| 5 | import OAI.AlgebraicGeometry.Resolution.Blowups.ComplexAffineDifferentialIdeal |
| 6 | |
| 7 | /-! # Open Boundary Transport -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Affine.OpenBoundaryTransport.Construction |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Transport actual affine boundary charts to native affine opens of the ambient scheme. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | def specOpenImage {X : Scheme.{u}} (R : CommRingCat.{u}) |
| 20 | (j : Spec R ⟶ X) [IsOpenImmersion j] : X.affineOpens := |
| 21 | ⟨j ''ᵁ ⊤, (isAffineOpen_top (Spec R)).image_of_isOpenImmersion j⟩ |
| 22 | |
| 23 | theorem specOpenImage_eq_opensRange {X : Scheme.{u}} (R : CommRingCat.{u}) |
| 24 | (j : Spec R ⟶ X) [IsOpenImmersion j] : (specOpenImage R j).1 = j.opensRange := |
| 25 | Scheme.Hom.image_top_eq_opensRange j |
| 26 | |
| 27 | def specOpenSectionEquiv {X : Scheme.{u}} (R : CommRingCat.{u}) |
| 28 | (j : Spec R ⟶ X) [IsOpenImmersion j] : Γ(X, specOpenImage R j) ≃+* R := |
| 29 | (j.appIso ⊤).commRingCatIsoToRingEquiv.trans (Scheme.ΓSpecIso R).commRingCatIsoToRingEquiv |
| 30 | |
| 31 | theorem specOpenSectionEquiv_ideal {X : Scheme.{u}} (R : CommRingCat.{u}) |
| 32 | (j : Spec R ⟶ X) [IsOpenImmersion j] (J : X.IdealSheafData) (K : Ideal R) |
| 33 | (h : J.comap j = QuotientKernel.Construction.affineQuotientKernel K) : |
| 34 | J.ideal (specOpenImage R j) = K.comap (specOpenSectionEquiv R j).toRingHom := by |
| 35 | let V : (Spec R).affineOpens := ⟨⊤, isAffineOpen_top (Spec R)⟩ |
| 36 | have he := congrArg (fun D : (Spec R).IdealSheafData => D.ideal V) h |
| 37 | rw [Scheme.IdealSheafData.ideal_comap_of_isOpenImmersion, QuotientKernel.Construction.affineQuotientKernel_idealTop] at he |
| 38 | change (J.ideal (specOpenImage R j)).comap (j.appIso ⊤).inv.hom = |
| 39 | K.comap (Scheme.ΓSpecIso R).hom.hom at he |
| 40 | let e₀ : Γ(X, specOpenImage R j) ≃+* Γ(Spec R, ⊤) := (j.appIso ⊤).commRingCatIsoToRingEquiv |
| 41 | let e₁ : Γ(Spec R, ⊤) ≃+* R := (Scheme.ΓSpecIso R).commRingCatIsoToRingEquiv |
| 42 | have he' : (J.ideal (specOpenImage R j)).comap e₀.symm.toRingHom = K.comap e₁.toRingHom := he |
| 43 | ext x |
| 44 | change x ∈ J.ideal (specOpenImage R j) ↔ e₁ (e₀ x) ∈ K |
| 45 | have hx := congrArg (fun A : Ideal Γ(Spec R, ⊤) => e₀ x ∈ A) he' |
| 46 | change (e₀.symm (e₀ x) ∈ J.ideal (specOpenImage R j)) = (e₁ (e₀ x) ∈ K) at hx |
| 47 | rw [e₀.symm_apply_apply] at hx |
| 48 | exact Iff.of_eq hx |
| 49 | |
| 50 | theorem specOpenSectionEquiv_equation {X : Scheme.{u}} (R : CommRingCat.{u}) |
| 51 | (j : Spec R ⟶ X) [IsOpenImmersion j] (J : X.IdealSheafData) (w : R) |
| 52 | (h : J.comap j = QuotientKernel.Construction.affineQuotientKernel (Ideal.span {w})) : |
| 53 | J.ideal (specOpenImage R j) = Ideal.span {(specOpenSectionEquiv R j).symm w} := by |
| 54 | rw [specOpenSectionEquiv_ideal R j J _ h] |
| 55 | calc |
| 56 | (Ideal.span {w}).comap (specOpenSectionEquiv R j).toRingHom = |
| 57 | (Ideal.span {w}).map (specOpenSectionEquiv R j).symm.toRingHom := |
| 58 | (Ideal.map_symm (specOpenSectionEquiv R j) (I := Ideal.span {w})).symm |
| 59 | _ = _ := by rw [Ideal.map_span, Set.image_singleton]; rfl |
| 60 | |
| 61 | def specOpenSectionAlgEquiv {X : Scheme} (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) (R : CommRingCat) |
| 62 | [Algebra ℂ R] (j : Spec R ⟶ X) [IsOpenImmersion j] |
| 63 | (hstructure : j ≫ f = ComplexAffineDifferentialIdeal.Construction.complexSpecStructure R) : |
| 64 | letI := Smooth.DifferentialIdealSheaf.Construction.affineComplexAlgebra f (specOpenImage R j) |
| 65 | Γ(X, specOpenImage R j) ≃ₐ[ℂ] R := by |
| 66 | let : Algebra ℂ Γ(X, specOpenImage R j) := Smooth.DifferentialIdealSheaf.Construction.affineComplexAlgebra f (specOpenImage R j) |
| 67 | refine { __ := specOpenSectionEquiv R j, commutes' := ?_ } |
| 68 | intro c |
| 69 | have h := RingHom.congr_fun |
| 70 | (ComplexNaturality.Construction.affineComplexScalars_appIso f j ⟨⊤, isAffineOpen_top (Spec R)⟩) c |
| 71 | rw [hstructure, ComplexAffineDifferentialIdeal.Construction.affineComplexScalars_spec_top] at h |
| 72 | change (j.appIso ⊤).hom.hom (ComplexNaturality.Construction.affineComplexScalars f (specOpenImage R j) c) = |
| 73 | (Scheme.ΓSpecIso R).inv.hom (algebraMap ℂ R c) at h |
| 74 | change (Scheme.ΓSpecIso R).hom.hom ((j.appIso ⊤).hom.hom |
| 75 | (ComplexNaturality.Construction.affineComplexScalars f (specOpenImage R j) c)) = algebraMap ℂ R c |
| 76 | rw [h] |
| 77 | exact (Scheme.ΓSpecIso R).commRingCatIsoToRingEquiv.apply_symm_apply _ |
| 78 | |
| 79 | theorem exists_native_affine_boundary_equations |
| 80 | {X : Scheme} (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) (R : CommRingCat) [Algebra ℂ R] |
| 81 | (j : Spec R ⟶ X) [IsOpenImmersion j] (hstructure : j ≫ f = ComplexAffineDifferentialIdeal.Construction.complexSpecStructure R) |
| 82 | {ι : Type} (D : ι → X.IdealSheafData) (w : ι → R) (L : List (Finset ι)) |
| 83 | (hD : ∀ l, (D l).comap j = QuotientKernel.Construction.affineQuotientKernel (Ideal.span {w l})) |
| 84 | (hboundary : LocalBoundaryProperty.Construction.HasEtaleBoundaryCharts ℂ R w) (hfaces : Boundary.Schedule.Construction.BoundaryFacesCover w L) : |
| 85 | letI := Smooth.DifferentialIdealSheaf.Construction.affineComplexAlgebra f (specOpenImage R j) |
| 86 | ∃ v : ι → Γ(X, specOpenImage R j), |
| 87 | (∀ l, (D l).ideal (specOpenImage R j) = Ideal.span {v l}) ∧ |
| 88 | LocalBoundaryProperty.Construction.HasEtaleBoundaryCharts ℂ (.of Γ(X, specOpenImage R j)) v ∧ Boundary.Schedule.Construction.BoundaryFacesCover v L := by |
| 89 | let : Algebra ℂ Γ(X, specOpenImage R j) := Smooth.DifferentialIdealSheaf.Construction.affineComplexAlgebra f (specOpenImage R j) |
| 90 | let e := specOpenSectionAlgEquiv f R j hstructure |
| 91 | let v : ι → Γ(X, specOpenImage R j) := fun l => e.symm (w l) |
| 92 | refine ⟨v, ?_, ?_, hfaces.map e.symm.toRingHom⟩ |
| 93 | · intro l |
| 94 | exact specOpenSectionEquiv_equation R j (D l) (w l) (hD l) |
| 95 | · exact hboundary.etale_baseChange (S := .of Γ(X, specOpenImage R j)) e.symm.toAlgHom |
| 96 | (RingHom.Etale.of_bijective e.symm.bijective) |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicGeometry.Resolution.Blowups.Affine.OpenBoundaryTransport.Construction |