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.CategoryTheory.Monoidal.Cartesian.Grp |
| 2 | import Mathlib.CategoryTheory.EffectiveEpi.Basic |
| 3 | |
| 4 | /-! # Group Operations Is -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.GroupOperationsIs.Construction.GroupOperations |
| 7 | |
| 8 | /-! |
| 9 | # Group laws for descended operations |
| 10 | |
| 11 | The group laws can be verified after the epimorphic quotient maps on the |
| 12 | source and its third power. This file does not assume a group structure on |
| 13 | the quotient object. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 17 | open scoped _root_.CategoryTheory.MonObj |
| 18 | |
| 19 | universe u v |
| 20 | |
| 21 | variable {C : Type u} [Category.{v} C] [CartesianMonoidalCategory C] |
| 22 | {A B : C} [GrpObj A] (q : A ⟶ B) (m : B ⊗ B ⟶ B) |
| 23 | (hm : (q ⊗ₘ q) ≫ m = MonObj.mul ≫ q) |
| 24 | |
| 25 | include hm in |
| 26 | /-- Compatibility of multiplication can be used on arbitrary source-valued |
| 27 | points, before the target has been given a group structure. -/ |
| 28 | theorem lift_mul {T : C} (a b : T ⟶ A) : |
| 29 | lift (a ≫ q) (b ≫ q) ≫ m = (a * b) ≫ q := by |
| 30 | rw [← lift_map, Category.assoc, hm, ← Category.assoc] |
| 31 | rfl |
| 32 | |
| 33 | variable [Epi q] |
| 34 | |
| 35 | include hm in |
| 36 | theorem left_unit : |
| 37 | lift (toUnit B ≫ MonObj.one ≫ q) (𝟙 B) ≫ m = 𝟙 B := by |
| 38 | apply (cancel_epi q).mp |
| 39 | rw [comp_lift_assoc] |
| 40 | have h := lift_mul q m hm (1 : A ⟶ A) (𝟙 A) |
| 41 | rw [one_mul, Category.id_comp] at h |
| 42 | simpa [Hom.one_def, Category.assoc] using h |
| 43 | |
| 44 | include hm in |
| 45 | theorem right_unit : |
| 46 | lift (𝟙 B) (toUnit B ≫ MonObj.one ≫ q) ≫ m = 𝟙 B := by |
| 47 | apply (cancel_epi q).mp |
| 48 | rw [comp_lift_assoc] |
| 49 | have h := lift_mul q m hm (𝟙 A) (1 : A ⟶ A) |
| 50 | rw [mul_one, Category.id_comp] at h |
| 51 | simpa [Hom.one_def, Category.assoc] using h |
| 52 | |
| 53 | include hm in |
| 54 | omit [Epi q] in |
| 55 | theorem associative [Epi ((q ⊗ₘ q) ⊗ₘ q)] : |
| 56 | m ▷ B ≫ m = (α_ B B B).hom ≫ B ◁ m ≫ m := by |
| 57 | apply (cancel_epi ((q ⊗ₘ q) ⊗ₘ q)).mp |
| 58 | let a : (A ⊗ A) ⊗ A ⟶ A := fst (A ⊗ A) A ≫ fst A A |
| 59 | let b : (A ⊗ A) ⊗ A ⟶ A := fst (A ⊗ A) A ≫ snd A A |
| 60 | let c : (A ⊗ A) ⊗ A ⟶ A := snd (A ⊗ A) A |
| 61 | have heq : ((q ⊗ₘ q) ⊗ₘ q) = lift (lift (a ≫ q) (b ≫ q)) (c ≫ q) := by |
| 62 | apply hom_ext |
| 63 | · apply hom_ext <;> simp [a, b] |
| 64 | · simp [c] |
| 65 | rw [heq, lift_whiskerRight_assoc, lift_lift_associator_hom_assoc, lift_whiskerLeft_assoc, |
| 66 | lift_mul q m hm a b, lift_mul q m hm b c, |
| 67 | lift_mul q m hm (a * b) c, lift_mul q m hm a (b * c), mul_assoc] |
| 68 | |
| 69 | /-- Operations compatible with an epimorphic map from a group satisfy the |
| 70 | group axioms. Associativity is checked after the epimorphism on third powers. -/ |
| 71 | @[instance_reducible] |
| 72 | def group [Epi ((q ⊗ₘ q) ⊗ₘ q)] (invB : B ⟶ B) |
| 73 | (hi : q ≫ invB = GrpObj.inv ≫ q) : GrpObj B where |
| 74 | one := MonObj.one ≫ q |
| 75 | mul := m |
| 76 | inv := invB |
| 77 | one_mul := by |
| 78 | apply (cancel_epi (λ_ B).inv).mp |
| 79 | have h : (λ_ B).inv ≫ (MonObj.one ≫ q) ▷ B = |
| 80 | lift (toUnit B ≫ MonObj.one ≫ q) (𝟙 B) := by |
| 81 | apply hom_ext <;> simp |
| 82 | rw [← Category.assoc, h, left_unit q m hm, Iso.inv_hom_id] |
| 83 | mul_one := by |
| 84 | apply (cancel_epi (ρ_ B).inv).mp |
| 85 | have h : (ρ_ B).inv ≫ B ◁ (MonObj.one ≫ q) = |
| 86 | lift (𝟙 B) (toUnit B ≫ MonObj.one ≫ q) := by |
| 87 | apply hom_ext <;> simp |
| 88 | rw [← Category.assoc, h, right_unit q m hm, Iso.inv_hom_id] |
| 89 | mul_assoc := associative q m hm |
| 90 | left_inv := by |
| 91 | apply (cancel_epi q).mp |
| 92 | rw [comp_lift_assoc] |
| 93 | have h := lift_mul q m hm ((𝟙 A)⁻¹) (𝟙 A) |
| 94 | rw [inv_mul_cancel] at h |
| 95 | simpa [Hom.inv_def, Hom.one_def, hi, Category.assoc] using h |
| 96 | |
| 97 | right_inv := by |
| 98 | apply (cancel_epi q).mp |
| 99 | rw [comp_lift_assoc] |
| 100 | have h := lift_mul q m hm (𝟙 A) ((𝟙 A)⁻¹) |
| 101 | rw [mul_inv_cancel] at h |
| 102 | simpa [Hom.inv_def, Hom.one_def, hi, Category.assoc] using h |
| 103 | |
| 104 | /-- The map used to descend the operations is a group homomorphism for the |
| 105 | constructed target group structure. -/ |
| 106 | theorem isMonHom_group [Epi ((q ⊗ₘ q) ⊗ₘ q)] (invB : B ⟶ B) |
| 107 | (hi : q ≫ invB = GrpObj.inv ≫ q) : |
| 108 | let := group q m hm invB hi |
| 109 | IsMonHom q := by |
| 110 | let := group q m hm invB hi |
| 111 | exact ⟨rfl, hm.symm⟩ |
| 112 | |
| 113 | /-- Commutativity descends after checking on the epimorphic square of the |
| 114 | quotient map. -/ |
| 115 | theorem isCommMonObj_group [BraidedCategory C] [IsCommMonObj A] |
| 116 | [Epi (q ⊗ₘ q)] [Epi ((q ⊗ₘ q) ⊗ₘ q)] (invB : B ⟶ B) |
| 117 | (hi : q ≫ invB = GrpObj.inv ≫ q) : |
| 118 | let := group q m hm invB hi |
| 119 | IsCommMonObj B := by |
| 120 | let := group q m hm invB hi |
| 121 | constructor |
| 122 | change (β_ B B).hom ≫ m = m |
| 123 | apply (cancel_epi (q ⊗ₘ q)).mp |
| 124 | rw [← lift_fst_comp_snd_comp q q, lift_braiding_hom_assoc, |
| 125 | lift_mul q m hm, lift_mul q m hm, mul_comm] |
| 126 | |
| 127 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.GroupOperationsIs.Construction.GroupOperations |