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.Picard.PoincareBundle.Cech.TripleExtension |
| 2 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.ExtensionComposition |
| 3 | |
| 4 | /-! # Triple Gluing -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.TripleGluing |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # The actual three affine gluing maps on a common triple coordinate ring |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.ModuleCat TensorProduct |
| 15 | open scoped TensorProduct ChangeOfRings |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.ModuleModels OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.Switch OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.TripleExtension |
| 20 | open OAI.AlgebraicGeometry.Picard.PoincareBundle.ModuleBaseChangeFunctor |
| 21 | |
| 22 | /-- A functor carries a conjugated map to the corresponding conjugated comparison. -/ |
| 23 | theorem map_conjugation {C D : Type*} [Category C] [Category D] |
| 24 | (F : C ⥤ D) {X₁ X₂ Y₁ Y₂ : C} {Z : D} |
| 25 | (e₁ : X₁ ≅ Y₁) (e₂ : X₂ ≅ Y₂) (a : Y₁ ⟶ Y₂) |
| 26 | (b₁ : F.obj Y₁ ⟶ Z) (b₂ : F.obj Y₂ ⟶ Z) (t : Z ⟶ Z) |
| 27 | (h : F.map a ≫ b₂ = b₁ ≫ t) : |
| 28 | F.map (e₁.hom ≫ a ≫ e₂.inv) ≫ (F.map e₂.hom ≫ b₂) = |
| 29 | (F.map e₁.hom ≫ b₁) ≫ t := by |
| 30 | have hc : F.map e₂.inv ≫ F.map e₂.hom = 𝟙 _ := by |
| 31 | rw [← F.map_comp, e₂.inv_hom_id, F.map_id] |
| 32 | rw [F.map_comp e₁.hom (a ≫ e₂.inv), F.map_comp a e₂.inv] |
| 33 | simp only [Category.assoc] |
| 34 | rw [← Category.assoc (F.map e₂.inv) (F.map e₂.hom), hc, Category.id_comp, h] |
| 35 | |
| 36 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 37 | |
| 38 | local notation "U" => S ⊗[R] S |
| 39 | local notation "V" => (S ⊗[R] S) ⊗[R] S |
| 40 | |
| 41 | /-- The first two coordinates in the affine triple fiber product. -/ |
| 42 | def pair12 : U →+* V := algebraMap U V |
| 43 | |
| 44 | /-- The first and third coordinates in the affine triple fiber product. -/ |
| 45 | def pair13 : U →+* V := |
| 46 | (Algebra.TensorProduct.map (Algebra.TensorProduct.includeLeft : S →ₐ[R] U) |
| 47 | (AlgHom.id R S)).toRingHom |
| 48 | |
| 49 | /-- The second and third coordinates in the affine triple fiber product. -/ |
| 50 | def pair23 : U →+* V := |
| 51 | (Algebra.TensorProduct.map (Algebra.TensorProduct.includeRight : S →ₐ[R] U) |
| 52 | (AlgHom.id R S)).toRingHom |
| 53 | |
| 54 | def slot1 : S →+* V := (pair12 R S).comp (ModuleModels.firstMap R S) |
| 55 | def slot2 : S →+* V := (pair12 R S).comp (ModuleModels.secondMap R S) |
| 56 | def slot3 : S →+* V := Algebra.TensorProduct.includeRight.toRingHom |
| 57 | |
| 58 | theorem pair13_first : (pair13 R S).comp (ModuleModels.firstMap R S) = slot1 R S := by |
| 59 | ext s |
| 60 | change (s ⊗ₜ[R] (1 : S)) ⊗ₜ[R] (1 : S) = _ |
| 61 | rfl |
| 62 | |
| 63 | theorem pair13_second : (pair13 R S).comp (ModuleModels.secondMap R S) = slot3 R S := by |
| 64 | ext s |
| 65 | change ((1 : S) ⊗ₜ[R] (1 : S)) ⊗ₜ[R] s = _ |
| 66 | rfl |
| 67 | |
| 68 | theorem pair23_first : (pair23 R S).comp (ModuleModels.firstMap R S) = slot2 R S := by |
| 69 | ext s |
| 70 | change ((1 : S) ⊗ₜ[R] s) ⊗ₜ[R] (1 : S) = _ |
| 71 | rfl |
| 72 | |
| 73 | theorem pair23_second : (pair23 R S).comp (ModuleModels.secondMap R S) = slot3 R S := by |
| 74 | ext s |
| 75 | change ((1 : S) ⊗ₜ[R] (1 : S)) ⊗ₜ[R] s = _ |
| 76 | rfl |
| 77 | |
| 78 | variable (M : ModuleCat.{u} S) |
| 79 | |
| 80 | /-- A pullback of the original module to one of the three coordinate slots. -/ |
| 81 | abbrev slotModule (i : S →+* V) := (extendScalars i).obj M |
| 82 | |
| 83 | /-- Extend the actual gluing map along a pair of triple-product coordinates. -/ |
| 84 | def extendedGluing (i : U →+* V) (σ : ModuleModels.firstPullback R S M ≅ ModuleModels.secondPullback R S M) : |
| 85 | slotModule R S M (i.comp (ModuleModels.firstMap R S)) ⟶ |
| 86 | slotModule R S M (i.comp (ModuleModels.secondMap R S)) := |
| 87 | (extendScalarsComp (ModuleModels.firstMap R S) i).hom.app M ≫ |
| 88 | (extendScalars i).map σ.hom ≫ (extendScalarsComp (ModuleModels.secondMap R S) i).inv.app M |
| 89 | |
| 90 | /-- Gluing from the first coordinate to the second coordinate. -/ |
| 91 | def gluing12 (σ : ModuleModels.firstPullback R S M ≅ ModuleModels.secondPullback R S M) : |
| 92 | slotModule R S M (slot1 R S) ⟶ slotModule R S M (slot2 R S) := |
| 93 | extendedGluing R S M (pair12 R S) σ |
| 94 | |
| 95 | /-- Gluing from the first coordinate to the third coordinate. -/ |
| 96 | def gluing13 (σ : ModuleModels.firstPullback R S M ≅ ModuleModels.secondPullback R S M) : |
| 97 | slotModule R S M (slot1 R S) ⟶ slotModule R S M (slot3 R S) := |
| 98 | eqToHom (congrArg (slotModule R S M) (pair13_first R S).symm) ≫ |
| 99 | extendedGluing R S M (pair13 R S) σ ≫ |
| 100 | eqToHom (congrArg (slotModule R S M) (pair13_second R S)) |
| 101 | |
| 102 | /-- Gluing from the second coordinate to the third coordinate. -/ |
| 103 | def gluing23 (σ : ModuleModels.firstPullback R S M ≅ ModuleModels.secondPullback R S M) : |
| 104 | slotModule R S M (slot2 R S) ⟶ slotModule R S M (slot3 R S) := |
| 105 | eqToHom (congrArg (slotModule R S M) (pair23_first R S).symm) ≫ |
| 106 | extendedGluing R S M (pair23 R S) σ ≫ |
| 107 | eqToHom (congrArg (slotModule R S M) (pair23_second R S)) |
| 108 | |
| 109 | /-- The first-coordinate module in the canonical three-factor tensor model. -/ |
| 110 | def firstFlatModel : (restrictScalars (slot3 R S)).obj (slotModule R S M (slot1 R S)) ≅ |
| 111 | TripleExtension.tripleModule R S M := |
| 112 | (restrictScalars (slot3 R S)).mapIso |
| 113 | ((extendScalarsComp (ModuleModels.firstMap R S) (pair12 R S)).app M) ≪≫ TripleExtension.firstTripleModel R S M |
| 114 | |
| 115 | /-- The second-coordinate module in the canonical three-factor tensor model. -/ |
| 116 | def secondFlatModel : (restrictScalars (slot3 R S)).obj (slotModule R S M (slot2 R S)) ≅ |
| 117 | TripleExtension.tripleModule R S M := |
| 118 | (restrictScalars (slot3 R S)).mapIso |
| 119 | ((extendScalarsComp (ModuleModels.secondMap R S) (pair12 R S)).app M) ≪≫ TripleExtension.secondTripleModel R S M |
| 120 | |
| 121 | /-- The first-to-second gluing map on the common triple ring is the last-factor switch. -/ |
| 122 | theorem gluing12_model (σ : ModuleModels.firstPullback R S M ≅ ModuleModels.secondPullback R S M) : |
| 123 | (restrictScalars (slot3 R S)).map (gluing12 R S M σ) ≫ (secondFlatModel R S M).hom = |
| 124 | (firstFlatModel R S M).hom ≫ TripleExtension.tripleSwitch R S M σ := by |
| 125 | exact map_conjugation (restrictScalars (slot3 R S)) |
| 126 | ((extendScalarsComp (ModuleModels.firstMap R S) (pair12 R S)).app M) |
| 127 | ((extendScalarsComp (ModuleModels.secondMap R S) (pair12 R S)).app M) |
| 128 | ((extendScalars (pair12 R S)).map σ.hom) |
| 129 | (TripleExtension.firstTripleModel R S M).hom (TripleExtension.secondTripleModel R S M).hom (TripleExtension.tripleSwitch R S M σ) |
| 130 | (TripleExtension.tripleModel_naturality R S M σ) |
| 131 | |
| 132 | end |
| 133 | |
| 134 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.TripleGluing |