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.Framed.LineBundleKoszulStep |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LineBundleKoszulComplex |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ScalarKoszul.FiniteTerms |
| 4 | |
| 5 | /-! # Mixed Koszul Functor -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Framed.MixedKoszulFunctor |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A scalar-compatible additive functor takes a mixed Koszul complex |
| 12 | to the scalar Koszul complex of its actual frame coordinates. Frames |
| 13 | are required only for the finitely many bundles occurring in the list. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | universe u |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | variable {X : Scheme.{u}} {R : Type u} [CommRing R] |
| 20 | |
| 21 | def framedMixedKoszulFunctorIso (F : X.Modules ⥤ ModuleCat.{u} R) [F.Additive] |
| 22 | (φ : Γ(X, ⊤) →+* R) |
| 23 | (hF : ∀ (M : X.Modules) (r : Γ(X, ⊤)), |
| 24 | F.map (Global.ModuleScalars.globalModuleScalar M r) = φ r • 𝟙 (F.obj M)) |
| 25 | (M : X.Modules) (bs : List (LineBundleKoszulComplex.LineBundleSection X)) (ρ : LineBundleKoszulComplex.LineBundleSection X → R) |
| 26 | (hframe : ∀ b ∈ bs, ∃ e : b.1.sheaf ≅ Line.Bundles.structureModule X, |
| 27 | φ (Frame.Coordinates.structureModuleEndValue X (b.2 ≫ e.hom)) = ρ b) : |
| 28 | ((F.mapHomologicalComplex (.up ℤ)).obj (LineBundleKoszulComplex.mixedLineBundleKoszulComplex M bs)) ≅ |
| 29 | ScalarKoszul.KoszulComplex.scalarKoszulComplex (F.obj M) (bs.map ρ) := by |
| 30 | have : PreservesFiniteBiproducts F := Functor.preservesFiniteBiproductsOfAdditive F |
| 31 | induction bs with |
| 32 | | nil => exact (HomologicalComplex.singleMapHomologicalComplex F (.up ℤ) 0).app M |
| 33 | | cons b bs ih => |
| 34 | let e := Classical.choose (hframe b (by simp)) |
| 35 | have he := Classical.choose_spec (hframe b (by simp)) |
| 36 | let C := LineBundleKoszulComplex.mixedLineBundleKoszulComplex M bs |
| 37 | let FC := (F.mapHomologicalComplex (.up ℤ)).obj C |
| 38 | let D := ScalarKoszul.KoszulComplex.scalarKoszulComplex (F.obj M) (bs.map ρ) |
| 39 | let a : FC ≅ D := ih (fun b hb => hframe b (List.mem_cons_of_mem _ hb)) |
| 40 | let r := Frame.Coordinates.structureModuleEndValue X (b.2 ≫ e.hom) |
| 41 | have hscalar : (F.mapHomologicalComplex (.up ℤ)).map (LineBundleKoszulStep.globalScalarComplexMap r C) = |
| 42 | ρ b • 𝟙 FC := by |
| 43 | apply HomologicalComplex.Hom.ext |
| 44 | funext i |
| 45 | change F.map (Global.ModuleScalars.globalModuleScalar (C.X i) r) = ρ b • 𝟙 (F.obj (C.X i)) |
| 46 | rw [hF, he] |
| 47 | let e₁ := (F.mapHomologicalComplex (.up ℤ)).mapIso (LineBundleKoszulStep.framedLineBundleKoszulStepIso b.1 b.2 e C) |
| 48 | let e₂ := CochainComplex.mappingCone.mapHomologicalComplexIso (LineBundleKoszulStep.globalScalarComplexMap r C) F |
| 49 | let e₃ := eqToIso (congrArg (fun f : FC ⟶ FC => CochainComplex.mappingCone f) hscalar) |
| 50 | let e₄ := HomologicalComplex.homotopyCofiber.mapArrowIso (ρ b • 𝟙 FC) (ρ b • 𝟙 D) |
| 51 | (fun j => ⟨j - 1, by change j - 1 + 1 = j; omega⟩) |
| 52 | (Arrow.isoMk a a (by |
| 53 | change a.hom ≫ (ρ b • 𝟙 D) = (ρ b • 𝟙 FC) ≫ a.hom |
| 54 | simp only [Linear.smul_comp, Linear.comp_smul, Category.id_comp, Category.comp_id])) |
| 55 | exact e₁ ≪≫ e₂ ≪≫ e₃ ≪≫ e₄ |
| 56 | |
| 57 | theorem framedMixedKoszulFunctor_finite_free (F : X.Modules ⥤ ModuleCat.{u} R) [F.Additive] |
| 58 | (φ : Γ(X, ⊤) →+* R) |
| 59 | (hF : ∀ (M : X.Modules) (r : Γ(X, ⊤)), |
| 60 | F.map (Global.ModuleScalars.globalModuleScalar M r) = φ r • 𝟙 (F.obj M)) |
| 61 | (M : X.Modules) [Module.Finite R (F.obj M)] [Module.Free R (F.obj M)] |
| 62 | (bs : List (LineBundleKoszulComplex.LineBundleSection X)) (ρ : LineBundleKoszulComplex.LineBundleSection X → R) |
| 63 | (hframe : ∀ b ∈ bs, ∃ e : b.1.sheaf ≅ Line.Bundles.structureModule X, |
| 64 | φ (Frame.Coordinates.structureModuleEndValue X (b.2 ≫ e.hom)) = ρ b) : |
| 65 | ∀ i, Module.Finite R (F.obj ((LineBundleKoszulComplex.mixedLineBundleKoszulComplex M bs).X i)) ∧ |
| 66 | Module.Free R (F.obj ((LineBundleKoszulComplex.mixedLineBundleKoszulComplex M bs).X i)) := by |
| 67 | let e := framedMixedKoszulFunctorIso F φ hF M bs ρ hframe |
| 68 | intro i |
| 69 | have hff := ScalarKoszul.FiniteTerms.scalarKoszulComplex_finite_free (F.obj M) (bs.map ρ) i |
| 70 | have : Module.Finite R ((ScalarKoszul.KoszulComplex.scalarKoszulComplex (F.obj M) (bs.map ρ)).X i) := hff.1 |
| 71 | have : Module.Free R ((ScalarKoszul.KoszulComplex.scalarKoszulComplex (F.obj M) (bs.map ρ)).X i) := hff.2 |
| 72 | let ei : ((ScalarKoszul.KoszulComplex.scalarKoszulComplex (F.obj M) (bs.map ρ)).X i) ≃ₗ[R] |
| 73 | F.obj ((LineBundleKoszulComplex.mixedLineBundleKoszulComplex M bs).X i) := |
| 74 | ((HomologicalComplex.eval (ModuleCat.{u} R) (.up ℤ) i).mapIso e).symm.toLinearEquiv |
| 75 | exact ⟨Module.Finite.equiv ei, Module.Free.of_equiv ei⟩ |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Framed.MixedKoszulFunctor |