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.CoprimeOrthogonalProduct |
| 2 | |
| 3 | /-! # Coprime Orthogonal Represented -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.CoprimeOrthogonalRepresented |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The full orthogonal is represented by the Lagrangian factor times the coprime kernel factor. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 12 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 13 | open scoped _root_.CategoryTheory.MonObj |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.Picard.PoincareBundle.NaturalPairingOrthogonal OAI.AlgebraicGeometry.Picard.PoincareBundle.CoprimeOrthogonalProduct |
| 18 | |
| 19 | variable {S : Scheme.{u}} {H K D : Over S} [GrpObj K] [GrpObj D] |
| 20 | (e : ∀ T : Over S, (T ⟶ K ⊗ D) →* (T ⟶ K ⊗ D) →* Γ(T.left, ⊤)ˣ) |
| 21 | (n m : ℕ) (hnm : n.Coprime m) |
| 22 | (hK : ∀ (T : Over S) (x : T ⟶ K), x ^ n = 1) |
| 23 | (hD : ∀ (T : Over S) (x : T ⟶ D), x ^ m = 1) |
| 24 | (i : H ⟶ K) (hi : NaturalPairingOrthogonal.SelfAnnihilating i (CoprimeOrthogonalProduct.firstPairing e)) |
| 25 | |
| 26 | include hnm hK hD hi |
| 27 | |
| 28 | /-- The product of actual subgroup schemes represents the full orthogonal image. -/ |
| 29 | theorem orthogonal_iff_product_image {T : Over S} (y : T ⟶ K ⊗ D) : |
| 30 | y ∈ NaturalPairingOrthogonal.orthogonal (i ≫ CoprimeOrthogonalProduct.first) e T ↔ ∃ z : T ⟶ H ⊗ D, z ≫ (i ⊗ₘ 𝟙 D) = y := by |
| 31 | rw [CoprimeOrthogonalProduct.orthogonal_of_selfAnnihilating e n m hnm hK hD i hi] |
| 32 | constructor |
| 33 | · rintro ⟨k, hk⟩ |
| 34 | refine ⟨lift k (y ≫ snd K D), ?_⟩ |
| 35 | apply CartesianMonoidalCategory.hom_ext <;> simp [hk] |
| 36 | · rintro ⟨z, hz⟩ |
| 37 | refine ⟨z ≫ fst H D, ?_⟩ |
| 38 | have hh := congrArg (fun a => a ≫ fst K D) hz |
| 39 | simpa only [Category.assoc, tensorHom_fst] using hh |
| 40 | |
| 41 | omit hnm hK hD hi in |
| 42 | /-- The actual orthogonal subfunctor on all test schemes. -/ |
| 43 | def orthogonalPresheaf : (Over S)ᵒᵖ ⥤ Type u where |
| 44 | obj T := NaturalPairingOrthogonal.orthogonal (i ≫ CoprimeOrthogonalProduct.first) e T.unop |
| 45 | map f := ↾(fun y => ⟨f.unop ≫ y.val, NaturalPairingOrthogonal.orthogonal_baseChange _ _ f.unop y.val y.property⟩) |
| 46 | map_id T := by |
| 47 | apply ConcreteCategory.ext_apply |
| 48 | intro y |
| 49 | apply Subtype.ext |
| 50 | exact Category.id_comp y.val |
| 51 | map_comp f g := by |
| 52 | apply ConcreteCategory.ext_apply |
| 53 | intro y |
| 54 | apply Subtype.ext |
| 55 | exact Category.assoc _ _ y.val |
| 56 | |
| 57 | variable [Mono i] |
| 58 | |
| 59 | omit hnm hK hD hi [GrpObj K] [GrpObj D] in |
| 60 | /-- The product inclusion is a monomorphism whenever the original subgroup inclusion is. -/ |
| 61 | theorem productInclusion_mono : Mono (i ⊗ₘ 𝟙 D) := by |
| 62 | constructor |
| 63 | intro T x y h |
| 64 | apply CartesianMonoidalCategory.hom_ext |
| 65 | · apply (cancel_mono i).mp |
| 66 | have hh := congrArg (fun z => z ≫ fst K D) h |
| 67 | simpa only [Category.assoc, tensorHom_fst] using hh |
| 68 | · have hh := congrArg (fun z => z ≫ snd K D) h |
| 69 | simpa only [Category.assoc, tensorHom_snd, Category.comp_id] using hh |
| 70 | |
| 71 | /-- Every orthogonal test point comes uniquely from the actual subgroup product. -/ |
| 72 | def pointsEquiv (T : Over S) : (T ⟶ H ⊗ D) ≃ (orthogonalPresheaf e i).obj (op T) := by |
| 73 | let f : (T ⟶ H ⊗ D) → (orthogonalPresheaf e i).obj (op T) := |
| 74 | fun z => ⟨z ≫ (i ⊗ₘ 𝟙 D), (orthogonal_iff_product_image e n m hnm hK hD i hi _).mpr ⟨z, rfl⟩⟩ |
| 75 | apply Equiv.ofBijective f |
| 76 | constructor |
| 77 | · intro x y h |
| 78 | have : Mono (i ⊗ₘ 𝟙 D) := productInclusion_mono (D := D) i |
| 79 | exact (cancel_mono (i ⊗ₘ 𝟙 D)).mp (congrArg Subtype.val h) |
| 80 | · intro y |
| 81 | obtain ⟨z, hz⟩ := (orthogonal_iff_product_image e n m hnm hK hD i hi y.val).mp y.property |
| 82 | exact ⟨z, Subtype.ext hz⟩ |
| 83 | |
| 84 | /-- This is a representation of the complete orthogonal presheaf, including nonreduced test schemes. -/ |
| 85 | def representableBy : (orthogonalPresheaf e i).RepresentableBy (H ⊗ D) where |
| 86 | homEquiv := pointsEquiv e n m hnm hK hD i hi _ |
| 87 | homEquiv_comp a x := by |
| 88 | apply Subtype.ext |
| 89 | exact Category.assoc a x (i ⊗ₘ 𝟙 D) |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.CoprimeOrthogonalRepresented |