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.FiniteFlatCoverRetract |
| 2 | import Mathlib.CategoryTheory.Monoidal.Cartesian.GrpLimits |
| 3 | |
| 4 | /-! # Fixed Group Cover -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.FixedGroupCover.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! An idempotent group endomorphism preserving a cover to J cuts out |
| 11 | a finite flat cover of J by its fixed subgroup. The retraction is over J. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | open scoped _root_.CategoryTheory.MonObj |
| 15 | |
| 16 | universe u |
| 17 | variable {S : Scheme.{u}} (G : Grp (Over S)) (e : G ⟶ G) (he : e ≫ e = e) |
| 18 | |
| 19 | abbrev fixedGroup : Grp (Over S) := equalizer e (𝟙 G) |
| 20 | abbrev fixedGroupInclusion : fixedGroup G e ⟶ G := equalizer.ι e (𝟙 G) |
| 21 | |
| 22 | def fixedGroupRetraction : G ⟶ fixedGroup G e := |
| 23 | equalizer.lift e (he.trans (Category.comp_id e).symm) |
| 24 | |
| 25 | theorem fixedGroupRetraction_inclusion : fixedGroupRetraction G e he ≫ fixedGroupInclusion G e = e := |
| 26 | equalizer.lift_ι _ _ |
| 27 | |
| 28 | theorem fixedGroupInclusion_retraction : |
| 29 | fixedGroupInclusion G e ≫ fixedGroupRetraction G e he = 𝟙 (fixedGroup G e) := by |
| 30 | apply equalizer.hom_ext |
| 31 | rw [Category.assoc, fixedGroupRetraction_inclusion, Category.id_comp] |
| 32 | exact (equalizer.condition e (𝟙 G)).trans (Category.comp_id _) |
| 33 | |
| 34 | variable {J : Grp (Over S)} (p : G ⟶ J) (hp : e ≫ p = p) |
| 35 | |
| 36 | abbrev fixedGroupTargetOver : Over J.X.left := |
| 37 | Over.mk ((fixedGroupInclusion G e).hom.hom.left ≫ p.hom.hom.left) |
| 38 | |
| 39 | def fixedGroupTargetInclusion : fixedGroupTargetOver G e p ⟶ Over.mk p.hom.hom.left := |
| 40 | Over.homMk (fixedGroupInclusion G e).hom.hom.left rfl |
| 41 | |
| 42 | def fixedGroupTargetRetraction : Over.mk p.hom.hom.left ⟶ fixedGroupTargetOver G e p := |
| 43 | Over.homMk (fixedGroupRetraction G e he).hom.hom.left (by |
| 44 | change (fixedGroupRetraction G e he).hom.hom.left ≫ |
| 45 | (fixedGroupInclusion G e).hom.hom.left ≫ p.hom.hom.left = p.hom.hom.left |
| 46 | rw [← Category.assoc] |
| 47 | have h : (fixedGroupRetraction G e he).hom.hom.left ≫ (fixedGroupInclusion G e).hom.hom.left = |
| 48 | e.hom.hom.left := |
| 49 | congrArg (fun t : G ⟶ G => t.hom.hom.left) (fixedGroupRetraction_inclusion G e he) |
| 50 | rw [h] |
| 51 | exact congrArg (fun t : G ⟶ J => t.hom.hom.left) hp) |
| 52 | |
| 53 | theorem fixedGroupTarget_retraction : |
| 54 | fixedGroupTargetInclusion G e p ≫ fixedGroupTargetRetraction G e he p hp = |
| 55 | 𝟙 (fixedGroupTargetOver G e p) := by |
| 56 | apply Over.OverMorphism.ext |
| 57 | exact congrArg (fun t : fixedGroup G e ⟶ fixedGroup G e => t.hom.hom.left) |
| 58 | (fixedGroupInclusion_retraction G e he) |
| 59 | |
| 60 | include he hp in |
| 61 | theorem fixedGroupProjection_cover |
| 62 | [IsFinite p.hom.hom.left] [Flat p.hom.hom.left] [LocallyOfFinitePresentation p.hom.hom.left] |
| 63 | [Surjective p.hom.hom.left] : |
| 64 | IsFinite (fixedGroupTargetOver G e p).hom ∧ |
| 65 | Flat (fixedGroupTargetOver G e p).hom ∧ |
| 66 | LocallyOfFinitePresentation (fixedGroupTargetOver G e p).hom ∧ |
| 67 | Surjective (fixedGroupTargetOver G e p).hom := by |
| 68 | let : IsFinite (Over.mk p.hom.hom.left).hom := inferInstanceAs (IsFinite p.hom.hom.left) |
| 69 | let : Flat (Over.mk p.hom.hom.left).hom := inferInstanceAs (Flat p.hom.hom.left) |
| 70 | let : LocallyOfFinitePresentation (Over.mk p.hom.hom.left).hom := |
| 71 | inferInstanceAs (LocallyOfFinitePresentation p.hom.hom.left) |
| 72 | let : Surjective (Over.mk p.hom.hom.left).hom := inferInstanceAs (Surjective p.hom.hom.left) |
| 73 | exact FiniteFlatCoverRetract.Construction.finite_flat_cover_of_over_retract (fixedGroupTargetInclusion G e p) |
| 74 | (fixedGroupTargetRetraction G e he p hp) (fixedGroupTarget_retraction G e he p hp) |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.FixedGroupCover.Construction |