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.GeometricComparison.ConstantCoefficientUnit |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.ExtNaturality |
| 3 | |
| 4 | /-! # Additive Sheaf -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.AdditiveSheaf.AdditiveSheafCohomology |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Comparison of the actual field-linear Ext definition with additive sheaf cohomology, including coefficient-map naturality. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Abelian |
| 13 | |
| 14 | open OAI.NumberTheory.PadicHodge.GeometricComparison.SheafCoefficientCo.SheafCoefficientAdjunction OAI.NumberTheory.PadicHodge.GeometricComparison.IntegerSheaf.IntegerSheafEquivalence OAI.NumberTheory.PadicHodge.GeometricComparison.ConstantCoefficientUnit.ConstantCoefficientExtension |
| 15 | |
| 16 | variable (R : Type 1) [Field R] [CharZero R] |
| 17 | {C : Type 1} [Category.{0} C] (J : GrothendieckTopology C) |
| 18 | [HasExt.{1} (Sheaf J (ModuleCat.{1} R))] |
| 19 | [HasExt.{1} (Sheaf J (ModuleCat.{1} ℤ))] |
| 20 | [HasExt.{1} (Sheaf J AddCommGrpCat.{1})] |
| 21 | |
| 22 | abbrev integerConstant := (constantSheaf J (ModuleCat.{1} ℤ)).obj (ModuleCat.of ℤ (ULift.{1} ℤ)) |
| 23 | |
| 24 | abbrev fieldConstant := (constantSheaf J (ModuleCat.{1} R)).obj (ModuleCat.of R R) |
| 25 | |
| 26 | abbrev additiveConstant := (constantSheaf J AddCommGrpCat.{1}).obj (AddCommGrpCat.of (ULift.{1} ℤ)) |
| 27 | |
| 28 | abbrev underlyingSheaf (N : Sheaf J (ModuleCat.{1} R)) := |
| 29 | (IntegerSheaf.IntegerSheafEquivalence.forgetSheaf J).obj ((SheafCoefficientCo.SheafCoefficientAdjunction.restrictSheaf R J).obj N) |
| 30 | |
| 31 | def equiv (N : Sheaf J (ModuleCat.{1} R)) (n : ℕ) : |
| 32 | Ext (fieldConstant R J) N n ≃+ Ext (additiveConstant J) (underlyingSheaf R J N) n := |
| 33 | (AlgebraicGeometry.SheafCohomology.ExtLeft.Projective.extLeftIso (ConstantCoefficientUnit.ConstantCoefficientExtension.constantIso R J).symm N n).trans |
| 34 | ((SheafCoefficientCo.SheafCoefficientAdjunction.extAdjunction R J (integerConstant J) N n).trans |
| 35 | ((IntegerSheaf.IntegerSheafEquivalence.extEquiv J (integerConstant J) ((SheafCoefficientCo.SheafCoefficientAdjunction.restrictSheaf R J).obj N) n).trans |
| 36 | (AlgebraicGeometry.SheafCohomology.ExtLeft.Projective.extLeftIso (ConstantCoefficientUnit.ConstantCoefficientExtension.forgetConstantIso J) (underlyingSheaf R J N) n))) |
| 37 | |
| 38 | theorem naturality {M N : Sheaf J (ModuleCat.{1} R)} (f : M ⟶ N) (n : ℕ) |
| 39 | (x : Ext (fieldConstant R J) M n) : |
| 40 | equiv R J N n (x.comp (Ext.mk₀ f) (Nat.add_zero n)) = |
| 41 | (equiv R J M n x).comp |
| 42 | (Ext.mk₀ ((IntegerSheaf.IntegerSheafEquivalence.forgetSheaf J).map ((SheafCoefficientCo.SheafCoefficientAdjunction.restrictSheaf R J).map f))) (Nat.add_zero n) := by |
| 43 | let I := integerConstant J |
| 44 | let F := SheafCoefficientCo.SheafCoefficientAdjunction.restrictSheaf R J |
| 45 | let G := IntegerSheaf.IntegerSheafEquivalence.forgetSheaf J |
| 46 | let a (T : Sheaf J (ModuleCat.{1} R)) := AlgebraicGeometry.SheafCohomology.ExtLeft.Projective.extLeftIso (ConstantCoefficientUnit.ConstantCoefficientExtension.constantIso R J).symm T n |
| 47 | let b (T : Sheaf J (ModuleCat.{1} R)) := SheafCoefficientCo.SheafCoefficientAdjunction.extAdjunction R J I T n |
| 48 | let c (T : Sheaf J (ModuleCat.{1} R)) := IntegerSheaf.IntegerSheafEquivalence.extEquiv J I (F.obj T) n |
| 49 | let d (T : Sheaf J (ModuleCat.{1} R)) := |
| 50 | AlgebraicGeometry.SheafCohomology.ExtLeft.Projective.extLeftIso (ConstantCoefficientUnit.ConstantCoefficientExtension.forgetConstantIso J) (G.obj (F.obj T)) n |
| 51 | have h₁ := AlgebraicGeometry.SheafCohomology.ExtNaturality.Projective.extLeftIso_naturality (ConstantCoefficientUnit.ConstantCoefficientExtension.constantIso R J).symm f n x |
| 52 | have h₂ := AlgebraicGeometry.SheafCohomology.ExtNaturality.Projective.extCompare_naturality F I ((SheafCoefficientCo.SheafCoefficientAdjunction.extendSheaf R J).obj I) |
| 53 | ((SheafCoefficientCo.SheafCoefficientAdjunction.adjunction R J).unit.app I) f n (a M x) |
| 54 | have h₃ : c N ((b M (a M x)).comp (Ext.mk₀ (F.map f)) (Nat.add_zero n)) = |
| 55 | (c M (b M (a M x))).comp (Ext.mk₀ (G.map (F.map f))) (Nat.add_zero n) := by |
| 56 | change ((b M (a M x)).comp (Ext.mk₀ (F.map f)) (Nat.add_zero n)).mapExactFunctor G = _ |
| 57 | rw [Ext.mapExactFunctor_comp, Ext.mapExactFunctor_mk₀] |
| 58 | rfl |
| 59 | have h₄ := AlgebraicGeometry.SheafCohomology.ExtNaturality.Projective.extLeftIso_naturality (ConstantCoefficientUnit.ConstantCoefficientExtension.forgetConstantIso J) (G.map (F.map f)) n |
| 60 | (c M (b M (a M x))) |
| 61 | change d N (c N (b N (a N (x.comp (Ext.mk₀ f) (Nat.add_zero n))))) = _ |
| 62 | exact (congrArg (fun z => d N (c N (b N z))) h₁).trans |
| 63 | ((congrArg (fun z => d N (c N z)) h₂).trans ((congrArg (d N) h₃).trans h₄)) |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.NumberTheory.PadicHodge.GeometricComparison.AdditiveSheaf.AdditiveSheafCohomology |