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.CentralAction.Descent |
| 2 | |
| 3 | /-! # Tensor Kernel Pair -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.CentralAction.TensorKernelPair.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The kernel pair of a product map with an identity factor is the |
| 10 | product of that factor with the original kernel pair. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 14 | |
| 15 | universe u v |
| 16 | variable {C : Type u} [Category.{v} C] [CartesianMonoidalCategory C] [HasPullbacks C] |
| 17 | |
| 18 | def tensorKernelPairIso (H : C) {A B : C} (f : A ⟶ B) : |
| 19 | pullback (𝟙 H ⊗ₘ f) (𝟙 H ⊗ₘ f) ≅ H ⊗ pullback f f := by |
| 20 | let r := 𝟙 H ⊗ₘ f |
| 21 | let p := pullback.fst r r |
| 22 | let q := pullback.snd r r |
| 23 | have hh : p ≫ fst H A = q ≫ fst H A := by |
| 24 | have h := congrArg (fun a => a ≫ fst H B) (pullback.condition (f := r) (g := r)) |
| 25 | simpa [r, p, q] using h |
| 26 | have hf : (p ≫ snd H A) ≫ f = (q ≫ snd H A) ≫ f := by |
| 27 | have h := congrArg (fun a => a ≫ snd H B) (pullback.condition (f := r) (g := r)) |
| 28 | simpa [r, p, q] using h |
| 29 | let a := lift (p ≫ fst H A) (pullback.lift (p ≫ snd H A) (q ≫ snd H A) hf) |
| 30 | have hb : (𝟙 H ⊗ₘ pullback.fst f f) ≫ r = (𝟙 H ⊗ₘ pullback.snd f f) ≫ r := by |
| 31 | simp only [r, tensorHom_comp_tensorHom, Category.id_comp, pullback.condition] |
| 32 | let b := pullback.lift (𝟙 H ⊗ₘ pullback.fst f f) (𝟙 H ⊗ₘ pullback.snd f f) hb |
| 33 | have hb₁ : b ≫ p = 𝟙 H ⊗ₘ pullback.fst f f := pullback.lift_fst _ _ _ |
| 34 | have hb₂ : b ≫ q = 𝟙 H ⊗ₘ pullback.snd f f := pullback.lift_snd _ _ _ |
| 35 | have ha₁ : a ≫ fst H (pullback f f) = p ≫ fst H A := lift_fst _ _ |
| 36 | have ha₂ : a ≫ snd H (pullback f f) = |
| 37 | pullback.lift (p ≫ snd H A) (q ≫ snd H A) hf := lift_snd _ _ |
| 38 | have ha₂₁ : a ≫ snd H (pullback f f) ≫ pullback.fst f f = p ≫ snd H A := by |
| 39 | rw [← Category.assoc, ha₂, pullback.lift_fst] |
| 40 | have ha₂₂ : a ≫ snd H (pullback f f) ≫ pullback.snd f f = q ≫ snd H A := by |
| 41 | rw [← Category.assoc, ha₂, pullback.lift_snd] |
| 42 | have hap : a ≫ (𝟙 H ⊗ₘ pullback.fst f f) = p := by |
| 43 | apply CartesianMonoidalCategory.hom_ext |
| 44 | · rw [Category.assoc, tensorHom_fst, Category.comp_id, ha₁] |
| 45 | · rw [Category.assoc, tensorHom_snd, ha₂₁] |
| 46 | have haq : a ≫ (𝟙 H ⊗ₘ pullback.snd f f) = q := by |
| 47 | apply CartesianMonoidalCategory.hom_ext |
| 48 | · rw [Category.assoc, tensorHom_fst, Category.comp_id, ha₁, hh] |
| 49 | · rw [Category.assoc, tensorHom_snd, ha₂₂] |
| 50 | refine ⟨a, b, ?_, ?_⟩ |
| 51 | · apply pullback.hom_ext <;> simp only [Category.id_comp] |
| 52 | · change (a ≫ b) ≫ p = p |
| 53 | rw [Category.assoc, hb₁, hap] |
| 54 | · change (a ≫ b) ≫ q = q |
| 55 | rw [Category.assoc, hb₂, haq] |
| 56 | · apply CartesianMonoidalCategory.hom_ext <;> simp only [Category.id_comp] |
| 57 | · change (b ≫ a) ≫ fst H (pullback f f) = fst H (pullback f f) |
| 58 | rw [Category.assoc, ha₁, ← Category.assoc, hb₁, tensorHom_fst, Category.comp_id] |
| 59 | · apply pullback.hom_ext |
| 60 | · change ((b ≫ a) ≫ snd H (pullback f f)) ≫ pullback.fst f f = |
| 61 | snd H (pullback f f) ≫ pullback.fst f f |
| 62 | rw [Category.assoc, Category.assoc, ha₂₁, ← Category.assoc, hb₁, tensorHom_snd] |
| 63 | · change ((b ≫ a) ≫ snd H (pullback f f)) ≫ pullback.snd f f = |
| 64 | snd H (pullback f f) ≫ pullback.snd f f |
| 65 | rw [Category.assoc, Category.assoc, ha₂₂, ← Category.assoc, hb₂, tensorHom_snd] |
| 66 | |
| 67 | theorem tensorKernelPairIso_inv_fst (H : C) {A B : C} (f : A ⟶ B) : |
| 68 | (tensorKernelPairIso H f).inv ≫ pullback.fst (𝟙 H ⊗ₘ f) (𝟙 H ⊗ₘ f) = |
| 69 | 𝟙 H ⊗ₘ pullback.fst f f := pullback.lift_fst _ _ _ |
| 70 | |
| 71 | theorem tensorKernelPairIso_inv_snd (H : C) {A B : C} (f : A ⟶ B) : |
| 72 | (tensorKernelPairIso H f).inv ≫ pullback.snd (𝟙 H ⊗ₘ f) (𝟙 H ⊗ₘ f) = |
| 73 | 𝟙 H ⊗ₘ pullback.snd f f := pullback.lift_snd _ _ _ |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.AbelianScheme.CentralAction.TensorKernelPair.Construction |