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.Adjunction.CompositionIso |
| 2 | |
| 3 | /-! # Adjunction Coherence -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.AdjunctionCoherence.Construction |
| 6 | |
| 7 | /-! # Completion: compatibility of adjoint maps with comparison isomorphisms -/ |
| 8 | |
| 9 | open _root_.CategoryTheory |
| 10 | |
| 11 | set_option backward.defeqAttrib.useBackward true |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | variable {C D : Type*} [Category* C] [Category* D] |
| 15 | {L₁ L₂ : C ⥤ D} {R₁ R₂ : D ⥤ C} |
| 16 | |
| 17 | /-- Transporting a map through a left-adjoint comparison transports its |
| 18 | adjoint through the corresponding right-adjoint comparison. -/ |
| 19 | theorem adjunction_mate_homEquiv (a₁ : L₁ ⊣ R₁) (a₂ : L₂ ⊣ R₂) |
| 20 | (τ : L₂ ⟶ L₁) {X : C} {Y : D} (f : L₁.obj X ⟶ Y) : |
| 21 | a₂.homEquiv X Y (τ.app X ≫ f) = |
| 22 | a₁.homEquiv X Y f ≫ (conjugateEquiv a₁ a₂ τ).app Y := by |
| 23 | rw [Adjunction.homEquiv_unit, Functor.map_comp, ← Category.assoc, |
| 24 | ← unit_conjugateEquiv, Category.assoc, |
| 25 | ← (conjugateEquiv a₁ a₂ τ).naturality, ← Category.assoc, |
| 26 | ← Adjunction.homEquiv_unit] |
| 27 | |
| 28 | variable {B : Type*} [Category* B] |
| 29 | {L₀₁ : B ⥤ C} {R₁₀ : C ⥤ B} |
| 30 | {L₁₂ : C ⥤ D} {R₂₁ : D ⥤ C} |
| 31 | {L₀₂ : B ⥤ D} {R₂₀ : D ⥤ B} |
| 32 | |
| 33 | /-- Composite adjoint maps are compatible with the adjoint comparison iso. -/ |
| 34 | theorem adjunction_comp_adjoint (a₀₁ : L₀₁ ⊣ R₁₀) (a₁₂ : L₁₂ ⊣ R₂₁) |
| 35 | (a₀₂ : L₀₂ ⊣ R₂₀) (e : R₂₁ ⋙ R₁₀ ≅ R₂₀) |
| 36 | {X : B} {Y : C} {Z : D} |
| 37 | (f : X ⟶ R₁₀.obj Y) (g : Y ⟶ R₂₁.obj Z) : |
| 38 | (Adjunction.leftAdjointCompIso a₀₁ a₁₂ a₀₂ e).hom.app X ≫ |
| 39 | (a₀₂.homEquiv X Z).symm (f ≫ R₁₀.map g ≫ e.hom.app Z) = |
| 40 | L₁₂.map ((a₀₁.homEquiv X Y).symm f) ≫ (a₁₂.homEquiv Y Z).symm g := by |
| 41 | apply ((a₀₁.comp a₁₂).homEquiv X Z).injective |
| 42 | rw [adjunction_mate_homEquiv a₀₂ (a₀₁.comp a₁₂)] |
| 43 | simp only [Equiv.apply_symm_apply] |
| 44 | change (f ≫ R₁₀.map g ≫ e.hom.app Z) ≫ |
| 45 | ((conjugateEquiv a₀₂ (a₀₁.comp a₁₂)) |
| 46 | ((conjugateEquiv a₀₂ (a₀₁.comp a₁₂)).symm e.inv)).app Z = _ |
| 47 | rw [Equiv.apply_symm_apply] |
| 48 | simp only [Category.assoc, Iso.hom_inv_id_app] |
| 49 | erw [Category.comp_id] |
| 50 | rw [Adjunction.comp_homEquiv] |
| 51 | change _ = a₀₁.homEquiv X (R₂₁.obj Z) |
| 52 | (a₁₂.homEquiv (L₀₁.obj X) Z |
| 53 | (L₁₂.map ((a₀₁.homEquiv X Y).symm f) ≫ (a₁₂.homEquiv Y Z).symm g)) |
| 54 | rw [a₁₂.homEquiv_naturality_left, Equiv.apply_symm_apply, |
| 55 | a₀₁.homEquiv_naturality_right, Equiv.apply_symm_apply] |
| 56 | |
| 57 | theorem adjunction_id_adjoint {L R : C ⥤ C} (a : L ⊣ R) (e : R ≅ 𝟭 C) (X : C) : |
| 58 | (a.homEquiv X X).symm (e.inv.app X) = (a.leftAdjointIdIso e).hom.app X := by |
| 59 | apply (a.homEquiv X X).injective |
| 60 | rw [Equiv.apply_symm_apply] |
| 61 | have h := adjunction_mate_homEquiv (Adjunction.id (C := C)) a |
| 62 | (a.leftAdjointIdIso e).hom (𝟙 X) |
| 63 | have hid : (Adjunction.id (C := C)).homEquiv X X (𝟙 X) = 𝟙 X := by |
| 64 | rw [Adjunction.homEquiv_unit] |
| 65 | exact Category.id_comp _ |
| 66 | rw [hid] at h |
| 67 | simpa using h.symm |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.AdjunctionCoherence.Construction |