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.Ample.SquareExternalEuler |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.OppositeAmpleEuler |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Product.ShearIsomorphisms |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LineBundle.ClassEulerIsomorphism |
| 5 | import OAI.AlgebraicGeometry.Picard.ThetaConstruction.DifferenceClassBaseChange |
| 6 | |
| 7 | /-! # Difference Twist Euler -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.DifferenceTwistEuler |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Twisting the normalized difference bundle by its first ample factor |
| 14 | turns it, under an actual shear of the square, into an external tensor |
| 15 | product. Some positive tensor power has nonzero Euler characteristic. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 19 | open scoped _root_.CategoryTheory.MonObj |
| 20 | open OAI.AlgebraicGeometry.Picard.ThetaConstruction.DifferenceClassBaseChange.Geometric |
| 21 | |
| 22 | local instance differenceEulerClassCommGroup (X : Scheme) : CommGroup (Line.Bundles.LineBundle.IsoClass X) := |
| 23 | Line.Bundles.LineBundle.isoClassCommGroup X |
| 24 | |
| 25 | variable {k : Type} [Field k] {g : ℕ} (A : Abelian.Schemes.AbelianScheme g (Spec (.of k))) |
| 26 | |
| 27 | def differenceTwistedLine (L M : Line.Bundles.LineBundle A.scheme.left) : |
| 28 | Line.Bundles.LineBundle (A.scheme ⊗ A.scheme).left := |
| 29 | ((Picard.ThetaConstruction.RelativeDifferenceBundle.Geometric.relativeDifferenceBundle A L).tensor (L.pullback (fst A.scheme A.scheme).left)).tensor |
| 30 | (M.pullback (snd A.scheme A.scheme).left) |
| 31 | |
| 32 | theorem differenceTwistedLine_shear_class (L M : Line.Bundles.LineBundle A.scheme.left) : |
| 33 | Line.Bundles.LineBundle.classOf (differenceTwistedLine A L M) = |
| 34 | Line.Bundles.LineBundle.pullbackClass (Product.ShearIsomorphisms.productShearIso A.scheme 1).hom.left |
| 35 | (Line.Bundles.LineBundle.classOf (Line.Bundles.LineBundle.externalTensor A.scheme.hom A.scheme.hom |
| 36 | L (L.reciprocalFrameBundle.tensor M))) := by |
| 37 | let x := (fst A.scheme A.scheme).left |
| 38 | let y := (snd A.scheme A.scheme).left |
| 39 | let z := μ[A.scheme].left |
| 40 | let l := Line.Bundles.LineBundle.classOf L |
| 41 | let m := Line.Bundles.LineBundle.classOf M |
| 42 | let d := Line.Bundles.LineBundle.classOf (Picard.ThetaConstruction.RelativeDifferenceBundle.Geometric.relativeDifferenceBundle A L) |
| 43 | let px := Line.Bundles.LineBundle.pullbackClassMonoidHom x |
| 44 | let py := Line.Bundles.LineBundle.pullbackClassMonoidHom y |
| 45 | let pz := Line.Bundles.LineBundle.pullbackClassMonoidHom z |
| 46 | have hd : d * px l * py l = pz l := by |
| 47 | have h : Line.Bundles.LineBundle.classOf |
| 48 | (((Picard.ThetaConstruction.RelativeDifferenceBundle.Geometric.relativeDifferenceBundle A L).tensor ((Picard.ThetaConstruction.RelativeDifferenceBundle.Geometric.identityNormalizedLine A L).pullback x)).tensor |
| 49 | ((Picard.ThetaConstruction.RelativeDifferenceBundle.Geometric.identityNormalizedLine A L).pullback y)) = |
| 50 | Line.Bundles.LineBundle.classOf ((Picard.ThetaConstruction.RelativeDifferenceBundle.Geometric.identityNormalizedLine A L).pullback z) := |
| 51 | Quotient.sound (Picard.ThetaConstruction.RelativeDifferenceBundle.Geometric.relativeDifferenceBundle_formula A L) |
| 52 | change d * Line.Bundles.LineBundle.pullbackClass x (Line.Bundles.LineBundle.classOf (Picard.ThetaConstruction.RelativeDifferenceBundle.Geometric.identityNormalizedLine A L)) * |
| 53 | Line.Bundles.LineBundle.pullbackClass y (Line.Bundles.LineBundle.classOf (Picard.ThetaConstruction.RelativeDifferenceBundle.Geometric.identityNormalizedLine A L)) = |
| 54 | Line.Bundles.LineBundle.pullbackClass z (Line.Bundles.LineBundle.classOf (Picard.ThetaConstruction.RelativeDifferenceBundle.Geometric.identityNormalizedLine A L)) at h |
| 55 | rw [Picard.ThetaConstruction.DifferenceClassBaseChange.Geometric.identityNormalizedLine_class_overField] at h |
| 56 | exact h |
| 57 | have hx : (Product.ShearIsomorphisms.productShearIso A.scheme 1).hom.left ≫ x = z := by |
| 58 | have h := Product.ShearIsomorphisms.productShearIso_hom_fst A.scheme 1 |
| 59 | rw [zpow_one] at h |
| 60 | have hm : fst A.scheme A.scheme * snd A.scheme A.scheme = μ[A.scheme] := by |
| 61 | change lift (fst A.scheme A.scheme) (snd A.scheme A.scheme) ≫ μ[A.scheme] = _ |
| 62 | rw [lift_fst_snd, Category.id_comp] |
| 63 | exact (congrArg Over.Hom.left h).trans (congrArg Over.Hom.left hm) |
| 64 | have hy : (Product.ShearIsomorphisms.productShearIso A.scheme 1).hom.left ≫ y = y := |
| 65 | congrArg Over.Hom.left (Product.ShearIsomorphisms.productShearIso_hom_snd A.scheme 1) |
| 66 | have hshear : Line.Bundles.LineBundle.pullbackClass (Product.ShearIsomorphisms.productShearIso A.scheme 1).hom.left |
| 67 | (Line.Bundles.LineBundle.classOf (Line.Bundles.LineBundle.externalTensor A.scheme.hom A.scheme.hom |
| 68 | L (L.reciprocalFrameBundle.tensor M))) = pz l * (py l)⁻¹ * py m := by |
| 69 | change Line.Bundles.LineBundle.pullbackClass (Product.ShearIsomorphisms.productShearIso A.scheme 1).hom.left |
| 70 | (Line.Bundles.LineBundle.pullbackClass x l * |
| 71 | Line.Bundles.LineBundle.pullbackClass y (Line.Bundles.LineBundle.classOf (L.reciprocalFrameBundle.tensor M))) = _ |
| 72 | rw [Line.Bundles.LineBundle.pullbackClass_mul, ← Line.Bundles.LineBundle.pullbackClass_comp, |
| 73 | ← Line.Bundles.LineBundle.pullbackClass_comp, hx, hy, Line.Bundles.LineBundle.classOf_tensor, |
| 74 | Line.Bundles.LineBundle.classOf_reciprocalFrameBundle] |
| 75 | change pz l * py (l⁻¹ * m) = _ |
| 76 | rw [py.map_mul, py.map_inv, mul_assoc] |
| 77 | rw [hshear] |
| 78 | change d * px l * py m = pz l * (py l)⁻¹ * py m |
| 79 | rw [← hd, mul_assoc (d * px l), mul_inv_cancel, mul_one] |
| 80 | |
| 81 | theorem differenceTwistedLine_euler |
| 82 | (H : Line.Bundles.LineBundle A.scheme.left) (hH : H.IsAmple) (L M : Line.Bundles.LineBundle A.scheme.left) : |
| 83 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic (A.scheme ⊗ A.scheme).hom (differenceTwistedLine A L M).sheaf = |
| 84 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic A.scheme.hom L.sheaf * |
| 85 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic A.scheme.hom (L.reciprocalFrameBundle.tensor M).sheaf := by |
| 86 | have : (A.scheme ⊗ A.scheme).left.IsSeparated := by |
| 87 | constructor |
| 88 | rw [← terminal.comp_from (A.scheme ⊗ A.scheme).hom] |
| 89 | have : IsProper (A.scheme ⊗ A.scheme).hom := inferInstanceAs |
| 90 | (IsProper (pullback.fst A.scheme.hom A.scheme.hom ≫ A.scheme.hom)) |
| 91 | infer_instance |
| 92 | calc |
| 93 | _ = LineBundle.EulerShifts.lineBundleClassEuler (A.scheme ⊗ A.scheme).hom |
| 94 | (Line.Bundles.LineBundle.classOf (differenceTwistedLine A L M)) := rfl |
| 95 | _ = LineBundle.EulerShifts.lineBundleClassEuler (A.scheme ⊗ A.scheme).hom |
| 96 | (Line.Bundles.LineBundle.pullbackClass (Product.ShearIsomorphisms.productShearIso A.scheme 1).hom.left |
| 97 | (Line.Bundles.LineBundle.classOf (Line.Bundles.LineBundle.externalTensor A.scheme.hom A.scheme.hom |
| 98 | L (L.reciprocalFrameBundle.tensor M)))) := |
| 99 | congrArg (LineBundle.EulerShifts.lineBundleClassEuler (A.scheme ⊗ A.scheme).hom) |
| 100 | (differenceTwistedLine_shear_class A L M) |
| 101 | _ = CohomologyEulerCharacteristic.coefficientEulerCharacteristic (A.scheme ⊗ A.scheme).hom |
| 102 | (Line.Bundles.LineBundle.externalTensor A.scheme.hom A.scheme.hom L (L.reciprocalFrameBundle.tensor M)).sheaf := |
| 103 | LineBundle.ClassEulerIsomorphism.lineBundleClassEuler_pullback_overIso (Product.ShearIsomorphisms.productShearIso A.scheme 1) _ |
| 104 | _ = _ := Ample.SquareExternalEuler.abelianSquare_external_euler A H hH L (L.reciprocalFrameBundle.tensor M) |
| 105 | |
| 106 | theorem differenceTwistedLine_exists_nonzero_euler |
| 107 | (L : Line.Bundles.LineBundle A.scheme.left) (hL : L.IsAmple) (M : Line.Bundles.LineBundle A.scheme.left) : |
| 108 | ∃ m : ℕ, 0 < m ∧ CohomologyEulerCharacteristic.coefficientEulerCharacteristic (A.scheme ⊗ A.scheme).hom |
| 109 | (differenceTwistedLine A (L.tensorPower m) M).sheaf ≠ 0 := by |
| 110 | have : Nonempty A.scheme.left := ⟨η[A.scheme].left (IsLocalRing.closedPoint k)⟩ |
| 111 | let E := (hL.exists_powerProjectiveEmbedding A.scheme.hom).some |
| 112 | obtain ⟨m, hm, hpos, hneg⟩ := E.exists_opposite_nonzero_euler A.scheme.hom |
| 113 | (Line.Bundles.LineBundle.trivial A.scheme.left) M |
| 114 | refine ⟨m, hm, ?_⟩ |
| 115 | rw [differenceTwistedLine_euler A L hL] |
| 116 | apply mul_ne_zero |
| 117 | · simpa only [Line.Bundles.LineBundle.classOf_trivial, one_mul, zpow_natCast, |
| 118 | ← Line.Bundles.LineBundle.classOf_tensorPower, LineBundle.EulerShifts.lineBundleClassEuler_classOf] using hpos |
| 119 | · have he : Line.Bundles.LineBundle.classOf ((L.tensorPower m).reciprocalFrameBundle.tensor M) = |
| 120 | Line.Bundles.LineBundle.classOf M * Line.Bundles.LineBundle.classOf L ^ (-(m : ℤ)) := by |
| 121 | rw [Line.Bundles.LineBundle.classOf_tensor, Line.Bundles.LineBundle.classOf_reciprocalFrameBundle, |
| 122 | Line.Bundles.LineBundle.classOf_tensorPower, zpow_neg, zpow_natCast, mul_comm] |
| 123 | change LineBundle.EulerShifts.lineBundleClassEuler A.scheme.hom |
| 124 | (Line.Bundles.LineBundle.classOf ((L.tensorPower m).reciprocalFrameBundle.tensor M)) ≠ 0 |
| 125 | rw [he] |
| 126 | exact hneg |
| 127 | |
| 128 | end |
| 129 | |
| 130 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.DifferenceTwistEuler |