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.AugmentedOrdered.CechCoordinates |
| 2 | import Mathlib.Algebra.Category.Ring.Basic |
| 3 | import Mathlib.Algebra.BigOperators.Fin |
| 4 | |
| 5 | /-! # Denominator Units -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.DenominatorUnits |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Canonical units and denominator cancellation on the actual ordered |
| 12 | Čech intersections. No choice of inverse or representative is imposed |
| 13 | on a restriction map. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 16 | |
| 17 | set_option backward.defeqAttrib.useBackward true |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | |
| 21 | universe u |
| 22 | open OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechCoordinates |
| 23 | |
| 24 | variable {C : Type u} [Preorder C] [HasFiniteProducts C] |
| 25 | {ι : Type u} [LinearOrder ι] (U : ι → C) (P : Cᵒᵖ ⥤ CommRingCat.{u}) |
| 26 | (R : Type u) [CommRing R] |
| 27 | (α : (Functor.const Cᵒᵖ).obj (CommRingCat.of R) ⟶ P) |
| 28 | (s : ι → R) (hs : ∀ i, IsUnit ((α.app (op (U i))) (s i))) |
| 29 | |
| 30 | def ring {q : ℕ} (a : AugmentedOrdered.Cech.Index ι q) := P.obj (op ((AugmentedOrdered.Cech.formal U q).obj a)) |
| 31 | instance {q : ℕ} (a : AugmentedOrdered.Cech.Index ι q) : CommRing (ring U P a) := inferInstanceAs (CommRing (P.obj _)) |
| 32 | |
| 33 | abbrev scalar {q : ℕ} (a : AugmentedOrdered.Cech.Index ι q) : R →+* ring U P a := (α.app _).hom |
| 34 | |
| 35 | def coordinateUnit {q : ℕ} (a : AugmentedOrdered.Cech.Index ι q) (j : Fin q) : (ring U P a)ˣ := |
| 36 | (hs (a.val j)).unit.map (P.map (Pi.π (fun i : Fin q => U (a.val i)) j).op).hom.toMonoidHom |
| 37 | |
| 38 | omit [HasFiniteProducts C] in |
| 39 | theorem scalar_natural {c d : C} (f : c ⟶ d) (r : R) : |
| 40 | P.map f.op (α.app (op d) r) = α.app (op c) r := by |
| 41 | have h := ConcreteCategory.congr_hom (α.naturality f.op) r |
| 42 | exact h.symm |
| 43 | |
| 44 | theorem coordinateUnit_val {q : ℕ} (a : AugmentedOrdered.Cech.Index ι q) (j : Fin q) : |
| 45 | ((coordinateUnit U P R α s hs a j : (ring U P a)ˣ) : ring U P a) = scalar U P R α a (s (a.val j)) := by |
| 46 | change P.map (Pi.π (fun i : Fin q => U (a.val i)) j).op ((hs (a.val j)).unit.val) = _ |
| 47 | rw [IsUnit.unit_spec] |
| 48 | exact scalar_natural P R α _ _ |
| 49 | |
| 50 | def denominator {q : ℕ} (a : AugmentedOrdered.Cech.Index ι q) : (ring U P a)ˣ := ∏ j, coordinateUnit U P R α s hs a j |
| 51 | |
| 52 | abbrev restriction {q : ℕ} (a : AugmentedOrdered.Cech.Index ι (q + 1)) (k : Fin (q + 1)) : |
| 53 | ring U P (a.delete k) →+* ring U P a := (P.map ((AugmentedOrdered.Cech.face U q k).φ a).op).hom |
| 54 | |
| 55 | theorem coordinateUnit_restriction {q : ℕ} (a : AugmentedOrdered.Cech.Index ι (q + 1)) (k : Fin (q + 1)) (j : Fin q) : |
| 56 | (coordinateUnit U P R α s hs (a.delete k) j).map (restriction U P a k).toMonoidHom = |
| 57 | coordinateUnit U P R α s hs a (k.succAbove j) := by |
| 58 | apply Units.ext |
| 59 | simp only [Units.coe_map, coordinateUnit_val] |
| 60 | exact scalar_natural P R α _ _ |
| 61 | |
| 62 | theorem denominator_delete {q : ℕ} (a : AugmentedOrdered.Cech.Index ι (q + 1)) (k : Fin (q + 1)) : |
| 63 | denominator U P R α s hs a = coordinateUnit U P R α s hs a k * |
| 64 | (denominator U P R α s hs (a.delete k)).map (restriction U P a k).toMonoidHom := by |
| 65 | unfold denominator |
| 66 | rw [map_prod] |
| 67 | simp_rw [coordinateUnit_restriction] |
| 68 | exact Fin.prod_univ_succAbove (coordinateUnit U P R α s hs a) k |
| 69 | |
| 70 | theorem cancellation {q : ℕ} (a : AugmentedOrdered.Cech.Index ι (q + 1)) (k : Fin (q + 1)) : |
| 71 | scalar U P R α a (s (a.val k)) * (↑((denominator U P R α s hs a)⁻¹) : ring U P a) = |
| 72 | restriction U P a k (↑((denominator U P R α s hs (a.delete k))⁻¹)) := by |
| 73 | have h : coordinateUnit U P R α s hs a k * (denominator U P R α s hs a)⁻¹ = |
| 74 | ((denominator U P R α s hs (a.delete k))⁻¹).map (restriction U P a k).toMonoidHom := by |
| 75 | rw [denominator_delete U P R α s hs a k] |
| 76 | simp [mul_inv_rev] |
| 77 | have hval := congrArg Units.val h |
| 78 | change _ * _ = restriction U P a k _ at hval |
| 79 | rw [coordinateUnit_val] at hval |
| 80 | exact hval |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.DenominatorUnits |