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 | /- |
| 2 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/SchemeModuleQuasicoherent.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.ModulePresentations |
| 8 | |
| 9 | /-! # Finite Generating Sections -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Spec.FiniteGeneratingSections |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! A finite module of global sections on a quasicoherent affine spectrum gives actual finite global sheaf generators. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.AlgebraicGeometry.Scheme.Modules Opposite |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {R : CommRingCat.{u}} |
| 22 | |
| 23 | theorem spec_exists_finite_generatingSections |
| 24 | (M : (Spec R).Modules) [M.IsQuasicoherent] |
| 25 | [Module.Finite R Γ(M, ⊤)] : |
| 26 | ∃ G : M.GeneratingSections, G.IsFiniteType := by |
| 27 | let : Module.Finite R (moduleSpecΓFunctor.obj M) := by |
| 28 | change Module.Finite R Γ(M, ⊤) |
| 29 | infer_instance |
| 30 | obtain ⟨n, s, hs⟩ := Module.Finite.exists_fin |
| 31 | (R := R) (M := moduleSpecΓFunctor.obj M) |
| 32 | let ι := ULift.{u} (Fin n) |
| 33 | let v : ι → moduleSpecΓFunctor.obj M := fun i ↦ s i.down |
| 34 | have hv : Submodule.span R (Set.range v) = ⊤ := by |
| 35 | have hrange : Set.range v = Set.range s := by |
| 36 | ext x |
| 37 | constructor |
| 38 | · rintro ⟨i, rfl⟩ |
| 39 | exact ⟨i.down, rfl⟩ |
| 40 | · rintro ⟨i, rfl⟩ |
| 41 | exact ⟨ULift.up i, rfl⟩ |
| 42 | rw [hrange, hs] |
| 43 | let p' : ModuleCat.of R (ι →₀ R) ⟶ moduleSpecΓFunctor.obj M := by |
| 44 | change ModuleCat.of R (ι →₀ R) ⟶ |
| 45 | ModuleCat.of R (moduleSpecΓFunctor.obj M) |
| 46 | exact ModuleCat.ofHom (Finsupp.linearCombination R v) |
| 47 | let : Epi p' := (ModuleCat.epi_iff_surjective p').mpr |
| 48 | ((span_range_eq_top_iff_surjective_finsuppLinearCombination R).mp hv) |
| 49 | let : (tilde.functor R).PreservesEpimorphisms := |
| 50 | Functor.preservesEpimorphisms_of_adjunction tilde.adjunction |
| 51 | have hmap : Epi ((tilde.functor R).map p') := |
| 52 | Functor.map_epi (tilde.functor R) p' |
| 53 | let : IsIso M.fromTildeΓ := inferInstance |
| 54 | have hfrom : Epi M.fromTildeΓ := IsIso.epi_of_iso M.fromTildeΓ |
| 55 | let e := tildeFinsupp (R := R) ι |
| 56 | let : IsIso e.inv := e.isIso_inv |
| 57 | have he : Epi e.inv := IsIso.epi_of_iso e.inv |
| 58 | let f : SheafOfModules.free (R := (Spec R).ringCatSheaf) ι ⟶ M := |
| 59 | e.inv ≫ (tilde.functor R).map p' ≫ M.fromTildeΓ |
| 60 | have : Epi f := by |
| 61 | have hleft : Epi (e.inv ≫ (tilde.functor R).map p') := |
| 62 | epi_comp' he hmap |
| 63 | have hfull : Epi ((e.inv ≫ (tilde.functor R).map p') ≫ M.fromTildeΓ) := |
| 64 | epi_comp' hleft hfrom |
| 65 | exact hfull |
| 66 | let G : M.GeneratingSections := |
| 67 | { I := ι |
| 68 | s := M.freeHomEquiv f |
| 69 | epi := by |
| 70 | rw [Equiv.symm_apply_apply] |
| 71 | infer_instance } |
| 72 | have : G.IsFiniteType := ⟨inferInstance⟩ |
| 73 | exact ⟨G, inferInstance⟩ |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Spec.FiniteGeneratingSections |