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.AffineSectionCoordinates |
| 2 | |
| 3 | /-! # Affine Cech -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineCech.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Vanishing of additive degree-one Čech cocycles for affine quasicoherent sheaves. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 12 | |
| 13 | universe u v |
| 14 | |
| 15 | variable (R : CommRingCat.{u}) |
| 16 | (F : TopCat.Sheaf (ModuleCat.{u} R) (TopCat.of (PrimeSpectrum R))) |
| 17 | (hF : ∀ r : R, IsLocalizedModule (Submonoid.powers r) |
| 18 | (F.obj.map (PrimeSpectrum.basicOpen r).leTop.op).hom) |
| 19 | {ι : Type v} [Fintype ι] [DecidableEq ι] (f : ι → R) |
| 20 | |
| 21 | abbrev affineCechC0 := ∀ i, F.obj.obj (op (PrimeSpectrum.basicOpen (f i))) |
| 22 | abbrev affineCechC1 := ∀ i j, F.obj.obj (op (PrimeSpectrum.basicOpen (f i * f j))) |
| 23 | abbrev affineCechC2 := ∀ i j k, F.obj.obj (op (PrimeSpectrum.basicOpen (f i * (f j * f k)))) |
| 24 | |
| 25 | def affineCechD0 : affineCechC0 R F f →ₗ[R] affineCechC1 R F f := |
| 26 | LinearMap.pi fun i ↦ LinearMap.pi fun j ↦ |
| 27 | AffineSectionCoordinates.Construction.affineBasicSectionRestriction R F (f j) (f i * f j) (dvd_mul_left _ _) ∘ₗ LinearMap.proj j - |
| 28 | AffineSectionCoordinates.Construction.affineBasicSectionRestriction R F (f i) (f i * f j) (dvd_mul_right _ _) ∘ₗ LinearMap.proj i |
| 29 | |
| 30 | def affineCechD1 : affineCechC1 R F f →ₗ[R] affineCechC2 R F f := |
| 31 | LinearMap.pi fun i ↦ LinearMap.pi fun j ↦ LinearMap.pi fun k ↦ |
| 32 | AffineSectionCoordinates.Construction.affineBasicSectionRestriction R F (f j * f k) (f i * (f j * f k)) (dvd_mul_left _ _) ∘ₗ |
| 33 | LinearMap.proj k ∘ₗ LinearMap.proj j - |
| 34 | AffineSectionCoordinates.Construction.affineBasicSectionRestriction R F (f i * f k) (f i * (f j * f k)) |
| 35 | (by use f j; ring) ∘ₗ LinearMap.proj k ∘ₗ LinearMap.proj i + |
| 36 | AffineSectionCoordinates.Construction.affineBasicSectionRestriction R F (f i * f j) (f i * (f j * f k)) |
| 37 | (by use f k; ring) ∘ₗ LinearMap.proj j ∘ₗ LinearMap.proj i |
| 38 | |
| 39 | def affineCechEquiv0 : PrincipalCech.Construction.principalCechC0 R f (F.obj.obj (op ⊤)) ≃ₗ[R] affineCechC0 R F f := |
| 40 | LinearEquiv.piCongrRight fun i ↦ AffineSectionCoordinates.Construction.affineBasicSectionEquiv R F hF (f i) |
| 41 | |
| 42 | def affineCechEquiv1 : PrincipalCech.Construction.principalCechC1 R f (F.obj.obj (op ⊤)) ≃ₗ[R] affineCechC1 R F f := |
| 43 | LinearEquiv.piCongrRight fun i ↦ LinearEquiv.piCongrRight fun j ↦ |
| 44 | AffineSectionCoordinates.Construction.affineBasicSectionEquiv R F hF (f i * f j) |
| 45 | |
| 46 | def affineCechEquiv2 : PrincipalCech.Construction.principalCechC2 R f (F.obj.obj (op ⊤)) ≃ₗ[R] affineCechC2 R F f := |
| 47 | LinearEquiv.piCongrRight fun i ↦ LinearEquiv.piCongrRight fun j ↦ |
| 48 | LinearEquiv.piCongrRight fun k ↦ AffineSectionCoordinates.Construction.affineBasicSectionEquiv R F hF (f i * (f j * f k)) |
| 49 | |
| 50 | omit [Fintype ι] [DecidableEq ι] in |
| 51 | theorem affineCechD0_comparison (x : PrincipalCech.Construction.principalCechC0 R f (F.obj.obj (op ⊤))) : |
| 52 | affineCechD0 R F f (affineCechEquiv0 R F hF f x) = |
| 53 | affineCechEquiv1 R F hF f (PrincipalCech.Construction.principalCechD0 R f (F.obj.obj (op ⊤)) x) := by |
| 54 | funext i j |
| 55 | simp [affineCechD0, affineCechEquiv0, affineCechEquiv1, PrincipalCech.Construction.principalCechD0, |
| 56 | AffineSectionCoordinates.Construction.affineBasicSectionEquiv_restrict_apply R F hF] |
| 57 | |
| 58 | omit [Fintype ι] [DecidableEq ι] in |
| 59 | theorem affineCechD1_comparison (z : PrincipalCech.Construction.principalCechC1 R f (F.obj.obj (op ⊤))) : |
| 60 | affineCechD1 R F f (affineCechEquiv1 R F hF f z) = |
| 61 | affineCechEquiv2 R F hF f (PrincipalCech.Construction.principalCechD1 R f (F.obj.obj (op ⊤)) z) := by |
| 62 | funext i j k |
| 63 | simp [affineCechD1, affineCechEquiv1, affineCechEquiv2, PrincipalCech.Construction.principalCechD1, |
| 64 | AffineSectionCoordinates.Construction.affineBasicSectionEquiv_restrict_apply R F hF] |
| 65 | |
| 66 | include hF in |
| 67 | theorem affineCech_exact_degreeOne (hf : Ideal.span (Set.range f) = ⊤) : |
| 68 | Function.Exact (affineCechD0 R F f) (affineCechD1 R F f) := by |
| 69 | intro z |
| 70 | constructor |
| 71 | · intro hz |
| 72 | obtain ⟨w, rfl⟩ := (affineCechEquiv1 R F hF f).surjective z |
| 73 | rw [affineCechD1_comparison] at hz |
| 74 | have hw : PrincipalCech.Construction.principalCechD1 R f (F.obj.obj (op ⊤)) w = 0 := |
| 75 | (affineCechEquiv2 R F hF f).injective (hz.trans (map_zero _).symm) |
| 76 | obtain ⟨x, hx⟩ := (PrincipalCech.Construction.principalCech_exact_degreeOne R f (F.obj.obj (op ⊤)) hf w).mp hw |
| 77 | refine ⟨affineCechEquiv0 R F hF f x, ?_⟩ |
| 78 | rw [affineCechD0_comparison, hx] |
| 79 | · rintro ⟨x, rfl⟩ |
| 80 | obtain ⟨y, rfl⟩ := (affineCechEquiv0 R F hF f).surjective x |
| 81 | rw [affineCechD0_comparison, affineCechD1_comparison] |
| 82 | have h := LinearMap.congr_fun (PrincipalCech.Construction.principalCechD1_comp_D0 R f (F.obj.obj (op ⊤))) y |
| 83 | change PrincipalCech.Construction.principalCechD1 R f (F.obj.obj (op ⊤)) |
| 84 | (PrincipalCech.Construction.principalCechD0 R f (F.obj.obj (op ⊤)) y) = 0 at h |
| 85 | rw [h, map_zero] |
| 86 | |
| 87 | theorem quasicoherent_affineCech_exact (N : (Spec R).Modules) [N.IsQuasicoherent] |
| 88 | (hf : Ideal.span (Set.range f) = ⊤) : |
| 89 | Function.Exact (affineCechD0 R (modulesSpecToSheaf.obj N) f) |
| 90 | (affineCechD1 R (modulesSpecToSheaf.obj N) f) := by |
| 91 | have hN : IsLocalizing (modulesSpecToSheaf.obj N) := |
| 92 | (isIso_fromTildeΓ_iff_isLocalizing N).mp inferInstance |
| 93 | exact affineCech_exact_degreeOne R (modulesSpecToSheaf.obj N) hN f hf |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineCech.Construction |