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 Mathlib |
| 2 | |
| 3 | /-! # Principal Opens -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalOpens.Category |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: the category of principal affine opens |
| 11 | |
| 12 | Objects are functions, ordered by inclusion of their principal opens. |
| 13 | Different functions defining the same open are isomorphic objects. |
| 14 | Products are multiplication of functions; the unit function is terminal. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | structure Principal (R : Type u) where |
| 22 | function : R |
| 23 | |
| 24 | variable (R : Type u) [CommRing R] |
| 25 | |
| 26 | instance : Preorder (Principal R) where |
| 27 | le r s := PrimeSpectrum.basicOpen r.function ≤ PrimeSpectrum.basicOpen s.function |
| 28 | le_refl _ := le_rfl |
| 29 | le_trans _ _ _ := le_trans |
| 30 | |
| 31 | def toOpens : Principal R ⥤ TopologicalSpace.Opens (PrimeSpectrum R) := |
| 32 | (show Monotone (fun r : Principal R => PrimeSpectrum.basicOpen r.function) from fun _ _ h => h).functor |
| 33 | |
| 34 | def top : Principal R := ⟨1⟩ |
| 35 | |
| 36 | def toTop (r : Principal R) : r ⟶ top R := homOfLE (by |
| 37 | change PrimeSpectrum.basicOpen r.function ≤ PrimeSpectrum.basicOpen (1 : R) |
| 38 | rw [PrimeSpectrum.basicOpen_one] |
| 39 | exact le_top) |
| 40 | |
| 41 | def isTerminal : IsTerminal (top R) := |
| 42 | IsTerminal.ofUniqueHom (toTop R) (fun _ _ => Subsingleton.elim _ _) |
| 43 | |
| 44 | def product (r s : Principal R) : Principal R := ⟨r.function * s.function⟩ |
| 45 | |
| 46 | def fst (r s : Principal R) : product R r s ⟶ r := |
| 47 | homOfLE (PrimeSpectrum.basicOpen_mul_le_left r.function s.function) |
| 48 | |
| 49 | def snd (r s : Principal R) : product R r s ⟶ s := |
| 50 | homOfLE (PrimeSpectrum.basicOpen_mul_le_right r.function s.function) |
| 51 | |
| 52 | def lift {t r s : Principal R} (a : t ⟶ r) (b : t ⟶ s) : t ⟶ product R r s := homOfLE (by |
| 53 | change PrimeSpectrum.basicOpen t.function ≤ PrimeSpectrum.basicOpen (r.function * s.function) |
| 54 | rw [PrimeSpectrum.basicOpen_mul] |
| 55 | exact le_inf (leOfHom a) (leOfHom b)) |
| 56 | |
| 57 | def fan (r s : Principal R) : BinaryFan r s := BinaryFan.mk (Category.fst R r s) (Category.snd R r s) |
| 58 | |
| 59 | def isProduct (r s : Principal R) : IsLimit (fan R r s) := |
| 60 | BinaryFan.isLimitMk (fun c => lift R c.fst c.snd) |
| 61 | (fun _ => Subsingleton.elim _ _) (fun _ => Subsingleton.elim _ _) |
| 62 | (fun _ _ _ _ => Subsingleton.elim _ _) |
| 63 | |
| 64 | instance hasProduct (r s : Principal R) : HasLimit (pair r s) := HasLimit.mk ⟨fan R r s, isProduct R r s⟩ |
| 65 | |
| 66 | instance hasBinaryProducts : HasBinaryProducts (Principal R) := hasBinaryProducts_of_hasLimit_pair _ |
| 67 | |
| 68 | instance hasEqualizer {r s : Principal R} (a b : r ⟶ s) : HasEqualizer a b := by |
| 69 | have he : a = b := Subsingleton.elim _ _ |
| 70 | subst b |
| 71 | infer_instance |
| 72 | |
| 73 | instance hasEqualizers : HasEqualizers (Principal R) := hasEqualizers_of_hasLimit_parallelPair _ |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalOpens.Category |