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.LineBundleAssociator |
| 2 | |
| 3 | /-! # Picard Eq -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.PicardEq.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The Picard group of a scheme, built from actual line bundles and sheaf isomorphisms. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | structure BundledLineBundle (X : Scheme.{u}) where |
| 16 | sheaf : X.Modules |
| 17 | isLineBundle : LineBundle.Construction.IsLineBundle sheaf |
| 18 | |
| 19 | instance lineBundleSetoid (X : Scheme.{u}) : Setoid (BundledLineBundle X) where |
| 20 | r L M := Nonempty (L.sheaf ≅ M.sheaf) |
| 21 | iseqv := |
| 22 | { refl L := ⟨Iso.refl L.sheaf⟩ |
| 23 | symm := fun ⟨e⟩ ↦ ⟨e.symm⟩ |
| 24 | trans := fun ⟨e⟩ ⟨f⟩ ↦ ⟨e ≪≫ f⟩ } |
| 25 | |
| 26 | def Picard (X : Scheme.{u}) := Quotient (lineBundleSetoid X) |
| 27 | |
| 28 | def lineBundleClass {X : Scheme.{u}} (M : X.Modules) (hM : LineBundle.Construction.IsLineBundle M) : Picard X := |
| 29 | Quotient.mk _ ⟨M, hM⟩ |
| 30 | |
| 31 | theorem lineBundleClass_eq_iff {X : Scheme.{u}} {M N : X.Modules} |
| 32 | (hM : LineBundle.Construction.IsLineBundle M) (hN : LineBundle.Construction.IsLineBundle N) : |
| 33 | lineBundleClass M hM = lineBundleClass N hN ↔ Nonempty (M ≅ N) := |
| 34 | Quotient.eq |
| 35 | |
| 36 | instance picardZero (X : Scheme.{u}) : Zero (Picard X) := |
| 37 | ⟨lineBundleClass (LineBundle.Construction.structureSheafModule X) (LineBundle.Construction.isLineBundle_structureSheaf X)⟩ |
| 38 | |
| 39 | instance picardAdd (X : Scheme.{u}) : Add (Picard X) where |
| 40 | add := Quotient.map₂ |
| 41 | (fun L M ↦ ⟨SheafTensor.Construction.sheafTensor L.sheaf M.sheaf, TensorRestriction.Construction.isLineBundle_sheafTensor L.isLineBundle M.isLineBundle⟩) |
| 42 | (fun _ _ ⟨e⟩ _ _ ⟨f⟩ ↦ ⟨SheafTensor.Construction.sheafTensorCongr e f⟩) |
| 43 | |
| 44 | instance picardNeg (X : Scheme.{u}) : Neg (Picard X) where |
| 45 | neg := Quotient.map |
| 46 | (fun L ↦ ⟨SheafHomModule.Construction.lineBundleDual L.sheaf, LineBundleDual.Construction.isLineBundle_dual L.isLineBundle⟩) |
| 47 | (fun _ _ ⟨e⟩ ↦ ⟨SheafHomFunctoriality.Construction.sheafHomCongr e (Iso.refl _)⟩) |
| 48 | |
| 49 | instance picardSub (X : Scheme.{u}) : Sub (Picard X) := ⟨fun a b ↦ a + -b⟩ |
| 50 | |
| 51 | instance picardAddCommGroup (X : Scheme.{u}) : AddCommGroup (Picard X) where |
| 52 | add_assoc a b c := Quotient.inductionOn₃ a b c fun L M N ↦ |
| 53 | Quotient.sound ⟨LineBundleAssociator.Construction.lineBundleTensorAssociator L.isLineBundle M.isLineBundle N.isLineBundle⟩ |
| 54 | zero_add a := Quotient.inductionOn a fun L ↦ Quotient.sound ⟨SheafTensor.Construction.sheafTensorUnitLeft L.sheaf⟩ |
| 55 | add_zero a := Quotient.inductionOn a fun L ↦ Quotient.sound ⟨SheafTensor.Construction.sheafTensorUnitRight L.sheaf⟩ |
| 56 | neg_add_cancel a := Quotient.inductionOn a fun L ↦ Quotient.sound ⟨LineBundleEvaluation.Construction.lineBundleDualTensorIso L.isLineBundle⟩ |
| 57 | add_comm a b := Quotient.inductionOn₂ a b fun L M ↦ Quotient.sound ⟨SheafTensor.Construction.sheafTensorComm L.sheaf M.sheaf⟩ |
| 58 | sub_eq_add_neg _ _ := rfl |
| 59 | nsmul := nsmulRec |
| 60 | zsmul := zsmulRec |
| 61 | |
| 62 | theorem lineBundleClass_tensor {X : Scheme.{u}} {M N : X.Modules} |
| 63 | (hM : LineBundle.Construction.IsLineBundle M) (hN : LineBundle.Construction.IsLineBundle N) : |
| 64 | lineBundleClass (SheafTensor.Construction.sheafTensor M N) (TensorRestriction.Construction.isLineBundle_sheafTensor hM hN) = |
| 65 | lineBundleClass M hM + lineBundleClass N hN := rfl |
| 66 | |
| 67 | theorem lineBundleClass_dual {X : Scheme.{u}} {M : X.Modules} (hM : LineBundle.Construction.IsLineBundle M) : |
| 68 | lineBundleClass (SheafHomModule.Construction.lineBundleDual M) (LineBundleDual.Construction.isLineBundle_dual hM) = -lineBundleClass M hM := rfl |
| 69 | |
| 70 | theorem lineBundleClass_unit {X : Scheme.{u}} : |
| 71 | lineBundleClass (LineBundle.Construction.structureSheafModule X) (LineBundle.Construction.isLineBundle_structureSheaf X) = (0 : Picard X) := rfl |
| 72 | |
| 73 | theorem lineBundleClass_tensorPower {X : Scheme.{u}} {M : X.Modules} (hM : LineBundle.Construction.IsLineBundle M) (n : ℕ) : |
| 74 | lineBundleClass (TensorRestriction.Construction.sheafTensorPower M n) (TensorRestriction.Construction.isLineBundle_sheafTensorPower hM n) = |
| 75 | n • lineBundleClass M hM := by |
| 76 | induction n with |
| 77 | | zero => exact (zero_nsmul _).symm |
| 78 | | succ n ih => |
| 79 | change lineBundleClass (TensorRestriction.Construction.sheafTensorPower M n) (TensorRestriction.Construction.isLineBundle_sheafTensorPower hM n) + |
| 80 | lineBundleClass M hM = (n + 1) • lineBundleClass M hM |
| 81 | rw [ih, add_nsmul, one_nsmul] |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.PicardEq.Construction |