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.ArithmeticGeometry.OrdinaryLocus.Openness.AffineCech |
| 2 | import Mathlib.Topology.Sheaves.SheafCondition.UniqueGluing |
| 3 | |
| 4 | /-! # Affine Cech Gluing -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineCechGluing.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Gluing and functoriality for Čech cochains of affine sheaves. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable (R : CommRingCat.{u}) |
| 17 | (F : TopCat.Sheaf (ModuleCat.{u} R) (TopCat.of (PrimeSpectrum R))) |
| 18 | {ι : Type v} (f : ι → R) |
| 19 | |
| 20 | theorem affinePair_restriction_eq_iff |
| 21 | {U V W : TopologicalSpace.Opens (PrimeSpectrum R)} (hW : W = U ⊓ V) |
| 22 | (hU : W ≤ U) (hV : W ≤ V) (x : F.obj.obj (op U)) (y : F.obj.obj (op V)) : |
| 23 | F.obj.map (homOfLE hU).op x = F.obj.map (homOfLE hV).op y ↔ |
| 24 | F.obj.map (U.infLELeft V).op x = F.obj.map (U.infLERight V).op y := by |
| 25 | subst W |
| 26 | rfl |
| 27 | |
| 28 | theorem affineCechD0_eq_zero_iff (x : AffineCech.Construction.affineCechC0 R F f) : |
| 29 | AffineCech.Construction.affineCechD0 R F f x = 0 ↔ |
| 30 | TopCat.Presheaf.IsCompatible F.obj (fun i ↦ PrimeSpectrum.basicOpen (f i)) x := by |
| 31 | constructor |
| 32 | · intro hx i j |
| 33 | have h := congrFun (congrFun hx i) j |
| 34 | change AffineSectionCoordinates.Construction.affineBasicSectionRestriction R F (f j) (f i * f j) (dvd_mul_left _ _) (x j) - |
| 35 | AffineSectionCoordinates.Construction.affineBasicSectionRestriction R F (f i) (f i * f j) (dvd_mul_right _ _) (x i) = 0 at h |
| 36 | have h' := (sub_eq_zero.mp h).symm |
| 37 | exact (affinePair_restriction_eq_iff R F (PrimeSpectrum.basicOpen_mul _ _) |
| 38 | (AffineSectionCoordinates.Construction.principalBasicOpen_le_of_dvd R _ _ (dvd_mul_right _ _)) |
| 39 | (AffineSectionCoordinates.Construction.principalBasicOpen_le_of_dvd R _ _ (dvd_mul_left _ _)) (x i) (x j)).mp h' |
| 40 | · intro hx |
| 41 | funext i j |
| 42 | change AffineSectionCoordinates.Construction.affineBasicSectionRestriction R F (f j) (f i * f j) (dvd_mul_left _ _) (x j) - |
| 43 | AffineSectionCoordinates.Construction.affineBasicSectionRestriction R F (f i) (f i * f j) (dvd_mul_right _ _) (x i) = 0 |
| 44 | apply sub_eq_zero.mpr |
| 45 | exact ((affinePair_restriction_eq_iff R F (PrimeSpectrum.basicOpen_mul _ _) |
| 46 | (AffineSectionCoordinates.Construction.principalBasicOpen_le_of_dvd R _ _ (dvd_mul_right _ _)) |
| 47 | (AffineSectionCoordinates.Construction.principalBasicOpen_le_of_dvd R _ _ (dvd_mul_left _ _)) (x i) (x j)).mpr (hx i j)).symm |
| 48 | |
| 49 | theorem affineCech_sections_glue (hf : Ideal.span (Set.range f) = ⊤) |
| 50 | (x : AffineCech.Construction.affineCechC0 R F f) (hx : AffineCech.Construction.affineCechD0 R F f x = 0) : |
| 51 | ∃! m : F.obj.obj (op ⊤), ∀ i, F.obj.map (PrimeSpectrum.basicOpen (f i)).leTop.op m = x i := by |
| 52 | exact F.existsUnique_gluing' (fun i ↦ PrimeSpectrum.basicOpen (f i)) ⊤ |
| 53 | (fun _ ↦ homOfLE le_top) |
| 54 | (by rw [(PrimeSpectrum.iSup_basicOpen_eq_top_iff).mpr hf]) x |
| 55 | ((affineCechD0_eq_zero_iff R F f x).mp hx) |
| 56 | |
| 57 | theorem affineCechD1_comp_D0_unconditional : AffineCech.Construction.affineCechD1 R F f ∘ₗ AffineCech.Construction.affineCechD0 R F f = 0 := by |
| 58 | apply LinearMap.ext |
| 59 | intro x |
| 60 | funext i j k |
| 61 | simp [AffineCech.Construction.affineCechD0, AffineCech.Construction.affineCechD1, AffineSectionCoordinates.Construction.affineBasicSectionRestriction_comp_apply R F] |
| 62 | |
| 63 | variable {G : TopCat.Sheaf (ModuleCat.{u} R) (TopCat.of (PrimeSpectrum R))} (φ : F ⟶ G) |
| 64 | |
| 65 | def affineCechMap0 : AffineCech.Construction.affineCechC0 R F f →ₗ[R] AffineCech.Construction.affineCechC0 R G f := |
| 66 | LinearMap.pi fun i ↦ (φ.hom.app _).hom ∘ₗ LinearMap.proj i |
| 67 | |
| 68 | def affineCechMap1 : AffineCech.Construction.affineCechC1 R F f →ₗ[R] AffineCech.Construction.affineCechC1 R G f := |
| 69 | LinearMap.pi fun i ↦ LinearMap.pi fun j ↦ |
| 70 | (φ.hom.app _).hom ∘ₗ LinearMap.proj j ∘ₗ LinearMap.proj i |
| 71 | |
| 72 | def affineCechMap2 : AffineCech.Construction.affineCechC2 R F f →ₗ[R] AffineCech.Construction.affineCechC2 R G f := |
| 73 | LinearMap.pi fun i ↦ LinearMap.pi fun j ↦ LinearMap.pi fun k ↦ |
| 74 | (φ.hom.app _).hom ∘ₗ LinearMap.proj k ∘ₗ LinearMap.proj j ∘ₗ LinearMap.proj i |
| 75 | |
| 76 | theorem affineCechMap0_d (x : AffineCech.Construction.affineCechC0 R F f) : |
| 77 | AffineCech.Construction.affineCechD0 R G f (affineCechMap0 R F f φ x) = |
| 78 | affineCechMap1 R F f φ (AffineCech.Construction.affineCechD0 R F f x) := by |
| 79 | funext i j |
| 80 | simp [AffineCech.Construction.affineCechD0, affineCechMap0, affineCechMap1, |
| 81 | AffineSectionCoordinates.Construction.affineBasicSectionRestriction_naturality R F φ] |
| 82 | |
| 83 | theorem affineCechMap1_d (z : AffineCech.Construction.affineCechC1 R F f) : |
| 84 | AffineCech.Construction.affineCechD1 R G f (affineCechMap1 R F f φ z) = |
| 85 | affineCechMap2 R F f φ (AffineCech.Construction.affineCechD1 R F f z) := by |
| 86 | funext i j k |
| 87 | simp [AffineCech.Construction.affineCechD1, affineCechMap1, affineCechMap2, |
| 88 | AffineSectionCoordinates.Construction.affineBasicSectionRestriction_naturality R F φ] |
| 89 | |
| 90 | theorem affineCechMap2_injective |
| 91 | (hφ : ∀ r : R, Function.Injective (φ.hom.app (op (PrimeSpectrum.basicOpen r)))) : |
| 92 | Function.Injective (affineCechMap2 R F f φ) := by |
| 93 | intro x y h |
| 94 | funext i j k |
| 95 | exact hφ _ (congrFun (congrFun (congrFun h i) j) k) |
| 96 | |
| 97 | def affineCechUnit : F.obj.obj (op ⊤) →ₗ[R] AffineCech.Construction.affineCechC0 R F f := |
| 98 | LinearMap.pi fun i ↦ (F.obj.map (PrimeSpectrum.basicOpen (f i)).leTop.op).hom |
| 99 | |
| 100 | theorem affineCechUnit_d (m : F.obj.obj (op ⊤)) : |
| 101 | AffineCech.Construction.affineCechD0 R F f (affineCechUnit R F f m) = 0 := by |
| 102 | apply (affineCechD0_eq_zero_iff R F f _).mpr |
| 103 | intro i j |
| 104 | change F.obj.map ((PrimeSpectrum.basicOpen (f i)).infLELeft (PrimeSpectrum.basicOpen (f j))).op |
| 105 | (F.obj.map (PrimeSpectrum.basicOpen (f i)).leTop.op m) = |
| 106 | F.obj.map ((PrimeSpectrum.basicOpen (f i)).infLERight (PrimeSpectrum.basicOpen (f j))).op |
| 107 | (F.obj.map (PrimeSpectrum.basicOpen (f j)).leTop.op m) |
| 108 | rw [← ModuleCat.comp_apply, ← ModuleCat.comp_apply, ← F.obj.map_comp, ← F.obj.map_comp] |
| 109 | rfl |
| 110 | |
| 111 | theorem affineCechUnit_naturality (m : F.obj.obj (op ⊤)) : |
| 112 | affineCechMap0 R F f φ (affineCechUnit R F f m) = |
| 113 | affineCechUnit R G f (φ.hom.app (op ⊤) m) := by |
| 114 | funext i |
| 115 | exact NatTrans.naturality_apply φ.hom (PrimeSpectrum.basicOpen (f i)).leTop.op m |
| 116 | |
| 117 | end |
| 118 | |
| 119 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineCechGluing.Construction |