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.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.BlockProducts |
| 2 | |
| 3 | /-! # Product Points -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.ProductPoints.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | The explicit finite block product represents tuples of points on every |
| 11 | test scheme. Both the multiplication and test-scheme naturality are kept. |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 15 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 16 | open scoped _root_.CategoryTheory.MonObj |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {S : Scheme.{u}} |
| 21 | |
| 22 | def groupPairPointsEquiv (G H : Grp (Over S)) (T : Over S) : |
| 23 | (T ⟶ (G ⊗ H).X) ≃* ((T ⟶ G.X) × (T ⟶ H.X)) where |
| 24 | toFun a := (a ≫ fst G.X H.X, a ≫ snd G.X H.X) |
| 25 | invFun a := lift a.1 a.2 |
| 26 | left_inv a := (comp_lift a (fst G.X H.X) (snd G.X H.X)).symm.trans |
| 27 | ((congrArg (fun f => a ≫ f) lift_fst_snd).trans (Category.comp_id a)) |
| 28 | right_inv a := by simp only [lift_fst, lift_snd] |
| 29 | map_mul' a b := by |
| 30 | change T ⟶ G.X ⊗ H.X at a b |
| 31 | exact Prod.ext (MonObj.mul_comp a b (fst G.X H.X)) (MonObj.mul_comp a b (snd G.X H.X)) |
| 32 | |
| 33 | def tuplePairsMulEquiv {I : Type*} (P : I × Bool → Type*) [∀ v, Mul (P v)] : |
| 34 | (∀ v, P (v, false) × P (v, true)) ≃* (∀ v, P v) where |
| 35 | toFun f v := match v with | (i, false) => (f i).1 | (i, true) => (f i).2 |
| 36 | invFun f v := (f (v, false), f (v, true)) |
| 37 | left_inv _ := rfl |
| 38 | right_inv f := by funext ⟨v, b⟩; cases b <;> rfl |
| 39 | map_mul' _ _ := by funext ⟨v, b⟩; cases b <;> rfl |
| 40 | |
| 41 | def piReindexMulEquiv {I J : Type*} (P : J → Type*) [∀ v, Mul (P v)] (e : I ≃ J) : |
| 42 | (∀ v, P (e v)) ≃* (∀ v, P v) where |
| 43 | toEquiv := Equiv.piCongrLeft P e |
| 44 | map_mul' a b := by |
| 45 | funext v |
| 46 | obtain ⟨w, rfl⟩ := e.surjective v |
| 47 | exact (Equiv.piCongrLeft_apply_apply P e (a * b) w).trans |
| 48 | (congrArg₂ (· * ·) (Equiv.piCongrLeft_apply_apply P e a w).symm |
| 49 | (Equiv.piCongrLeft_apply_apply P e b w).symm) |
| 50 | |
| 51 | def groupBlockProductPointsEquiv : (n : ℕ) → (B : Fin n → Grp (Over S)) → (T : Over S) → |
| 52 | (T ⟶ (BlockProducts.Construction.groupBlockProduct n B).X) ≃* (∀ v, T ⟶ (B v).X) |
| 53 | | 0, _, T => |
| 54 | { toFun := fun _ v => Fin.elim0 v |
| 55 | invFun := fun _ => toUnit T |
| 56 | left_inv := fun _ => toUnit_unique _ _ |
| 57 | right_inv := fun _ => funext (fun v => Fin.elim0 v) |
| 58 | map_mul' := fun _ _ => funext (fun v => Fin.elim0 v) } |
| 59 | | n + 1, B, T => |
| 60 | let C := BlockProducts.Construction.groupBlockProduct n (fun v => B v.succ) |
| 61 | let e := groupBlockProductPointsEquiv n (fun v => B v.succ) T |
| 62 | { toFun := fun a => Fin.cons (a ≫ fst (B 0).X C.X) (e (a ≫ snd (B 0).X C.X)) |
| 63 | invFun := fun b => lift (b 0) (e.symm (fun v => b v.succ)) |
| 64 | left_inv := by |
| 65 | intro a |
| 66 | apply CartesianMonoidalCategory.hom_ext |
| 67 | · exact lift_fst _ _ |
| 68 | · exact (lift_snd _ _).trans (e.symm_apply_apply _) |
| 69 | right_inv := by |
| 70 | intro b |
| 71 | funext v |
| 72 | refine Fin.cases ?_ (fun w => ?_) v |
| 73 | · exact lift_fst _ _ |
| 74 | · exact congrFun ((congrArg e (lift_snd (b 0) (e.symm (fun w => b w.succ)))).trans |
| 75 | (e.apply_symm_apply _)) w |
| 76 | map_mul' := by |
| 77 | intro a b |
| 78 | change T ⟶ (B 0).X ⊗ C.X at a b |
| 79 | funext v |
| 80 | refine Fin.cases ?_ (fun w => ?_) v |
| 81 | · exact MonObj.mul_comp a b (fst (B 0).X C.X) |
| 82 | · exact congrFun ((congrArg e (MonObj.mul_comp a b (snd (B 0).X C.X))).trans |
| 83 | (e.map_mul _ _)) w } |
| 84 | |
| 85 | theorem groupBlockProductPointsEquiv_natural (n : ℕ) (B : Fin n → Grp (Over S)) |
| 86 | {T U : Over S} (f : T ⟶ U) (a : U ⟶ (BlockProducts.Construction.groupBlockProduct n B).X) (v : Fin n) : |
| 87 | Construction.groupBlockProductPointsEquiv n B T (f ≫ a) v = |
| 88 | f ≫ Construction.groupBlockProductPointsEquiv n B U a v := by |
| 89 | induction n with |
| 90 | | zero => exact Fin.elim0 v |
| 91 | | succ n ih => |
| 92 | refine Fin.cases ?_ (fun w => ?_) v |
| 93 | · exact Category.assoc f a (fst (B 0).X (BlockProducts.Construction.groupBlockProduct n (fun w => B w.succ)).X) |
| 94 | · change Construction.groupBlockProductPointsEquiv n (fun w => B w.succ) T |
| 95 | ((f ≫ a) ≫ snd (B 0).X (BlockProducts.Construction.groupBlockProduct n (fun w => B w.succ)).X) w = _ |
| 96 | exact (congrArg (fun z => Construction.groupBlockProductPointsEquiv n (fun w => B w.succ) T z w) |
| 97 | (Category.assoc f a (snd (B 0).X (BlockProducts.Construction.groupBlockProduct n (fun w => B w.succ)).X))).trans |
| 98 | (ih _ _ w) |
| 99 | |
| 100 | /-- Product inclusions act on each test-scheme coordinate separately. -/ |
| 101 | theorem groupBlockProductPointsEquiv_map (n : ℕ) (B C : Fin n → Grp (Over S)) |
| 102 | (f : ∀ v, B v ⟶ C v) (T : Over S) (a : T ⟶ (BlockProducts.Construction.groupBlockProduct n B).X) (v : Fin n) : |
| 103 | Construction.groupBlockProductPointsEquiv n C T (a ≫ (BlockProducts.Construction.groupBlockProductMap n B C f).hom.hom) v = |
| 104 | Construction.groupBlockProductPointsEquiv n B T a v ≫ (f v).hom.hom := by |
| 105 | induction n with |
| 106 | | zero => exact Fin.elim0 v |
| 107 | | succ n ih => |
| 108 | let B' := BlockProducts.Construction.groupBlockProduct n (fun w => B w.succ) |
| 109 | let C' := BlockProducts.Construction.groupBlockProduct n (fun w => C w.succ) |
| 110 | let f' := (BlockProducts.Construction.groupBlockProductMap n (fun w => B w.succ) (fun w => C w.succ) |
| 111 | (fun w => f w.succ)).hom.hom |
| 112 | refine Fin.cases ?_ (fun w => ?_) v |
| 113 | · change (a ≫ ((f 0).hom.hom ⊗ₘ f')) ≫ fst (C 0).X C'.X = |
| 114 | (a ≫ fst (B 0).X B'.X) ≫ (f 0).hom.hom |
| 115 | exact (Category.assoc a ((f 0).hom.hom ⊗ₘ f') (fst (C 0).X C'.X)).trans |
| 116 | ((congrArg (fun z => a ≫ z) (tensorHom_fst (f 0).hom.hom f')).trans |
| 117 | (Category.assoc a (fst (B 0).X B'.X) (f 0).hom.hom).symm) |
| 118 | · change Construction.groupBlockProductPointsEquiv n (fun w => C w.succ) T |
| 119 | ((a ≫ ((f 0).hom.hom ⊗ₘ f')) ≫ snd (C 0).X C'.X) w = _ |
| 120 | have hp := (Category.assoc a ((f 0).hom.hom ⊗ₘ f') (snd (C 0).X C'.X)).trans |
| 121 | ((congrArg (fun z => a ≫ z) (tensorHom_snd (f 0).hom.hom f')).trans |
| 122 | (Category.assoc a (snd (B 0).X B'.X) f').symm) |
| 123 | exact (congrArg (fun z => Construction.groupBlockProductPointsEquiv n (fun w => C w.succ) T z w) hp).trans |
| 124 | (ih _ _ _ _ w) |
| 125 | |
| 126 | end |
| 127 | |
| 128 | end OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.ProductPoints.Construction |