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.PrincipalCech |
| 2 | import Mathlib.AlgebraicGeometry.Modules.Tilde |
| 3 | |
| 4 | /-! # Affine Section Coordinates -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineSectionCoordinates.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Localization coordinates for sections of quasicoherent sheaves on affine schemes. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable (R : CommRingCat.{u}) (F : TopCat.Sheaf (ModuleCat.{u} R) (TopCat.of (PrimeSpectrum R))) |
| 18 | (hF : ∀ f : R, IsLocalizedModule (Submonoid.powers f) |
| 19 | (F.obj.map (PrimeSpectrum.basicOpen f).leTop.op).hom) |
| 20 | |
| 21 | def affineBasicSectionEquiv (f : R) : |
| 22 | Localization.Away f ⊗[R] F.obj.obj (op ⊤) ≃ₗ[R] |
| 23 | F.obj.obj (op (PrimeSpectrum.basicOpen f)) := by |
| 24 | let : IsLocalizedModule (Submonoid.powers f) |
| 25 | (F.obj.map (PrimeSpectrum.basicOpen f).leTop.op).hom := hF f |
| 26 | exact IsLocalizedModule.linearEquiv (Submonoid.powers f) |
| 27 | (TensorProduct.mk R (Localization.Away f) (F.obj.obj (op ⊤)) 1) |
| 28 | (F.obj.map (PrimeSpectrum.basicOpen f).leTop.op).hom |
| 29 | |
| 30 | theorem affineBasicSectionEquiv_unit (f : R) (m : F.obj.obj (op ⊤)) : |
| 31 | affineBasicSectionEquiv R F hF f (1 ⊗ₜ[R] m) = |
| 32 | F.obj.map (PrimeSpectrum.basicOpen f).leTop.op m := by |
| 33 | let : IsLocalizedModule (Submonoid.powers f) |
| 34 | (F.obj.map (PrimeSpectrum.basicOpen f).leTop.op).hom := hF f |
| 35 | change (IsLocalizedModule.linearEquiv (Submonoid.powers f) |
| 36 | (TensorProduct.mk R (Localization.Away f) (F.obj.obj (op ⊤)) 1) |
| 37 | (F.obj.map (PrimeSpectrum.basicOpen f).leTop.op).hom) |
| 38 | ((TensorProduct.mk R (Localization.Away f) (F.obj.obj (op ⊤)) 1) m) = |
| 39 | (F.obj.map (PrimeSpectrum.basicOpen f).leTop.op).hom m |
| 40 | apply IsLocalizedModule.linearEquiv_apply |
| 41 | |
| 42 | theorem principalBasicOpen_le_of_dvd (f h : R) (hfh : f ∣ h) : |
| 43 | PrimeSpectrum.basicOpen h ≤ PrimeSpectrum.basicOpen f := by |
| 44 | intro p hp hpf |
| 45 | exact hp (p.asIdeal.mem_of_dvd hfh hpf) |
| 46 | |
| 47 | def affineBasicSectionRestriction (f h : R) (hfh : f ∣ h) : |
| 48 | F.obj.obj (op (PrimeSpectrum.basicOpen f)) →ₗ[R] |
| 49 | F.obj.obj (op (PrimeSpectrum.basicOpen h)) := |
| 50 | (F.obj.map (homOfLE (principalBasicOpen_le_of_dvd R f h hfh)).op).hom |
| 51 | |
| 52 | theorem affineBasicSectionRestriction_comp (f g h : R) (hfg : f ∣ g) (hgh : g ∣ h) : |
| 53 | affineBasicSectionRestriction R F g h hgh ∘ₗ affineBasicSectionRestriction R F f g hfg = |
| 54 | affineBasicSectionRestriction R F f h (hfg.trans hgh) := by |
| 55 | change (F.obj.map (homOfLE (principalBasicOpen_le_of_dvd R f g hfg)).op ≫ |
| 56 | F.obj.map (homOfLE (principalBasicOpen_le_of_dvd R g h hgh)).op).hom = _ |
| 57 | rw [← F.obj.map_comp] |
| 58 | rfl |
| 59 | |
| 60 | theorem affineBasicSectionRestriction_comp_apply (f g h : R) (hfg : f ∣ g) (hgh : g ∣ h) |
| 61 | (x : F.obj.obj (op (PrimeSpectrum.basicOpen f))) : |
| 62 | affineBasicSectionRestriction R F g h hgh (affineBasicSectionRestriction R F f g hfg x) = |
| 63 | affineBasicSectionRestriction R F f h (hfg.trans hgh) x := |
| 64 | LinearMap.congr_fun (affineBasicSectionRestriction_comp R F f g h hfg hgh) x |
| 65 | |
| 66 | theorem affineBasicSectionRestriction_naturality |
| 67 | {G : TopCat.Sheaf (ModuleCat.{u} R) (TopCat.of (PrimeSpectrum R))} (φ : F ⟶ G) |
| 68 | (f h : R) (hfh : f ∣ h) (x : F.obj.obj (op (PrimeSpectrum.basicOpen f))) : |
| 69 | affineBasicSectionRestriction R G f h hfh (φ.hom.app _ x) = |
| 70 | φ.hom.app _ (affineBasicSectionRestriction R F f h hfh x) := |
| 71 | (NatTrans.naturality_apply φ.hom |
| 72 | (homOfLE (principalBasicOpen_le_of_dvd R f h hfh)).op x).symm |
| 73 | |
| 74 | include hF in |
| 75 | theorem affineBasicSection_scalar_unit (f h : R) (hfh : f ∣ h) : |
| 76 | ∀ x : Submonoid.powers f, |
| 77 | IsUnit (algebraMap R (Module.End R (F.obj.obj (op (PrimeSpectrum.basicOpen h)))) x) := by |
| 78 | let : IsLocalizedModule (Submonoid.powers h) |
| 79 | (F.obj.map (PrimeSpectrum.basicOpen h).leTop.op).hom := hF h |
| 80 | have hh : IsUnit |
| 81 | ((algebraMap R (Module.End R (F.obj.obj (op (PrimeSpectrum.basicOpen h))))) h) := |
| 82 | IsLocalizedModule.map_units (S := Submonoid.powers h) |
| 83 | (F.obj.map (PrimeSpectrum.basicOpen h).leTop.op).hom ⟨h, 1, by simp⟩ |
| 84 | obtain ⟨c, rfl⟩ := hfh |
| 85 | have hf : IsUnit |
| 86 | ((algebraMap R (Module.End R (F.obj.obj (op (PrimeSpectrum.basicOpen (f * c)))))) f) := by |
| 87 | exact ((Commute.isUnit_mul_iff (.map (.all f c) _)).mp (by simpa using hh)).1 |
| 88 | rintro ⟨_, n, rfl⟩ |
| 89 | simpa using hf.pow n |
| 90 | |
| 91 | theorem affineBasicSectionEquiv_restrict (f h : R) (hfh : f ∣ h) : |
| 92 | affineBasicSectionRestriction R F f h hfh ∘ₗ (affineBasicSectionEquiv R F hF f).toLinearMap = |
| 93 | (affineBasicSectionEquiv R F hF h).toLinearMap ∘ₗ |
| 94 | PrincipalOverlaps.Construction.principalRestrictionModule R (F.obj.obj (op ⊤)) f h hfh := by |
| 95 | apply IsLocalizedModule.ext (Submonoid.powers f) |
| 96 | (TensorProduct.mk R (Localization.Away f) (F.obj.obj (op ⊤)) 1) |
| 97 | (affineBasicSection_scalar_unit R F hF f h hfh) |
| 98 | apply LinearMap.ext |
| 99 | intro m |
| 100 | simp only [LinearMap.comp_apply, LinearEquiv.coe_coe, TensorProduct.mk_apply, |
| 101 | affineBasicSectionEquiv_unit R F hF] |
| 102 | change F.obj.map (homOfLE (principalBasicOpen_le_of_dvd R f h hfh)).op |
| 103 | (F.obj.map (PrimeSpectrum.basicOpen f).leTop.op m) = _ |
| 104 | rw [← ModuleCat.comp_apply, ← F.obj.map_comp] |
| 105 | change F.obj.map (PrimeSpectrum.basicOpen h).leTop.op m = _ |
| 106 | simp [PrincipalOverlaps.Construction.principalRestrictionModule, affineBasicSectionEquiv_unit R F hF] |
| 107 | |
| 108 | theorem affineBasicSectionEquiv_restrict_apply (f h : R) (hfh : f ∣ h) |
| 109 | (z : Localization.Away f ⊗[R] F.obj.obj (op ⊤)) : |
| 110 | affineBasicSectionRestriction R F f h hfh (affineBasicSectionEquiv R F hF f z) = |
| 111 | affineBasicSectionEquiv R F hF h |
| 112 | (PrincipalOverlaps.Construction.principalRestrictionModule R (F.obj.obj (op ⊤)) f h hfh z) := |
| 113 | LinearMap.congr_fun (affineBasicSectionEquiv_restrict R F hF f h hfh) z |
| 114 | |
| 115 | end |
| 116 | |
| 117 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineSectionCoordinates.Construction |