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.AbelianModuli.HilbertConstruction.Polynomial.EventualGrid |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CompactExternalAcyclicEuler |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LineBundleEulerPolynomial |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Ample.ExternalSquareEmbedding |
| 5 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Ample.SerreVanishing |
| 6 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LineBundle.PowerBaseChange |
| 7 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Abelian.Schemes |
| 8 | |
| 9 | /-! # Square External Euler -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Ample.SquareExternalEuler |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! External Euler characteristics multiply for arbitrary line bundles |
| 16 | on the square of a projective abelian variety. Ample twists prove the |
| 17 | formula on an eventual grid; integer Euler polynomials remove the twists. -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 20 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 21 | universe u |
| 22 | |
| 23 | theorem lineBundleClass_pullback_tensorPower |
| 24 | {X Y : Scheme.{u}} (f : X ⟶ Y) (M H : Line.Bundles.LineBundle Y) (n : ℕ) : |
| 25 | Line.Bundles.LineBundle.classOf ((M.tensor (H.tensorPower n)).pullback f) = |
| 26 | Line.Bundles.LineBundle.classOf (M.pullback f) * Line.Bundles.LineBundle.classOf (H.pullback f) ^ n := by |
| 27 | let e : ((M.tensor (H.tensorPower n)).pullback f).sheaf ≅ |
| 28 | ((M.pullback f).tensor ((H.pullback f).tensorPower n)).sheaf := |
| 29 | Line.Bundles.LineBundle.tensorBaseChangeIso f M (H.tensorPower n) ≪≫ |
| 30 | Tensor.ProductSheaf.tensorModuleCongr (Iso.refl _) (H.powerBaseChangeIso f n) |
| 31 | calc |
| 32 | _ = Line.Bundles.LineBundle.classOf ((M.pullback f).tensor ((H.pullback f).tensorPower n)) := |
| 33 | Quotient.sound ⟨e⟩ |
| 34 | _ = _ := by rw [Line.Bundles.LineBundle.classOf_tensor, Line.Bundles.LineBundle.classOf_tensorPower] |
| 35 | |
| 36 | theorem abelianSquare_external_euler |
| 37 | {k : Type u} [Field k] {g : ℕ} (A : Abelian.Schemes.AbelianScheme g (Spec (.of k))) |
| 38 | (H : Line.Bundles.LineBundle A.scheme.left) (hH : H.IsAmple) |
| 39 | (M N : Line.Bundles.LineBundle A.scheme.left) : |
| 40 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic (A.scheme ⊗ A.scheme).hom |
| 41 | (Line.Bundles.LineBundle.externalTensor A.scheme.hom A.scheme.hom M N).sheaf = |
| 42 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic A.scheme.hom M.sheaf * |
| 43 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic A.scheme.hom N.sheaf := by |
| 44 | let p := (A.scheme ⊗ A.scheme).hom |
| 45 | let f := (fst A.scheme A.scheme).left |
| 46 | let h := (snd A.scheme A.scheme).left |
| 47 | let H₁ := H.pullback f |
| 48 | let H₂ := H.pullback h |
| 49 | let M₁ := M.pullback f |
| 50 | let N₂ := N.pullback h |
| 51 | let q := Line.Bundles.LineBundle.classOf M₁ * Line.Bundles.LineBundle.classOf N₂ |
| 52 | have : IsProper p := inferInstanceAs |
| 53 | (IsProper (pullback.fst A.scheme.hom A.scheme.hom ≫ A.scheme.hom)) |
| 54 | have : Flat p := inferInstanceAs |
| 55 | (Flat (pullback.fst A.scheme.hom A.scheme.hom ≫ A.scheme.hom)) |
| 56 | have : LocallyOfFinitePresentation p := inferInstanceAs |
| 57 | (LocallyOfFinitePresentation (pullback.fst A.scheme.hom A.scheme.hom ≫ A.scheme.hom)) |
| 58 | have : A.scheme.left.IsSeparated := by |
| 59 | constructor |
| 60 | rw [← terminal.comp_from A.scheme.hom] |
| 61 | infer_instance |
| 62 | have : (Limits.pullback (C := Scheme.{u}) A.scheme.hom A.scheme.hom).IsSeparated := by |
| 63 | constructor |
| 64 | rw [← terminal.comp_from (pullback.fst A.scheme.hom A.scheme.hom ≫ A.scheme.hom)] |
| 65 | infer_instance |
| 66 | have : CompactSpace A.scheme.left := QuasiCompact.compactSpace_of_compactSpace A.scheme.hom |
| 67 | let E := (hH.exists_powerProjectiveEmbedding A.scheme.hom).some |
| 68 | let E₂ := ExternalSquareEmbedding.ampleExternalSquarePowerEmbedding (A := A.scheme) H hH |
| 69 | let F : ℤ → ℤ → ℚ := fun a b => |
| 70 | (LineBundle.EulerShifts.lineBundleClassEuler p |
| 71 | (q * Line.Bundles.LineBundle.classOf H₁ ^ a * Line.Bundles.LineBundle.classOf H₂ ^ b) : ℚ) |
| 72 | let G : ℤ → ℤ → ℚ := fun a b => |
| 73 | (LineBundle.EulerShifts.lineBundleClassEuler A.scheme.hom (Line.Bundles.LineBundle.classOf M * Line.Bundles.LineBundle.classOf H ^ a) : ℚ) * |
| 74 | (LineBundle.EulerShifts.lineBundleClassEuler A.scheme.hom (Line.Bundles.LineBundle.classOf N * Line.Bundles.LineBundle.classOf H ^ b) : ℚ) |
| 75 | have hF₁ (b : ℤ) : ∃ P : Polynomial ℚ, ∀ a : ℤ, P.eval (a : ℚ) = F a b := by |
| 76 | obtain ⟨P, hP⟩ := E₂.lineBundleClass_integerEulerPolynomial p H₁ |
| 77 | (q * Line.Bundles.LineBundle.classOf H₂ ^ b) |
| 78 | exact ⟨P, fun a => by simpa only [F, mul_assoc, mul_left_comm, mul_comm] using hP a⟩ |
| 79 | have hF₂ (a : ℤ) : ∃ P : Polynomial ℚ, ∀ b : ℤ, P.eval (b : ℚ) = F a b := |
| 80 | E₂.lineBundleClass_integerEulerPolynomial p H₂ (q * Line.Bundles.LineBundle.classOf H₁ ^ a) |
| 81 | have hG₁ (b : ℤ) : ∃ P : Polynomial ℚ, ∀ a : ℤ, P.eval (a : ℚ) = G a b := by |
| 82 | obtain ⟨P, hP⟩ := E.lineBundleClass_integerEulerPolynomial A.scheme.hom H (Line.Bundles.LineBundle.classOf M) |
| 83 | refine ⟨P * Polynomial.C |
| 84 | (LineBundle.EulerShifts.lineBundleClassEuler A.scheme.hom (Line.Bundles.LineBundle.classOf N * Line.Bundles.LineBundle.classOf H ^ b) : ℚ), ?_⟩ |
| 85 | intro a |
| 86 | simp only [Polynomial.eval_mul, Polynomial.eval_C, hP, G] |
| 87 | have hG₂ (a : ℤ) : ∃ P : Polynomial ℚ, ∀ b : ℤ, P.eval (b : ℚ) = G a b := by |
| 88 | obtain ⟨P, hP⟩ := E.lineBundleClass_integerEulerPolynomial A.scheme.hom H (Line.Bundles.LineBundle.classOf N) |
| 89 | refine ⟨Polynomial.C |
| 90 | (LineBundle.EulerShifts.lineBundleClassEuler A.scheme.hom (Line.Bundles.LineBundle.classOf M * Line.Bundles.LineBundle.classOf H ^ a) : ℚ) * P, ?_⟩ |
| 91 | intro b |
| 92 | simp only [Polynomial.eval_mul, Polynomial.eval_C, hP, G] |
| 93 | have : M.sheaf.IsQuasicoherent := M.isQuasicoherent |
| 94 | have : M.sheaf.IsFiniteType := M.isFiniteType |
| 95 | have : N.sheaf.IsQuasicoherent := N.isQuasicoherent |
| 96 | have : N.sheaf.IsFiniteType := N.isFiniteType |
| 97 | obtain ⟨B, hB⟩ := SerreVanishing.ample_tensorPowers_eventually_vanish A.scheme.hom H hH M.sheaf |
| 98 | obtain ⟨C, hC⟩ := SerreVanishing.ample_tensorPowers_eventually_vanish A.scheme.hom H hH N.sheaf |
| 99 | have hgrid (a b : ℕ) (ha : B ≤ a) (hb : C ≤ b) : F a b = G a b := by |
| 100 | let M' := M.tensor (H.tensorPower a) |
| 101 | let N' := N.tensor (H.tensorPower b) |
| 102 | let T := Line.Bundles.LineBundle.externalTensor A.scheme.hom A.scheme.hom M' N' |
| 103 | have hc : Line.Bundles.LineBundle.classOf T = |
| 104 | q * Line.Bundles.LineBundle.classOf H₁ ^ a * Line.Bundles.LineBundle.classOf H₂ ^ b := by |
| 105 | change Line.Bundles.LineBundle.classOf ((M'.pullback f).tensor (N'.pullback h)) = _ |
| 106 | rw [Line.Bundles.LineBundle.classOf_tensor] |
| 107 | dsimp only [M', N'] |
| 108 | rw [lineBundleClass_pullback_tensorPower, lineBundleClass_pullback_tensorPower] |
| 109 | dsimp only [q, M₁, N₂, H₁, H₂] |
| 110 | ac_rfl |
| 111 | have hleft : F a b = (CohomologyEulerCharacteristic.coefficientEulerCharacteristic p T.sheaf : ℚ) := by |
| 112 | dsimp only [F] |
| 113 | rw [zpow_natCast, zpow_natCast, ← hc, LineBundle.EulerShifts.lineBundleClassEuler_classOf] |
| 114 | have hright : G a b = |
| 115 | (CohomologyEulerCharacteristic.coefficientEulerCharacteristic A.scheme.hom M'.sheaf : ℚ) * |
| 116 | (CohomologyEulerCharacteristic.coefficientEulerCharacteristic A.scheme.hom N'.sheaf : ℚ) := by |
| 117 | simp only [G, zpow_natCast, ← Line.Bundles.LineBundle.classOf_tensorPower, |
| 118 | ← Line.Bundles.LineBundle.classOf_tensor, LineBundle.EulerShifts.lineBundleClassEuler_classOf, M', N'] |
| 119 | have hprod := CompactExternalAcyclicEuler.fieldExternal_euler_of_positive_vanishing_of_compact |
| 120 | (IsPullback.of_hasPullback A.scheme.hom A.scheme.hom) M' N' |
| 121 | (fun r => ModuleCat.subsingleton_of_isZero (hB a ha r)) |
| 122 | (fun r => ModuleCat.subsingleton_of_isZero (hC b hb r)) |
| 123 | have he : CohomologyEulerCharacteristic.coefficientEulerCharacteristic p T.sheaf = |
| 124 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic A.scheme.hom M'.sheaf * |
| 125 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic A.scheme.hom N'.sheaf := by |
| 126 | change CohomologyEulerCharacteristic.coefficientEulerCharacteristic |
| 127 | (pullback.fst A.scheme.hom A.scheme.hom ≫ A.scheme.hom) T.sheaf = _ |
| 128 | rw [pullback.condition] |
| 129 | exact hprod |
| 130 | rw [hleft, hright] |
| 131 | exact_mod_cast he |
| 132 | have hfinal := HilbertConstruction.Polynomial.EventualGrid.separately_polynomial_eq_of_eventual_grid F G hF₁ hF₂ hG₁ hG₂ B C hgrid 0 0 |
| 133 | apply Int.cast_injective (α := ℚ) |
| 134 | change (CohomologyEulerCharacteristic.coefficientEulerCharacteristic p ((M.pullback f).tensor (N.pullback h)).sheaf : ℚ) = _ |
| 135 | simpa only [F, G, zpow_zero, mul_one, q, M₁, N₂, f, h, |
| 136 | ← Line.Bundles.LineBundle.classOf_tensor, LineBundle.EulerShifts.lineBundleClassEuler_classOf, Int.cast_mul] using hfinal |
| 137 | |
| 138 | end |
| 139 | |
| 140 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Ample.SquareExternalEuler |