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.CartierDuality.IntrinsicRetracts |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.RepresentedMorphisms |
| 3 | import OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.SheafBlocks |
| 4 | import Mathlib.CategoryTheory.Monoidal.Cartesian.GrpLimits |
| 5 | import Mathlib.CategoryTheory.Idempotents.Basic |
| 6 | |
| 7 | /-! # Sheaf Retracts -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianScheme.CartierDuality |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # CartierDuality: actual finite locally free sheaf direct factors and product blocks |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 19 | |
| 20 | attribute [local instance] Over.cartesianMonoidalCategory |
| 21 | |
| 22 | universe u v |
| 23 | |
| 24 | namespace SheafRetracts.Construction.Retracts |
| 25 | |
| 26 | /-- Two splittings of the same idempotent are canonically isomorphic. -/ |
| 27 | def splittingIso {C : Type u} [Category.{v} C] {X Y Z : C} |
| 28 | (i : Y ⟶ X) (r : X ⟶ Y) (h : i ≫ r = 𝟙 Y) |
| 29 | (j : Z ⟶ X) (s : X ⟶ Z) (k : j ≫ s = 𝟙 Z) (p : r ≫ i = s ≫ j) : Y ≅ Z where |
| 30 | hom := i ≫ s |
| 31 | inv := j ≫ r |
| 32 | hom_inv_id := by |
| 33 | calc |
| 34 | (i ≫ s) ≫ (j ≫ r) = i ≫ (s ≫ j) ≫ r := by simp only [Category.assoc] |
| 35 | _ = i ≫ (r ≫ i) ≫ r := by rw [p] |
| 36 | _ = 𝟙 Y := by simp only [← Category.assoc, h, Category.id_comp] |
| 37 | inv_hom_id := by |
| 38 | calc |
| 39 | (j ≫ r) ≫ (i ≫ s) = j ≫ (r ≫ i) ≫ s := by simp only [Category.assoc] |
| 40 | _ = j ≫ (s ≫ j) ≫ s := by rw [p] |
| 41 | _ = 𝟙 Z := by simp only [← Category.assoc, k, Category.id_comp] |
| 42 | |
| 43 | /-- A native subgroup of a commutative group is commutative, detected |
| 44 | on every test object by the injective point map. -/ |
| 45 | theorem commutative_of_mono {C : Type u} [Category.{v} C] [CartesianMonoidalCategory C] |
| 46 | [BraidedCategory C] |
| 47 | {G H : Grp C} [IsCommMonObj G.X] (i : H ⟶ G) [Mono i.hom.hom] : IsCommMonObj H.X := by |
| 48 | apply (isCommMonObj_iff_isMulCommutative H.X).mpr |
| 49 | intro T |
| 50 | refine ⟨⟨fun a b => ?_⟩⟩ |
| 51 | apply (cancel_mono i.hom.hom).mp |
| 52 | simp only [MonObj.mul_comp, mul_comm] |
| 53 | |
| 54 | end SheafRetracts.Construction.Retracts |
| 55 | |
| 56 | /-- Every sheaf direct factor of a finite locally free commutative |
| 57 | group sheaf is itself represented by a finite locally free group scheme. -/ |
| 58 | theorem SheafCharacterComparison.Construction.Schemes.FiniteLocallyFreeFppfAb.of_retract {S : Scheme.{u}} {F K : CommutativeSheavesAb.Construction.Schemes.FppfAb S} |
| 59 | (hF : SheafCharacterComparison.Construction.Schemes.FiniteLocallyFreeFppfAb S F) (i : K ⟶ F) (r : F ⟶ K) (h : i ≫ r = 𝟙 K) : |
| 60 | SheafCharacterComparison.Construction.Schemes.FiniteLocallyFreeFppfAb S K := by |
| 61 | obtain ⟨G, hc, hf, hflat, hfp, ⟨e⟩⟩ := hF |
| 62 | let := hc |
| 63 | let := hf |
| 64 | let := hflat |
| 65 | let := hfp |
| 66 | let a : K ⟶ CommutativeSheavesAb.Construction.Schemes.representedFppfAb S G := i ≫ e.inv |
| 67 | let b : CommutativeSheavesAb.Construction.Schemes.representedFppfAb S G ⟶ K := e.hom ≫ r |
| 68 | have hab : a ≫ b = 𝟙 K := by simpa [a, b, Category.assoc] using h |
| 69 | let p : G ⟶ G := (RepresentedMorphisms.Construction.Schemes.representedFppfAbHomEquiv G G).symm (b ≫ a) |
| 70 | have hp : RepresentedMorphisms.Construction.Schemes.representedFppfAbMap p = b ≫ a := (RepresentedMorphisms.Construction.Schemes.representedFppfAbHomEquiv G G).apply_symm_apply _ |
| 71 | have hpp : p ≫ p = p := by |
| 72 | apply (RepresentedMorphisms.Construction.Schemes.representedFppfAbHomEquiv G G).injective |
| 73 | change RepresentedMorphisms.Construction.Schemes.representedFppfAbMap (p ≫ p) = RepresentedMorphisms.Construction.Schemes.representedFppfAbMap p |
| 74 | rw [RepresentedMorphisms.Construction.Schemes.representedFppfAbMap_comp, hp] |
| 75 | simp only [Category.assoc, ← Category.assoc a b, hab, Category.id_comp] |
| 76 | let hcpl : IsIdempotentComplete (Grp (Over S)) := |
| 77 | (Idempotents.isIdempotentComplete_iff_hasEqualizer_of_id_and_idempotent _).mpr |
| 78 | (fun _ _ _ => inferInstance) |
| 79 | obtain ⟨Q, j, s, hjs, hsj⟩ := IsIdempotentComplete.idempotents_split G p hpp |
| 80 | let : Mono j.hom.hom := mono_of_mono_fac (congrArg (fun f => f.hom.hom) hjs) |
| 81 | let hcQ : IsCommMonObj Q.X := SheafRetracts.Construction.Retracts.commutative_of_mono j |
| 82 | obtain ⟨hfinQ, hflatQ, hfpQ⟩ := IntrinsicRetracts.Construction.Schemes.finiteLocallyFree_of_retract j s hjs |
| 83 | let α : CommutativeSheavesAb.Construction.Schemes.representedFppfAb S Q ⟶ CommutativeSheavesAb.Construction.Schemes.representedFppfAb S G := RepresentedMorphisms.Construction.Schemes.representedFppfAbMap j |
| 84 | let β : CommutativeSheavesAb.Construction.Schemes.representedFppfAb S G ⟶ CommutativeSheavesAb.Construction.Schemes.representedFppfAb S Q := RepresentedMorphisms.Construction.Schemes.representedFppfAbMap s |
| 85 | have hαβ : α ≫ β = 𝟙 (CommutativeSheavesAb.Construction.Schemes.representedFppfAb S Q) := |
| 86 | (RepresentedMorphisms.Construction.Schemes.representedFppfAbMap_comp j s).symm.trans |
| 87 | ((congrArg RepresentedMorphisms.Construction.Schemes.representedFppfAbMap hjs).trans (RepresentedMorphisms.Construction.Schemes.representedFppfAbMap_id Q)) |
| 88 | have hβα : β ≫ α = b ≫ a := |
| 89 | (RepresentedMorphisms.Construction.Schemes.representedFppfAbMap_comp s j).symm.trans ((congrArg RepresentedMorphisms.Construction.Schemes.representedFppfAbMap hsj).trans hp) |
| 90 | exact ⟨Q, hcQ, hfinQ, hflatQ, hfpQ, ⟨SheafRetracts.Construction.Retracts.splittingIso α β hαβ a b hab hβα⟩⟩ |
| 91 | |
| 92 | /-- Every block of an actual product decomposition of a finite locally |
| 93 | free group sheaf is finite locally free representable. -/ |
| 94 | theorem SheafBlocks.Construction.Schemes.SheafBlockDecomposition.block_finiteLocallyFree {S : Scheme.{u}} {G : CommutativeSheavesAb.Construction.Schemes.FppfAb S} |
| 95 | {I : Type u} (B : SheafBlocks.Construction.Schemes.SheafBlockDecomposition G I) (hG : SheafCharacterComparison.Construction.Schemes.FiniteLocallyFreeFppfAb S G) (i : I) : |
| 96 | SheafCharacterComparison.Construction.Schemes.FiniteLocallyFreeFppfAb S (B.block i) := |
| 97 | hG.of_retract (B.inclusion i) (B.projection i) (B.inclusion_projection i) |
| 98 | |
| 99 | end |
| 100 | |
| 101 | end OAI.AlgebraicGeometry.AbelianScheme.CartierDuality |