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.NumberTheory.PadicHodge.IntegralComparison.Coherent.CoherentPullback |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.KernelTowerMap |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.NegativeResolution |
| 4 | |
| 5 | /-! # Negative Common Refinement -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.NegativeCommonRefinement |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Two coherent kernel resolutions admit a common negative-twist |
| 12 | refinement over any specified pair of maps from the initial sheaf. |
| 13 | The construction uses coherent pullbacks, so it does not require the |
| 14 | negative twists to be projective objects of the sheaf category. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.MvPolynomial |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 23 | {σ : Type} [Fintype σ] |
| 24 | |
| 25 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 26 | |
| 27 | local instance : LocallyOfFiniteType (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := σ)) := |
| 28 | AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ_locallyOfFiniteType |
| 29 | |
| 30 | local instance : IsLocallyNoetherian (Proj (homogeneousSubmodule σ R)) := |
| 31 | LocallyOfFiniteType.isLocallyNoetherian (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := σ)) |
| 32 | |
| 33 | abbrev Tower := KernelTowerResolution.Tower (C := (Proj (homogeneousSubmodule σ R)).Modules) |
| 34 | |
| 35 | structure State (T U : Tower (R := R) (σ := σ)) (n : ℕ) where |
| 36 | module : (Proj (homogeneousSubmodule σ R)).Modules |
| 37 | quasicoherent : module.IsQuasicoherent |
| 38 | finiteType : module.IsFiniteType |
| 39 | left : module ⟶ T.object n |
| 40 | right : module ⟶ U.object n |
| 41 | |
| 42 | attribute [instance] State.quasicoherent State.finiteType |
| 43 | |
| 44 | namespace State |
| 45 | |
| 46 | variable {T U : Tower (R := R) (σ := σ)} |
| 47 | [∀ n, (T.object n).IsQuasicoherent] [∀ n, (U.object n).IsQuasicoherent] |
| 48 | [∀ n, (T.term n).IsQuasicoherent] [∀ n, (U.term n).IsQuasicoherent] |
| 49 | [∀ n, (T.term n).IsFiniteType] [∀ n, (U.term n).IsFiniteType] |
| 50 | {n : ℕ} (s : State T U n) |
| 51 | |
| 52 | abbrev leftPullback := pullback s.left (T.projection n) |
| 53 | |
| 54 | instance leftPullback_quasicoherent : s.leftPullback.IsQuasicoherent := |
| 55 | Coherent.CoherentPullback.quasicoherent s.left (T.projection n) |
| 56 | |
| 57 | instance leftPullback_finiteType : s.leftPullback.IsFiniteType := |
| 58 | Coherent.CoherentPullback.finiteType s.left (T.projection n) |
| 59 | |
| 60 | abbrev rightPullback := pullback (pullback.fst s.left (T.projection n) ≫ s.right) (U.projection n) |
| 61 | |
| 62 | instance rightPullback_quasicoherent : s.rightPullback.IsQuasicoherent := |
| 63 | Coherent.CoherentPullback.quasicoherent _ (U.projection n) |
| 64 | |
| 65 | instance rightPullback_finiteType : s.rightPullback.IsFiniteType := |
| 66 | Coherent.CoherentPullback.finiteType _ (U.projection n) |
| 67 | |
| 68 | variable (j : σ) (B : ℕ) |
| 69 | |
| 70 | def cover := Projective.NegativeResolution.presentation s.rightPullback j B |
| 71 | |
| 72 | def projection : (s.cover j B).source ⟶ s.module := |
| 73 | (s.cover j B).projection ≫ pullback.fst _ _ ≫ pullback.fst _ _ |
| 74 | |
| 75 | instance projection_epi : Epi (s.projection j B) := by |
| 76 | dsimp only [State.projection] |
| 77 | infer_instance |
| 78 | |
| 79 | def leftMap : (s.cover j B).source ⟶ T.term n := |
| 80 | (s.cover j B).projection ≫ pullback.fst _ _ ≫ pullback.snd _ _ |
| 81 | |
| 82 | def rightMap : (s.cover j B).source ⟶ U.term n := |
| 83 | (s.cover j B).projection ≫ pullback.snd _ _ |
| 84 | |
| 85 | theorem left_projection : s.leftMap j B ≫ T.projection n = s.projection j B ≫ s.left := by |
| 86 | simp only [State.leftMap, State.projection, Category.assoc, pullback.condition] |
| 87 | |
| 88 | theorem right_projection : s.rightMap j B ≫ U.projection n = s.projection j B ≫ s.right := by |
| 89 | simp only [State.rightMap, State.projection, Category.assoc, pullback.condition] |
| 90 | |
| 91 | def next : State T U (n + 1) where |
| 92 | module := kernel (s.projection j B) |
| 93 | quasicoherent := AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_kernel (s.projection j B) |
| 94 | finiteType := AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isFiniteType_kernel (s.projection j B) |
| 95 | left := kernel.lift (T.projection n) (kernel.ι (s.projection j B) ≫ s.leftMap j B) (by |
| 96 | rw [Category.assoc, s.left_projection, ← Category.assoc, kernel.condition, zero_comp]) ≫ |
| 97 | (T.kernelIso n).inv |
| 98 | right := kernel.lift (U.projection n) (kernel.ι (s.projection j B) ≫ s.rightMap j B) (by |
| 99 | rw [Category.assoc, s.right_projection, ← Category.assoc, kernel.condition, zero_comp]) ≫ |
| 100 | (U.kernelIso n).inv |
| 101 | |
| 102 | theorem next_left : (s.next j B).left ≫ T.inclusion n = |
| 103 | kernel.ι (s.projection j B) ≫ s.leftMap j B := by |
| 104 | simp only [State.next, KernelTowerResolution.Tower.inclusion, Category.assoc, |
| 105 | Iso.inv_hom_id_assoc, kernel.lift_ι] |
| 106 | |
| 107 | theorem next_right : (s.next j B).right ≫ U.inclusion n = |
| 108 | kernel.ι (s.projection j B) ≫ s.rightMap j B := by |
| 109 | simp only [State.next, KernelTowerResolution.Tower.inclusion, Category.assoc, |
| 110 | Iso.inv_hom_id_assoc, kernel.lift_ι] |
| 111 | |
| 112 | end State |
| 113 | |
| 114 | variable (T U : Tower (R := R) (σ := σ)) |
| 115 | [∀ n, (T.object n).IsQuasicoherent] [∀ n, (U.object n).IsQuasicoherent] |
| 116 | [∀ n, (T.term n).IsQuasicoherent] [∀ n, (U.term n).IsQuasicoherent] |
| 117 | [∀ n, (T.term n).IsFiniteType] [∀ n, (U.term n).IsFiniteType] |
| 118 | (j : σ) (B : ℕ) |
| 119 | (M : (Proj (homogeneousSubmodule σ R)).Modules) [M.IsQuasicoherent] [M.IsFiniteType] |
| 120 | (a : M ⟶ T.object 0) (b : M ⟶ U.object 0) |
| 121 | |
| 122 | def state : (n : ℕ) → State T U n |
| 123 | | 0 => ⟨M, inferInstance, inferInstance, a, b⟩ |
| 124 | | n + 1 => (state n).next j B |
| 125 | |
| 126 | def tower : Tower (R := R) (σ := σ) where |
| 127 | object n := (NegativeCommonRefinement.state T U j B M a b n).module |
| 128 | term n := ((NegativeCommonRefinement.state T U j B M a b n).cover j B).source |
| 129 | projection n := (NegativeCommonRefinement.state T U j B M a b n).projection j B |
| 130 | epi _n := inferInstance |
| 131 | kernelIso _n := Iso.refl _ |
| 132 | |
| 133 | def leftHom : KernelTowerMap.Hom (tower T U j B M a b) T where |
| 134 | object n := (NegativeCommonRefinement.state T U j B M a b n).left |
| 135 | term n := (NegativeCommonRefinement.state T U j B M a b n).leftMap j B |
| 136 | projection n := (NegativeCommonRefinement.state T U j B M a b n).left_projection j B |
| 137 | inclusion n := by |
| 138 | simpa only [tower, KernelTowerResolution.Tower.inclusion, NegativeCommonRefinement.state, |
| 139 | Iso.refl_hom, Category.id_comp] using (NegativeCommonRefinement.state T U j B M a b n).next_left j B |
| 140 | |
| 141 | def rightHom : KernelTowerMap.Hom (tower T U j B M a b) U where |
| 142 | object n := (NegativeCommonRefinement.state T U j B M a b n).right |
| 143 | term n := (NegativeCommonRefinement.state T U j B M a b n).rightMap j B |
| 144 | projection n := (NegativeCommonRefinement.state T U j B M a b n).right_projection j B |
| 145 | inclusion n := by |
| 146 | simpa only [tower, KernelTowerResolution.Tower.inclusion, NegativeCommonRefinement.state, |
| 147 | Iso.refl_hom, Category.id_comp] using (NegativeCommonRefinement.state T U j B M a b n).next_right j B |
| 148 | |
| 149 | instance left_quasiIso [IsIso a] : QuasiIso (leftHom T U j B M a b).chainMap := by |
| 150 | let : IsIso ((leftHom T U j B M a b).object 0) := inferInstanceAs (IsIso a) |
| 151 | infer_instance |
| 152 | |
| 153 | instance right_quasiIso [IsIso b] : QuasiIso (rightHom T U j B M a b).chainMap := by |
| 154 | let : IsIso ((rightHom T U j B M a b).object 0) := inferInstanceAs (IsIso b) |
| 155 | infer_instance |
| 156 | |
| 157 | end |
| 158 | |
| 159 | end OAI.NumberTheory.PadicHodge.IntegralComparison.NegativeCommonRefinement |