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.HilbertConstruction.TrivialModuleTensorComparison |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Open.TensorComparisonReduction |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Tensor.ComparisonPullbackCongruence |
| 4 | |
| 5 | /-! # Tensor Base Change -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineOpen.TensorBaseChange |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual module-section tensor comparison is invertible on every affine open where the module has a frame, after affine base change. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | theorem affineFrame_moduleTensorComparison_isIso |
| 18 | {S X Y P : Scheme.{u}} [IsAffine S] [IsAffine Y] |
| 19 | {a : P ⟶ X} {b : P ⟶ Y} {f : X ⟶ S} {g : Y ⟶ S} |
| 20 | (H : IsPullback a b f g) (M : X.Modules) (U : X.Opens) (hU : IsAffineOpen U) |
| 21 | (e : (Scheme.Modules.pullback U.ι).obj M ≅ Line.Bundles.structureModule U.toScheme) : |
| 22 | IsIso ((Cartesian.ModuleTensorComparison.baseChangeModuleTensorComparison H M).app (.op U)) := by |
| 23 | let j := U.ι |
| 24 | let i := Limits.pullback.fst a j |
| 25 | let c := Limits.pullback.snd a j |
| 26 | let V := j ⁻¹ᵁ U |
| 27 | let q : Affine.TensorSectionComparison.morphismGlobalAlgebra g →+* Γ(Limits.pullback a j, ⊤) := i.appTop.hom.comp b.appTop.hom |
| 28 | have : IsAffine U.toScheme := hU |
| 29 | have : IsOpenImmersion i := inferInstanceAs (IsOpenImmersion (Limits.pullback.fst a j)) |
| 30 | have Hlocal : IsPullback c (i ≫ b) (j ≫ f) g := |
| 31 | (IsPullback.of_hasPullback a j).flip.paste_vert H |
| 32 | have hVtop : V = ⊤ := by |
| 33 | ext x |
| 34 | exact iff_true_intro x.property |
| 35 | have hV : IsAffineOpen V := (congrArg IsAffineOpen hVtop).mpr (isAffineOpen_top U.toScheme) |
| 36 | have hij : i ≫ a = c ≫ j := Limits.pullback.condition |
| 37 | have hqi : q.comp (algebraMap Γ(S, ⊤) (Affine.TensorSectionComparison.morphismGlobalAlgebra g)) = (i ≫ a).appTop.hom.comp f.appTop.hom := |
| 38 | Coefficient.PullbackRefinement.pullbackCoefficient_compatible_comp (B := Affine.TensorSectionComparison.morphismGlobalAlgebra g) i a f.appTop.hom b.appTop.hom |
| 39 | (Affine.TensorSectionComparison.cartesianGlobalCoefficient_compatibility H) |
| 40 | have hqc : q.comp (algebraMap Γ(S, ⊤) (Affine.TensorSectionComparison.morphismGlobalAlgebra g)) = (c ≫ j).appTop.hom.comp f.appTop.hom := |
| 41 | hqi.trans (congrArg (fun z => z.appTop.hom.comp f.appTop.hom) hij) |
| 42 | have hqc' : q.comp (algebraMap Γ(S, ⊤) (Affine.TensorSectionComparison.morphismGlobalAlgebra g)) = |
| 43 | c.appTop.hom.comp (j.appTop.hom.comp f.appTop.hom) := by |
| 44 | simpa only [Scheme.Hom.comp_appTop, CommRingCat.hom_comp, RingHom.comp_assoc] using hqc |
| 45 | have hβ : Function.Bijective (Module.SectionTensorComparison.moduleSectionTensorComparisonApp (B := Affine.TensorSectionComparison.morphismGlobalAlgebra g) |
| 46 | c (j ≫ f).appTop.hom ((Scheme.Modules.pullback j).obj M) (i ≫ b).appTop.hom |
| 47 | (Affine.TensorSectionComparison.cartesianGlobalCoefficient_compatibility Hlocal) V) := |
| 48 | (ConcreteCategory.isIso_iff_bijective |
| 49 | ((Cartesian.ModuleTensorComparison.baseChangeModuleTensorComparison Hlocal ((Scheme.Modules.pullback j).obj M)).app (.op V))).mp |
| 50 | (TrivialModuleTensorComparison.affineOpen_trivialModuleTensorComparison_isIso Hlocal ((Scheme.Modules.pullback j).obj M) e V hV) |
| 51 | have hf : (j ≫ f).appTop.hom = j.appTop.hom.comp f.appTop.hom := by ext r; rfl |
| 52 | have hq : (i ≫ b).appTop.hom = q := by ext r; rfl |
| 53 | have hlocal : Function.Bijective (Module.SectionTensorComparison.moduleSectionTensorComparisonApp (B := Affine.TensorSectionComparison.morphismGlobalAlgebra g) |
| 54 | c (j.appTop.hom.comp f.appTop.hom) ((Scheme.Modules.pullback j).obj M) q hqc' V) := |
| 55 | (Tensor.ComparisonPullbackCongruence.moduleSectionTensorComparisonApp_bijective_congr (B := Affine.TensorSectionComparison.morphismGlobalAlgebra g) rfl hf |
| 56 | ((Scheme.Modules.pullback j).obj M) hq (Affine.TensorSectionComparison.cartesianGlobalCoefficient_compatibility Hlocal) hqc' rfl).mp hβ |
| 57 | have hUj : U ≤ j.opensRange := by |
| 58 | simpa only [j, Scheme.Opens.opensRange_ι] using (le_refl U) |
| 59 | have hc := Open.TensorComparisonReduction.moduleSectionTensorComparisonApp_bijective_of_open_comp (B := Affine.TensorSectionComparison.morphismGlobalAlgebra g) |
| 60 | c j f.appTop.hom M q hqc hqc' U hUj hlocal |
| 61 | have hi : Function.Bijective (Module.SectionTensorComparison.moduleSectionTensorComparisonApp (B := Affine.TensorSectionComparison.morphismGlobalAlgebra g) |
| 62 | (i ≫ a) f.appTop.hom M q hqi U) := |
| 63 | (Tensor.ComparisonPullbackCongruence.moduleSectionTensorComparisonApp_bijective_congr (B := Affine.TensorSectionComparison.morphismGlobalAlgebra g) hij.symm rfl M rfl hqc hqi rfl).mp hc |
| 64 | have hcover : a ⁻¹ᵁ U ≤ i.opensRange := by |
| 65 | intro p hp |
| 66 | let u : U.toScheme := ⟨a p, hp⟩ |
| 67 | obtain ⟨z, hz, _⟩ := Scheme.Pullback.exists_preimage_pullback p u (show a p = j u from rfl) |
| 68 | exact ⟨z, hz⟩ |
| 69 | have hbij := Open.TensorComparisonReduction.moduleSectionTensorComparisonApp_bijective_of_open_refine (B := Affine.TensorSectionComparison.morphismGlobalAlgebra g) |
| 70 | i a f.appTop.hom M b.appTop.hom (Affine.TensorSectionComparison.cartesianGlobalCoefficient_compatibility H) U hcover hi |
| 71 | exact (ConcreteCategory.isIso_iff_bijective _).mpr hbij |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineOpen.TensorBaseChange |