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.Quotients.FiniteDescent.AffineSquare |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.OpenPullbackId |
| 3 | |
| 4 | /-! # Affine Open -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.AffineOpen |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Affine base change for sections on affine opens of the source scheme. -/ |
| 11 | |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 15 | open _root_.AlgebraicGeometry.Scheme.Modules |
| 16 | open scoped ChangeOfRings |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace Construction.AffineOpenSquare |
| 21 | |
| 22 | variable {X Y S T : Scheme.{u}} [IsAffine S] [IsAffine T] |
| 23 | variable (f : Y ⟶ X) (π : X ⟶ S) (ρ : Y ⟶ T) (g : T ⟶ S) |
| 24 | variable (h : IsPullback f ρ π g) (M : X.Modules) [M.IsQuasicoherent] |
| 25 | variable (U : X.affineOpens) |
| 26 | |
| 27 | def restrictedIso : |
| 28 | (ModuleCat.extendScalars g.appTop.hom).obj |
| 29 | ((ModuleCat.restrictScalars (U.1.ι ≫ π).appTop.hom).obj |
| 30 | ((AffineSectionIs.Construction.AffineSectionAdjunction.sections U.1.toScheme).obj (M.restrict U.1.ι))) ≅ |
| 31 | (ModuleCat.restrictScalars ((f ⁻¹ᵁ U.1).ι ≫ ρ).appTop.hom).obj |
| 32 | ((AffineSectionIs.Construction.AffineSectionAdjunction.sections (f ⁻¹ᵁ U.1).toScheme).obj |
| 33 | ((Scheme.Modules.pullback (f ∣_ U.1)).obj (M.restrict U.1.ι))) := by |
| 34 | have : IsAffine U.1.toScheme := U.2 |
| 35 | exact AffineSquare.Construction.AffineSquareSections.iso (f ∣_ U.1) (U.1.ι ≫ π) ((f ⁻¹ᵁ U.1).ι ≫ ρ) g |
| 36 | ((isPullback_morphismRestrict f U.1).paste_vert h) (M.restrict U.1.ι) |
| 37 | |
| 38 | theorem restricted_one (s : Γ(M.restrict U.1.ι, ⊤)) : |
| 39 | (restrictedIso f π ρ g h M U).hom |
| 40 | ((1 : Γ(T, ⊤)) ⊗ₜ[Γ(S, ⊤),g.appTop.hom] |
| 41 | (show (ModuleCat.restrictScalars (U.1.ι ≫ π).appTop.hom).obj |
| 42 | ((AffineSectionIs.Construction.AffineSectionAdjunction.sections U.1.toScheme).obj (M.restrict U.1.ι)) from s)) = |
| 43 | PullbackSectionRestrict.Construction.PullbackSectionCoefficients.map (f ∣_ U.1) (M.restrict U.1.ι) ⊤ s := by |
| 44 | have : IsAffine U.1.toScheme := U.2 |
| 45 | dsimp only [restrictedIso] |
| 46 | exact @AffineSquare.Construction.AffineSquareSections.one_tmul U.1.toScheme (f ⁻¹ᵁ U.1).toScheme S T |
| 47 | ‹IsAffine U.1.toScheme› ‹IsAffine S› ‹IsAffine T› |
| 48 | (f ∣_ U.1) (U.1.ι ≫ π) ((f ⁻¹ᵁ U.1).ι ≫ ρ) g |
| 49 | ((isPullback_morphismRestrict f U.1).paste_vert h) (M.restrict U.1.ι) inferInstance s |
| 50 | |
| 51 | omit [IsAffine S] [IsAffine T] [M.IsQuasicoherent] in |
| 52 | def targetIso : |
| 53 | (ModuleCat.restrictScalars ((f ⁻¹ᵁ U.1).ι ≫ ρ).appTop.hom).obj |
| 54 | ((AffineSectionIs.Construction.AffineSectionAdjunction.sections (f ⁻¹ᵁ U.1).toScheme).obj |
| 55 | ((Scheme.Modules.pullback (f ∣_ U.1)).obj (M.restrict U.1.ι))) ≅ |
| 56 | (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf ρ ((Scheme.Modules.pullback f).obj M)).obj (op (f ⁻¹ᵁ U.1)) := |
| 57 | (ModuleCat.restrictScalars ((f ⁻¹ᵁ U.1).ι ≫ ρ).appTop.hom).mapIso |
| 58 | ((AffineSectionIs.Construction.AffineSectionAdjunction.sections (f ⁻¹ᵁ U.1).toScheme).mapIso ((OpenPullbackIs.Construction.OpenPullbackSquare.adjointPullbackSquare f U.1).app M)) ≪≫ |
| 59 | BaseOpen.Construction.BaseOpenSections.iso ρ ((Scheme.Modules.pullback f).obj M) (f ⁻¹ᵁ U.1) |
| 60 | |
| 61 | omit [IsAffine S] [IsAffine T] [M.IsQuasicoherent] in |
| 62 | theorem target_apply (s : Γ((Scheme.Modules.pullback (f ∣_ U.1)).obj (M.restrict U.1.ι), ⊤)) : |
| 63 | (targetIso f ρ M U).hom s = |
| 64 | (SheafCohomology.Projective.CanonicalAffineFrame.restrictionTopIso ((Scheme.Modules.pullback f).obj M) (f ⁻¹ᵁ U.1)).hom |
| 65 | (((OpenPullbackIs.Construction.OpenPullbackSquare.adjointPullbackSquare f U.1).hom.app M).app ⊤ s) := rfl |
| 66 | |
| 67 | omit [IsAffine S] [IsAffine T] [M.IsQuasicoherent] in |
| 68 | theorem target_normalization (s : Γ(M, U.1)) : |
| 69 | (targetIso f ρ M U).hom |
| 70 | (PullbackSectionRestrict.Construction.PullbackSectionCoefficients.map (f ∣_ U.1) (M.restrict U.1.ι) ⊤ |
| 71 | ((SheafCohomology.Projective.CanonicalAffineFrame.restrictionTopIso M U.1).inv s)) = PullbackSectionRestrict.Construction.PullbackSectionCoefficients.map f M U.1 s := |
| 72 | (target_apply f ρ M U _).trans (OpenPullbackId.Construction.OpenPullbackSections.normalization f M U.1 s) |
| 73 | |
| 74 | omit [IsAffine S] [IsAffine T] [M.IsQuasicoherent] in |
| 75 | theorem target_base_normalization (s : (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf π M).obj (op U.1)) : |
| 76 | (targetIso f ρ M U).hom |
| 77 | (PullbackSectionRestrict.Construction.PullbackSectionCoefficients.map (f ∣_ U.1) (M.restrict U.1.ι) ⊤ |
| 78 | ((BaseOpen.Construction.BaseOpenSections.iso π M U.1).inv s)) = PullbackSectionRestrict.Construction.PullbackSectionCoefficients.map f M U.1 s := by |
| 79 | let t : Γ(M.restrict U.1.ι, ⊤) → Γ((Scheme.Modules.pullback f).obj M, f ⁻¹ᵁ U.1) := |
| 80 | fun z => (targetIso f ρ M U).hom |
| 81 | (PullbackSectionRestrict.Construction.PullbackSectionCoefficients.map (f ∣_ U.1) (M.restrict U.1.ι) ⊤ z) |
| 82 | have ha := congrArg t (BaseOpen.Construction.BaseOpenSections.inv_apply π M U.1 s) |
| 83 | exact ha.trans (target_normalization f ρ M U s) |
| 84 | |
| 85 | private def chainIso {R S : Type u} [CommRing R] [CommRing S] (g : R →+* S) |
| 86 | {A B : ModuleCat.{u} R} {C D : ModuleCat.{u} S} |
| 87 | (a : A ≅ B) (b : (ModuleCat.extendScalars g).obj B ≅ C) (c : C ≅ D) : |
| 88 | (ModuleCat.extendScalars g).obj A ≅ D := |
| 89 | (ModuleCat.extendScalars g).mapIso a ≪≫ b ≪≫ c |
| 90 | |
| 91 | private theorem chain_one {R S : Type u} [CommRing R] [CommRing S] (g : R →+* S) |
| 92 | {A B : ModuleCat.{u} R} {C D : ModuleCat.{u} S} |
| 93 | (a : A ≅ B) (b : (ModuleCat.extendScalars g).obj B ≅ C) (c : C ≅ D) (s : A) : |
| 94 | (chainIso g a b c).hom ((1 : S) ⊗ₜ[R,g] s) = |
| 95 | c.hom (b.hom ((1 : S) ⊗ₜ[R,g] (a.hom s))) := by |
| 96 | simp only [chainIso, Iso.trans_hom, Functor.mapIso_hom, ModuleCat.comp_apply, |
| 97 | ModuleCat.ExtendScalars.map_tmul] |
| 98 | |
| 99 | private theorem chain_normalization {R S : Type u} [CommRing R] [CommRing S] (g : R →+* S) |
| 100 | {A B : ModuleCat.{u} R} {C D : ModuleCat.{u} S} |
| 101 | (a : A ≅ B) (b : (ModuleCat.extendScalars g).obj B ≅ C) (c : C ≅ D) |
| 102 | (v : B → C) (w : A → D) |
| 103 | (hb : ∀ z, b.hom ((1 : S) ⊗ₜ[R,g] z) = v z) |
| 104 | (hc : ∀ z, c.hom (v (a.hom z)) = w z) (s : A) : |
| 105 | (chainIso g a b c).hom ((1 : S) ⊗ₜ[R,g] s) = w s := by |
| 106 | rw [chain_one, hb, hc] |
| 107 | |
| 108 | private def chainData {R S : Type u} [CommRing R] [CommRing S] (g : R →+* S) |
| 109 | {A B : ModuleCat.{u} R} {C D : ModuleCat.{u} S} |
| 110 | (a : A ≅ B) (b : (ModuleCat.extendScalars g).obj B ≅ C) (c : C ≅ D) |
| 111 | (v : B → C) (w : A → D) |
| 112 | (hb : ∀ z, b.hom ((1 : S) ⊗ₜ[R,g] z) = v z) |
| 113 | (hc : ∀ z, c.hom (v (a.hom z)) = w z) : |
| 114 | {e : (ModuleCat.extendScalars g).obj A ≅ D // ∀ s, e.hom ((1 : S) ⊗ₜ[R,g] s) = w s} := |
| 115 | ⟨chainIso g a b c, chain_normalization g a b c v w hb hc⟩ |
| 116 | |
| 117 | def data : |
| 118 | {e : (ModuleCat.extendScalars g.appTop.hom).obj ((SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf π M).obj (op U.1)) ≅ |
| 119 | (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf ρ ((Scheme.Modules.pullback f).obj M)).obj (op (f ⁻¹ᵁ U.1)) // |
| 120 | ∀ s : (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf π M).obj (op U.1), |
| 121 | e.hom ((1 : Γ(T, ⊤)) ⊗ₜ[Γ(S, ⊤),g.appTop.hom] s) = |
| 122 | PullbackSectionRestrict.Construction.PullbackSectionCoefficients.map f M U.1 s} := by |
| 123 | let A := (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf π M).obj (op U.1) |
| 124 | let B := (ModuleCat.restrictScalars (U.1.ι ≫ π).appTop.hom).obj |
| 125 | ((AffineSectionIs.Construction.AffineSectionAdjunction.sections U.1.toScheme).obj (M.restrict U.1.ι)) |
| 126 | let C := (ModuleCat.restrictScalars ((f ⁻¹ᵁ U.1).ι ≫ ρ).appTop.hom).obj |
| 127 | ((AffineSectionIs.Construction.AffineSectionAdjunction.sections (f ⁻¹ᵁ U.1).toScheme).obj |
| 128 | ((Scheme.Modules.pullback (f ∣_ U.1)).obj (M.restrict U.1.ι))) |
| 129 | let D := (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf ρ ((Scheme.Modules.pullback f).obj M)).obj (op (f ⁻¹ᵁ U.1)) |
| 130 | let v : B → C := PullbackSectionRestrict.Construction.PullbackSectionCoefficients.map (f ∣_ U.1) (M.restrict U.1.ι) ⊤ |
| 131 | let w : A → D := PullbackSectionRestrict.Construction.PullbackSectionCoefficients.map f M U.1 |
| 132 | have hb : ∀ z : B, (restrictedIso f π ρ g h M U).hom |
| 133 | ((1 : Γ(T, ⊤)) ⊗ₜ[Γ(S, ⊤),g.appTop.hom] z) = v z := by |
| 134 | intro z |
| 135 | exact @restricted_one X Y S T ‹IsAffine S› ‹IsAffine T› f π ρ g h M |
| 136 | ‹M.IsQuasicoherent› U z |
| 137 | have hn : ∀ z : A, (targetIso f ρ M U).hom (v ((BaseOpen.Construction.BaseOpenSections.iso π M U.1).inv z)) = w z := by |
| 138 | intro z |
| 139 | exact target_base_normalization f π ρ M U z |
| 140 | exact @chainData Γ(S, ⊤) Γ(T, ⊤) inferInstance inferInstance g.appTop.hom |
| 141 | A B C D (BaseOpen.Construction.BaseOpenSections.iso π M U.1).symm |
| 142 | (restrictedIso f π ρ g h M U) (targetIso f ρ M U) v w hb hn |
| 143 | |
| 144 | def iso : |
| 145 | (ModuleCat.extendScalars g.appTop.hom).obj ((SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf π M).obj (op U.1)) ≅ |
| 146 | (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf ρ ((Scheme.Modules.pullback f).obj M)).obj (op (f ⁻¹ᵁ U.1)) := |
| 147 | (data f π ρ g h M U).val |
| 148 | |
| 149 | theorem one_tmul (s : (SheafCohomology.Cech.SchemeModuleBaseBasic.Scheme.Modules.baseModulePresheaf π M).obj (op U.1)) : |
| 150 | (iso f π ρ g h M U).hom ((1 : Γ(T, ⊤)) ⊗ₜ[Γ(S, ⊤),g.appTop.hom] s) = |
| 151 | PullbackSectionRestrict.Construction.PullbackSectionCoefficients.map f M U.1 s := |
| 152 | (data f π ρ g h M U).property s |
| 153 | |
| 154 | end Construction.AffineOpenSquare |
| 155 | |
| 156 | end |
| 157 | |
| 158 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.AffineOpen |