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.KoszulPartial.Edges |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.TotalComponentMap |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.DualComplexHomology |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Exterior.KoszulHomotopy |
| 5 | |
| 6 | /-! # Components -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Components |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Literal components of the mixed Koszul-to-supported-Čech total map. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive Opposite |
| 14 | set_option backward.defeqAttrib.useBackward true |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | universe u |
| 18 | open OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Fractions OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Differential |
| 19 | open OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.CechDifferential OAI.AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction |
| 20 | variable {C : Type u} [Preorder C] [HasFiniteProducts C] |
| 21 | (R : Type u) [CommRing R] (P : Cᵒᵖ ⥤ CommAlgCat.{u} R) |
| 22 | {c m : ℕ} (U : ULift.{u} (Fin m) → C) |
| 23 | (s : Fin c → R) (t : Fin m → R) |
| 24 | (ht : ∀ i, IsUnit (algebraMap R (P.obj (op (U i))) (t i.down))) |
| 25 | |
| 26 | abbrev source := DualComplexHomology.complex R |
| 27 | (Exterior.KoszulComplex.complex R (Fractions.ambient R (c := c) (m := m)) (Differential.equation R s t)) |
| 28 | abbrev coefficient := Koszul.HomPresheaf.complex R (Fractions.normal R (c := c)) |
| 29 | (Fractions.modules R P) (Koszul.GeneratorMatrix.equation R s) |
| 30 | abbrev target := AugmentedOrdered.CechFunctor.bicomplex U (coefficient R P s) |
| 31 | |
| 32 | def coordinateAt (n p q : ℕ) (h : p + q = n) (a : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) q) : |
| 33 | Module.Dual R (⋀[R]^n (Fractions.ambient R (c := c) (m := m))) →ₗ[R] |
| 34 | ((⋀[R]^p (Fractions.normal R (c := c))) →ₗ[R] P.obj (op ((AugmentedOrdered.Cech.formal U q).obj a))) where |
| 35 | toFun φ := Fractions.reciprocal R P U t ht a • |
| 36 | (Algebra.linearMap R _).comp (φ.comp (Differential.insertionAt R p q n h a)) |
| 37 | map_add' φ ψ := by |
| 38 | apply LinearMap.ext |
| 39 | intro x |
| 40 | change Fractions.reciprocal R P U t ht a * algebraMap R _ ((φ + ψ) (Differential.insertionAt R p q n h a x)) = _ |
| 41 | simp only [LinearMap.add_apply, map_add, mul_add, LinearMap.comp_apply, |
| 42 | LinearMap.smul_apply, smul_eq_mul] |
| 43 | rfl |
| 44 | map_smul' r φ := by |
| 45 | apply LinearMap.ext |
| 46 | intro x |
| 47 | change Fractions.reciprocal R P U t ht a * algebraMap R _ ((r • φ) (Differential.insertionAt R p q n h a x)) = _ |
| 48 | simp only [LinearMap.smul_apply, RingHom.id_apply, Algebra.smul_def, |
| 49 | map_mul, LinearMap.comp_apply, Algebra.algebraMap_self, Algebra.linearMap_apply] |
| 50 | ring |
| 51 | |
| 52 | theorem coordinateAt_apply (n p q : ℕ) (h : p + q = n) (a : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) q) |
| 53 | (φ : (source R s t).X n) (x : ⋀[R]^p (Fractions.normal R (c := c))) : |
| 54 | coordinateAt R P U t ht n p q h a φ x = CechDifferential.value R P U t ht p q n h a φ x := rfl |
| 55 | |
| 56 | def component (n p q : ℕ) (h : p + q = n) : |
| 57 | ModuleCat.of R (Module.Dual R (⋀[R]^n (Fractions.ambient R (c := c) (m := m)))) ⟶ |
| 58 | AugmentedOrdered.Cech.object U (Koszul.HomPresheaf.homPresheaf R (Fractions.normal R (c := c)) (Fractions.modules R P) p) q := |
| 59 | Pi.lift (fun a : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) q => ModuleCat.ofHom (coordinateAt R P U t ht n p q h a)) |
| 60 | |
| 61 | @[reassoc] |
| 62 | theorem component_projection (n p q : ℕ) (h : p + q = n) (a : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) q) : |
| 63 | component R P U t ht n p q h ≫ |
| 64 | Pi.π (fun b : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) q => |
| 65 | ((coefficient R P s).X p).obj (op ((AugmentedOrdered.Cech.formal U q).obj b))) a = |
| 66 | ModuleCat.ofHom (coordinateAt R P U t ht n p q h a) := Pi.lift_comp_π _ a |
| 67 | |
| 68 | theorem source_d (n : ℕ) : ((source R s t).d n (n + 1)).hom = |
| 69 | (AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R _ (Differential.equation R s t) n).dualMap := by |
| 70 | dsimp only [source, DualComplexHomology.complex, Functor.mapHomologicalComplex_obj_d, |
| 71 | HomologicalComplex.op_d, ExactModuleDualFunctor.functor] |
| 72 | rw [Exterior.KoszulHomotopy.complex_d] |
| 73 | rfl |
| 74 | |
| 75 | theorem vertical_d (p q : ℕ) : ((target R P U s).X p).d q (q + 1) = |
| 76 | AugmentedOrdered.Cech.differential U ((coefficient R P s).X p) q := by |
| 77 | change (AugmentedOrdered.Cech.complex U ((coefficient R P s).X p)).d q (q + 1) = _ |
| 78 | dsimp only [AugmentedOrdered.Cech.complex] |
| 79 | rw [CochainComplex.of_d] |
| 80 | |
| 81 | theorem horizontal_d (p q : ℕ) : ((target R P U s).d p (p + 1)).f q = |
| 82 | AugmentedOrdered.CechFunctor.objectMap U (Koszul.HomPresheaf.differential R (Fractions.normal R (c := c)) (Fractions.modules R P) |
| 83 | (Koszul.GeneratorMatrix.equation R s) p) q := by |
| 84 | change AugmentedOrdered.CechFunctor.objectMap U ((coefficient R P s).d p (p + 1)) q = _ |
| 85 | dsimp only [coefficient, Koszul.HomPresheaf.complex] |
| 86 | rw [CochainComplex.of_d] |
| 87 | |
| 88 | theorem horizontal_projection (p q : ℕ) (a : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) q) : |
| 89 | ((target R P U s).d p (p + 1)).f q ≫ |
| 90 | Pi.π (fun b : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) q => |
| 91 | ((coefficient R P s).X (p + 1)).obj (op ((AugmentedOrdered.Cech.formal U q).obj b))) a = |
| 92 | Pi.π (fun b : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) q => |
| 93 | ((coefficient R P s).X p).obj (op ((AugmentedOrdered.Cech.formal U q).obj b))) a ≫ |
| 94 | (Koszul.HomPresheaf.differential R (Fractions.normal R (c := c)) (Fractions.modules R P) |
| 95 | (Koszul.GeneratorMatrix.equation R s) p).app (op ((AugmentedOrdered.Cech.formal U q).obj a)) := by |
| 96 | change AugmentedOrdered.CechFunctor.objectMap U ((coefficient R P s).d p (p + 1)) q ≫ _ = _ |
| 97 | rw [AugmentedOrdered.CechCoordinates.objectMap_comp_pi] |
| 98 | dsimp only [coefficient, Koszul.HomPresheaf.complex] |
| 99 | rw [CochainComplex.of_d] |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Components |