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.HodgeConjecture.DegreeTwo.TensorChainQuotient |
| 2 | |
| 3 | /-! # Triple Quotient -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.TripleQuotient |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Descending a three-factor tensor map through three actual cokernels. -/ |
| 10 | |
| 11 | set_option backward.isDefEq.respectTransparency false |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.MonoidalCategory |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | namespace Constructions |
| 17 | |
| 18 | variable {k : Type} [Field k] |
| 19 | |
| 20 | abbrev identitySequence (M : ModuleCat.{0} k) : ShortComplex (ModuleCat.{0} k) := |
| 21 | ShortComplex.mk (0 : ModuleCat.of k (Fin 0 → k) ⟶ M) (𝟙 M) (by simp) |
| 22 | |
| 23 | theorem identitySequence_exact (M : ModuleCat.{0} k) : (identitySequence M).Exact := by |
| 24 | apply (ShortComplex.moduleCat_exact_iff _).mpr |
| 25 | intro x hx |
| 26 | refine ⟨0, ?_⟩ |
| 27 | exact hx.symm |
| 28 | |
| 29 | theorem tensor_epi {A B C D : ModuleCat.{0} k} (f : A ⟶ C) (g : B ⟶ D) |
| 30 | [Epi f] [Epi g] : Epi (f ⊗ₘ g) := by |
| 31 | apply (ModuleCat.epi_iff_surjective _).mpr |
| 32 | exact TensorProduct.map_surjective |
| 33 | ((ModuleCat.epi_iff_surjective f).mp inferInstance) |
| 34 | ((ModuleCat.epi_iff_surjective g).mp inferInstance) |
| 35 | |
| 36 | variable (s t u : ShortComplex (ModuleCat.{0} k)) |
| 37 | variable (hs : s.Exact) (ht : t.Exact) (hu : u.Exact) |
| 38 | variable {M : ModuleCat.{0} k} (f : (s.X₂ ⊗ t.X₂) ⊗ u.X₂ ⟶ M) |
| 39 | variable (h₁ : ((s.f ▷ t.X₂) ▷ u.X₂) ≫ f = 0) |
| 40 | variable (h₂ : ((s.X₂ ◁ t.f) ▷ u.X₂) ≫ f = 0) |
| 41 | variable (h₃ : ((s.X₂ ⊗ t.X₂) ◁ u.f) ≫ f = 0) |
| 42 | |
| 43 | def curryFirstTwo : s.X₂ ⊗ t.X₂ ⟶ ModuleCat.of k (u.X₂ →ₗ[k] M) := |
| 44 | ModuleCat.ofHom (TensorProduct.curry f.hom) |
| 45 | |
| 46 | include h₁ in |
| 47 | theorem curryFirstTwo_left : (s.f ▷ t.X₂) ≫ curryFirstTwo s t u f = 0 := by |
| 48 | apply ModuleCat.hom_ext |
| 49 | apply LinearMap.ext |
| 50 | intro x |
| 51 | apply LinearMap.ext |
| 52 | intro z |
| 53 | exact ConcreteCategory.congr_hom h₁ (x ⊗ₜ[k] z) |
| 54 | |
| 55 | include h₂ in |
| 56 | theorem curryFirstTwo_right : (s.X₂ ◁ t.f) ≫ curryFirstTwo s t u f = 0 := by |
| 57 | apply ModuleCat.hom_ext |
| 58 | apply LinearMap.ext |
| 59 | intro x |
| 60 | apply LinearMap.ext |
| 61 | intro z |
| 62 | exact ConcreteCategory.congr_hom h₂ (x ⊗ₜ[k] z) |
| 63 | |
| 64 | variable [Epi s.g] [Epi t.g] |
| 65 | |
| 66 | def firstTwoDesc : (s.X₃ ⊗ t.X₃) ⊗ u.X₂ ⟶ M := |
| 67 | ModuleCat.ofHom (TensorProduct.lift |
| 68 | (HodgeConjecture.DegreeTwo.TensorChainQuotient.Constructions.moduleTensorQuotientDesc s t hs ht (curryFirstTwo s t u f) |
| 69 | (curryFirstTwo_left s t u f h₁) (curryFirstTwo_right s t u f h₂)).hom) |
| 70 | |
| 71 | theorem firstTwoDesc_fac : |
| 72 | ((s.g ⊗ₘ t.g) ⊗ₘ 𝟙 u.X₂) ≫ firstTwoDesc s t u hs ht f h₁ h₂ = f := by |
| 73 | apply ModuleCat.hom_ext |
| 74 | apply TensorProduct.ext' |
| 75 | intro x z |
| 76 | have he := ConcreteCategory.congr_hom |
| 77 | (HodgeConjecture.DegreeTwo.TensorChainQuotient.Constructions.moduleTensorQuotientDesc_fac s t hs ht (curryFirstTwo s t u f) |
| 78 | (curryFirstTwo_left s t u f h₁) (curryFirstTwo_right s t u f h₂)) x |
| 79 | exact congrArg (fun v => v z) he |
| 80 | |
| 81 | include h₃ in |
| 82 | theorem firstTwoDesc_third_zero : |
| 83 | ((s.X₃ ⊗ t.X₃) ◁ u.f) ≫ firstTwoDesc s t u hs ht f h₁ h₂ = 0 := by |
| 84 | let : Epi (s.g ⊗ₘ t.g) := tensor_epi s.g t.g |
| 85 | let : Epi ((s.g ⊗ₘ t.g) ⊗ₘ 𝟙 u.X₁) := tensor_epi (s.g ⊗ₘ t.g) (𝟙 u.X₁) |
| 86 | apply (cancel_epi ((s.g ⊗ₘ t.g) ⊗ₘ 𝟙 u.X₁)).mp |
| 87 | change ((s.g ⊗ₘ t.g) ⊗ₘ 𝟙 u.X₁) ≫ ((𝟙 _ ⊗ₘ u.f) ≫ _) = _ |
| 88 | rw [← Category.assoc, tensorHom_comp_tensorHom, Category.comp_id, Category.id_comp] |
| 89 | have he : (s.g ⊗ₘ t.g) ⊗ₘ u.f = |
| 90 | (𝟙 (s.X₂ ⊗ t.X₂) ⊗ₘ u.f) ≫ ((s.g ⊗ₘ t.g) ⊗ₘ 𝟙 u.X₂) := by |
| 91 | rw [tensorHom_comp_tensorHom, Category.id_comp, Category.comp_id] |
| 92 | rw [he, Category.assoc, firstTwoDesc_fac] |
| 93 | exact h₃.trans comp_zero.symm |
| 94 | |
| 95 | variable [Epi u.g] |
| 96 | |
| 97 | def tripleQuotientDesc : (s.X₃ ⊗ t.X₃) ⊗ u.X₃ ⟶ M := |
| 98 | HodgeConjecture.DegreeTwo.TensorChainQuotient.Constructions.moduleTensorQuotientDesc (identitySequence (s.X₃ ⊗ t.X₃)) u |
| 99 | (identitySequence_exact _) hu (firstTwoDesc s t u hs ht f h₁ h₂) |
| 100 | (by |
| 101 | change ((0 : ModuleCat.of k (Fin 0 → k) ⟶ s.X₃ ⊗ t.X₃) ▷ u.X₂) ≫ _ = 0 |
| 102 | simp) |
| 103 | (firstTwoDesc_third_zero s t u hs ht f h₁ h₂ h₃) |
| 104 | |
| 105 | theorem tripleQuotientDesc_fac : |
| 106 | ((s.g ⊗ₘ t.g) ⊗ₘ u.g) ≫ tripleQuotientDesc s t u hs ht hu f h₁ h₂ h₃ = f := by |
| 107 | have he : (s.g ⊗ₘ t.g) ⊗ₘ u.g = |
| 108 | ((s.g ⊗ₘ t.g) ⊗ₘ 𝟙 u.X₂) ≫ (𝟙 (s.X₃ ⊗ t.X₃) ⊗ₘ u.g) := by |
| 109 | rw [tensorHom_comp_tensorHom, Category.comp_id, Category.id_comp] |
| 110 | rw [he, Category.assoc] |
| 111 | change _ ≫ (((identitySequence (s.X₃ ⊗ t.X₃)).g ⊗ₘ u.g) ≫ _) = _ |
| 112 | rw [tripleQuotientDesc, HodgeConjecture.DegreeTwo.TensorChainQuotient.Constructions.moduleTensorQuotientDesc_fac, firstTwoDesc_fac] |
| 113 | |
| 114 | end Constructions |
| 115 | |
| 116 | end |
| 117 | |
| 118 | end OAI.AlgebraicGeometry.CycleClass.Thom.TripleQuotient |