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.Koszul.HomPresheaf |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.DenominatorUnits |
| 3 | import Mathlib.Algebra.Category.CommAlgCat.Basic |
| 4 | |
| 5 | /-! # Fractions -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Fractions |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Partial fractions retain the normal Koszul variables and divide |
| 12 | only by the point parameters. These are the actual components of the |
| 13 | mixed Koszul-to-supported-Čech comparison. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 15 | set_option backward.defeqAttrib.useBackward true |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | universe u |
| 19 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.DenominatorUnits |
| 20 | variable {C : Type u} [Preorder C] [HasFiniteProducts C] |
| 21 | (R : Type u) [CommRing R] (P : Cᵒᵖ ⥤ CommAlgCat.{u} R) |
| 22 | |
| 23 | abbrev rings := P ⋙ forget₂ (CommAlgCat R) CommRingCat |
| 24 | abbrev modules := P ⋙ forget₂ (CommAlgCat R) (AlgCat R) ⋙ forget₂ (AlgCat R) (ModuleCat R) |
| 25 | |
| 26 | def scalars : (Functor.const Cᵒᵖ).obj (CommRingCat.of R) ⟶ rings R P where |
| 27 | app a := CommRingCat.ofHom (algebraMap R (P.obj a)) |
| 28 | naturality a b f := by |
| 29 | apply CommRingCat.hom_ext |
| 30 | apply RingHom.ext |
| 31 | intro r |
| 32 | exact ((P.map f).hom.commutes r).symm |
| 33 | |
| 34 | variable {c m : ℕ} (U : ULift.{u} (Fin m) → C) |
| 35 | (t : Fin m → R) (ht : ∀ i, IsUnit (algebraMap R (P.obj (op (U i))) (t i.down))) |
| 36 | |
| 37 | abbrev normal := Fin c → R |
| 38 | abbrev parameters := Fin m → R |
| 39 | abbrev ambient := (Fin c → R) × (Fin m → R) |
| 40 | |
| 41 | def tuple {q : ℕ} (a : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) q) : Fin q → ambient R (c := c) (m := m) := |
| 42 | fun j => (0, Pi.basisFun R (Fin m) (a.val j).down) |
| 43 | |
| 44 | def insertion (p q : ℕ) (a : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) q) : |
| 45 | (⋀[R]^p (normal R (c := c))) →ₗ[R] (⋀[R]^(p + q) (ambient R (c := c) (m := m))) := |
| 46 | (Koszul.OrderedProduct.rightWord R _ p q (tuple R (c := c) a)).comp |
| 47 | (exteriorPower.map p (LinearMap.inl R (normal R (c := c)) (parameters R (m := m)))) |
| 48 | |
| 49 | def reciprocal {q : ℕ} (a : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) q) : P.obj (op ((AugmentedOrdered.Cech.formal U q).obj a)) := |
| 50 | ((Cech.DenominatorUnits.denominator U (rings R P) R (scalars R P) (fun i => t i.down) ht a)⁻¹).val |
| 51 | |
| 52 | def coordinate (p q : ℕ) (a : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) q) : |
| 53 | Module.Dual R (⋀[R]^(p + q) (ambient R (c := c) (m := m))) →ₗ[R] |
| 54 | ((⋀[R]^p (normal R (c := c))) →ₗ[R] P.obj (op ((AugmentedOrdered.Cech.formal U q).obj a))) where |
| 55 | toFun φ := |
| 56 | reciprocal R P U t ht a • |
| 57 | ((Algebra.linearMap R (P.obj (op ((AugmentedOrdered.Cech.formal U q).obj a)))).comp |
| 58 | (φ.comp (insertion R p q a))) |
| 59 | map_add' φ ψ := by |
| 60 | apply LinearMap.ext |
| 61 | intro x |
| 62 | simp only [LinearMap.comp_apply, LinearMap.smul_apply, LinearMap.add_apply, map_add, smul_add] |
| 63 | map_smul' r φ := by |
| 64 | apply LinearMap.ext |
| 65 | intro x |
| 66 | simp only [LinearMap.comp_apply, LinearMap.smul_apply, RingHom.id_apply, map_smul] |
| 67 | exact smul_comm _ _ _ |
| 68 | |
| 69 | theorem coordinate_apply (p q : ℕ) (a : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) q) |
| 70 | (φ : Module.Dual R (⋀[R]^(p + q) (ambient R (c := c) (m := m)))) |
| 71 | (x : ⋀[R]^p (normal R (c := c))) : |
| 72 | coordinate R P U t ht p q a φ x = |
| 73 | reciprocal R P U t ht a * |
| 74 | algebraMap R (P.obj (op ((AugmentedOrdered.Cech.formal U q).obj a))) (φ (insertion R p q a x)) := rfl |
| 75 | |
| 76 | theorem coordinate_zero (p : ℕ) (a : AugmentedOrdered.Cech.Index (ULift.{u} (Fin m)) 0) |
| 77 | (φ : Module.Dual R (⋀[R]^p (ambient R (c := c) (m := m)))) |
| 78 | (x : ⋀[R]^p (normal R (c := c))) : |
| 79 | coordinate R P U t ht p 0 a φ x = |
| 80 | algebraMap R (P.obj (op ((AugmentedOrdered.Cech.formal U 0).obj a))) |
| 81 | (φ (exteriorPower.map p (LinearMap.inl R (normal R (c := c)) (parameters R (m := m))) x)) := by |
| 82 | have hi : insertion R p 0 a x = |
| 83 | exteriorPower.map p (LinearMap.inl R (normal R (c := c)) (parameters R (m := m))) x := by |
| 84 | apply Subtype.ext |
| 85 | change _ * ExteriorAlgebra.ιMulti R 0 _ = _ |
| 86 | rw [ExteriorAlgebra.ιMulti_zero_apply, mul_one] |
| 87 | rfl |
| 88 | rw [coordinate_apply, hi] |
| 89 | simp [reciprocal, Cech.DenominatorUnits.denominator] |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Fractions |