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.Crystalline.Cohomology.AlgebraicForms |
| 2 | import Mathlib.Algebra.Module.LocalizedModule.IsLocalization |
| 3 | |
| 4 | /-! # Coordinate Localization -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Affine.CoordinateLocalization.AffineCoordinates |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual coordinate-ring restriction from an affine spectrum to a principal open is a module localization over its affine base. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable (A : Type u) [CommRing A] |
| 17 | |
| 18 | local instance sectionAlgebra (U : (Spec (CommRingCat.of A)).Opens) : |
| 19 | Algebra A Γ(Spec (CommRingCat.of A), U) := |
| 20 | StructureSheaf.openAlgebra A (op U) |
| 21 | |
| 22 | def algebras : (Spec (CommRingCat.of A)).Opensᵒᵖ ⥤ CommAlgCat.{u} A where |
| 23 | obj U := CommAlgCat.of A Γ(Spec (CommRingCat.of A), U.unop) |
| 24 | map f := CommAlgCat.ofHom |
| 25 | { ((Spec (CommRingCat.of A)).presheaf.map f).hom with |
| 26 | commutes' a := ConcreteCategory.congr_hom (StructureSheaf.algebraMap_self_map A _ _ f) a } |
| 27 | map_id U := by |
| 28 | apply CommAlgCat.hom_ext |
| 29 | apply AlgHom.ext |
| 30 | intro x |
| 31 | exact ConcreteCategory.congr_hom ((Spec (CommRingCat.of A)).presheaf.map_id U) x |
| 32 | map_comp f g := by |
| 33 | apply CommAlgCat.hom_ext |
| 34 | apply AlgHom.ext |
| 35 | intro x |
| 36 | exact ConcreteCategory.congr_hom ((Spec (CommRingCat.of A)).presheaf.map_comp f g) x |
| 37 | |
| 38 | def principalRestriction (a : A) : |
| 39 | op (⊤ : (Spec (CommRingCat.of A)).Opens) ⟶ |
| 40 | op (PrimeSpectrum.basicOpen a : (Spec (CommRingCat.of A)).Opens) := |
| 41 | (homOfLE (show (PrimeSpectrum.basicOpen a : (Spec (CommRingCat.of A)).Opens) ≤ ⊤ from le_top)).op |
| 42 | |
| 43 | theorem principal_restriction_isLocalized (a : A) : |
| 44 | IsLocalizedModule (Submonoid.powers a) |
| 45 | ((algebras A).map (PrimeSpectrum.basicOpen a).leTop.op).hom.toLinearMap := by |
| 46 | let : IsLocalization.Away a ((algebras A).obj (op (PrimeSpectrum.basicOpen a))) := |
| 47 | StructureSheaf.IsLocalization.to_basicOpen A a |
| 48 | let f := ((algebras A).map (PrimeSpectrum.basicOpen a).leTop.op).hom.toLinearMap |
| 49 | let e := Algebra.linearMap A ((algebras A).obj (op ⊤)) |
| 50 | have he : Function.Bijective e := by |
| 51 | change Function.Bijective (StructureSheaf.toOpenₗ A A ⊤) |
| 52 | exact StructureSheaf.toOpenₗ_top_bijective |
| 53 | have hc : f.comp e = Algebra.linearMap A ((algebras A).obj (op (PrimeSpectrum.basicOpen a))) := by |
| 54 | apply LinearMap.ext |
| 55 | intro x |
| 56 | exact ((algebras A).map (PrimeSpectrum.basicOpen a).leTop.op).hom.commutes x |
| 57 | have hl : IsLocalizedModule (Submonoid.powers a) (f.comp e) := by |
| 58 | rw [hc] |
| 59 | infer_instance |
| 60 | exact (IsLocalizedModule.comp_iff_of_bijective_right (Submonoid.powers a) e he).mp hl |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Affine.CoordinateLocalization.AffineCoordinates |