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.FrobeniusKernel.BaseChange |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Finite |
| 4 | |
| 5 | /-! # Block Products -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.BlockProducts.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | Finite products assemble chosen and opposite block subgroups into an |
| 13 | actual finite locally free closed subgroup. The source is built from the |
| 14 | block schemes, and the inclusion is the product of their embeddings. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | open _root_.CategoryTheory.MonoidalCategory |
| 19 | open scoped _root_.CategoryTheory.MonObj |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable {S : Scheme.{u}} |
| 24 | |
| 25 | def groupBlockProduct : (n : ℕ) → (Fin n → Grp (Over S)) → Grp (Over S) |
| 26 | | 0, _ => Grp.trivial (Over S) |
| 27 | | n + 1, B => B 0 ⊗ groupBlockProduct n (fun i => B i.succ) |
| 28 | |
| 29 | def groupBlockProductMap : (n : ℕ) → |
| 30 | (B C : Fin n → Grp (Over S)) → (∀ i, B i ⟶ C i) → |
| 31 | (Construction.groupBlockProduct n B ⟶ Construction.groupBlockProduct n C) |
| 32 | | 0, _, _, _ => 𝟙 (Grp.trivial (Over S)) |
| 33 | | n + 1, B, C, f => f 0 ⊗ₘ groupBlockProductMap n |
| 34 | (fun i => B i.succ) (fun i => C i.succ) (fun i => f i.succ) |
| 35 | |
| 36 | theorem groupBlockProduct_finiteLocallyFree (n : ℕ) (B : Fin n → Grp (Over S)) |
| 37 | (hB : ∀ i, IsFinite (B i).X.hom ∧ Flat (B i).X.hom ∧ |
| 38 | LocallyOfFinitePresentation (B i).X.hom) : |
| 39 | IsFinite (Construction.groupBlockProduct n B).X.hom ∧ |
| 40 | Flat (Construction.groupBlockProduct n B).X.hom ∧ |
| 41 | LocallyOfFinitePresentation (Construction.groupBlockProduct n B).X.hom := by |
| 42 | induction n with |
| 43 | | zero => |
| 44 | change IsFinite (𝟙 S) ∧ Flat (𝟙 S) ∧ LocallyOfFinitePresentation (𝟙 S) |
| 45 | exact ⟨inferInstance, inferInstance, inferInstance⟩ |
| 46 | | succ n ih => |
| 47 | let D := Construction.groupBlockProduct n (fun i => B i.succ) |
| 48 | have hD := ih (fun i => B i.succ) (fun i => hB i.succ) |
| 49 | have : IsFinite (B 0).X.hom := (hB 0).1 |
| 50 | have : Flat (B 0).X.hom := (hB 0).2.1 |
| 51 | have : LocallyOfFinitePresentation (B 0).X.hom := (hB 0).2.2 |
| 52 | have : IsFinite D.X.hom := hD.1 |
| 53 | have : Flat D.X.hom := hD.2.1 |
| 54 | have : LocallyOfFinitePresentation D.X.hom := hD.2.2 |
| 55 | change IsFinite (Limits.pullback.fst (B 0).X.hom D.X.hom ≫ (B 0).X.hom) ∧ |
| 56 | Flat (Limits.pullback.fst (B 0).X.hom D.X.hom ≫ (B 0).X.hom) ∧ |
| 57 | LocallyOfFinitePresentation (Limits.pullback.fst (B 0).X.hom D.X.hom ≫ (B 0).X.hom) |
| 58 | exact ⟨inferInstance, inferInstance, inferInstance⟩ |
| 59 | |
| 60 | /-- Closed embeddings of the separate blocks assemble into a closed |
| 61 | embedding of their product, regardless of reducedness or characteristic. -/ |
| 62 | theorem groupBlockProductMap_closed (n : ℕ) (B C : Fin n → Grp (Over S)) |
| 63 | (f : ∀ i, B i ⟶ C i) (hf : ∀ i, IsClosedImmersion (f i).hom.hom.left) : |
| 64 | IsClosedImmersion (Construction.groupBlockProductMap n B C f).hom.hom.left := by |
| 65 | induction n with |
| 66 | | zero => |
| 67 | change IsClosedImmersion (𝟙 S) |
| 68 | infer_instance |
| 69 | | succ n ih => |
| 70 | let d := (Construction.groupBlockProductMap n (fun i => B i.succ) (fun i => C i.succ) |
| 71 | (fun i => f i.succ)).hom.hom |
| 72 | have hd : IsClosedImmersion d.left := |
| 73 | ih _ _ _ (fun i => hf i.succ) |
| 74 | let : MorphismProperty.IsStableUnderComposition (@IsClosedImmersion.{u}) := |
| 75 | ⟨fun f g hf hg => by |
| 76 | let := hf |
| 77 | let := hg |
| 78 | exact IsClosedImmersion.comp f g⟩ |
| 79 | change IsClosedImmersion ((f 0).hom.hom ⊗ₘ d).left |
| 80 | rw [Over.tensorHom_left] |
| 81 | exact MorphismProperty.pullbackMap (P := @IsClosedImmersion.{u}) (hf 0) hd |
| 82 | (f 0).hom.hom.w.symm d.w.symm |
| 83 | |
| 84 | /-- Transport the assembled subgroup from block coordinates into the |
| 85 | original torsion group scheme. -/ |
| 86 | def fullBlockKernelInclusion (n : ℕ) (H B : Fin n → Grp (Over S)) |
| 87 | (i : ∀ v, H v ⟶ B v) (T : Grp (Over S)) (split : T ≅ Construction.groupBlockProduct n B) : |
| 88 | Construction.groupBlockProduct n H ⟶ T := Construction.groupBlockProductMap n H B i ≫ split.inv |
| 89 | |
| 90 | theorem fullBlockKernelInclusion_closed (n : ℕ) (H B : Fin n → Grp (Over S)) |
| 91 | (i : ∀ v, H v ⟶ B v) (hi : ∀ v, IsClosedImmersion (i v).hom.hom.left) |
| 92 | (T : Grp (Over S)) (split : T ≅ Construction.groupBlockProduct n B) : |
| 93 | IsClosedImmersion (fullBlockKernelInclusion n H B i T split).hom.hom.left := by |
| 94 | have : IsClosedImmersion (Construction.groupBlockProductMap n H B i).hom.hom.left := |
| 95 | groupBlockProductMap_closed n H B i hi |
| 96 | have : IsIso split.inv.hom.hom.left := |
| 97 | inferInstanceAs (IsIso (((Grp.forget (Over S)) ⋙ Over.forget S).map split.inv)) |
| 98 | change IsClosedImmersion ((Construction.groupBlockProductMap n H B i).hom.hom.left ≫ split.inv.hom.hom.left) |
| 99 | infer_instance |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.BlockProducts.Construction |