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.Isogenies.NeighborCounting.GenericParameters |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Separated |
| 3 | |
| 4 | /-! # Properties -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Kernel.Properties |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | The graph/product constructions are genuine finite flat closed subgroup |
| 12 | schemes whenever the supplied split factors and etale inclusions are. |
| 13 | These properties are proved from the morphisms; they are not encoded as |
| 14 | unproved properties of the resulting neighbor family. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 19 | open scoped _root_.CategoryTheory.MonObj |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | open OAI.AlgebraicGeometry.Isogenies.NeighborCounting.SubspaceCounts.Construction |
| 24 | |
| 25 | structure FiniteFlatKernel {S : Scheme.{u}} (A : Over S) [GrpObj A] |
| 26 | extends Intrinsic.Neighbors.KernelPresentation A where |
| 27 | [group : GrpObj carrier] |
| 28 | [isHom : IsMonHom inclusion] |
| 29 | finite : IsFinite carrier.hom |
| 30 | flat : Flat carrier.hom |
| 31 | finitePresentation : LocallyOfFinitePresentation carrier.hom |
| 32 | closed : IsClosedImmersion inclusion.left |
| 33 | |
| 34 | attribute [instance] FiniteFlatKernel.group FiniteFlatKernel.isHom |
| 35 | |
| 36 | theorem graphKernel_closed {S : Scheme.{u}} {A M E H : Over S} |
| 37 | (b : M ⊗ E ⟶ A) (e : H ⟶ E) (χ : H ⟶ M) |
| 38 | [IsSeparated M.hom] [IsClosedImmersion b.left] [IsClosedImmersion e.left] : |
| 39 | IsClosedImmersion (QuotientGraphs.graphKernel b e χ).left := by |
| 40 | have hp : IsSeparated (snd M E).left := by |
| 41 | change IsSeparated (pullback.snd M.hom E.hom) |
| 42 | infer_instance |
| 43 | have hc : IsClosedImmersion ((lift χ e).left ≫ (snd M E).left) := by |
| 44 | change IsClosedImmersion (lift χ e ≫ snd M E).left |
| 45 | rw [lift_snd] |
| 46 | infer_instance |
| 47 | have : IsClosedImmersion (lift χ e).left := |
| 48 | IsClosedImmersion.of_comp (lift χ e).left (snd M E).left |
| 49 | change IsClosedImmersion ((lift χ e).left ≫ b.left) |
| 50 | infer_instance |
| 51 | |
| 52 | theorem mixedKernel_closed {S : Scheme.{u}} {A M E H : Over S} |
| 53 | (b : M ⊗ E ⟶ A) (e : H ⟶ E) |
| 54 | [IsClosedImmersion b.left] [IsClosedImmersion e.left] : |
| 55 | IsClosedImmersion (QuotientGraphs.mixedKernel b e).left := by |
| 56 | let : MorphismProperty.IsStableUnderComposition (@IsClosedImmersion.{u}) := |
| 57 | ⟨fun f g hf hg => by |
| 58 | let := hf |
| 59 | let := hg |
| 60 | exact IsClosedImmersion.comp f g⟩ |
| 61 | have hp : IsClosedImmersion (𝟙 M ⊗ₘ e).left := by |
| 62 | rw [Over.tensorHom_left] |
| 63 | exact MorphismProperty.pullbackMap (P := @IsClosedImmersion.{u}) |
| 64 | (show IsClosedImmersion (𝟙 M : M ⟶ M).left from by |
| 65 | change IsClosedImmersion (𝟙 M.left) |
| 66 | infer_instance) |
| 67 | (show IsClosedImmersion e.left from inferInstance) |
| 68 | (Over.w (𝟙 M)).symm (Over.w e).symm |
| 69 | change IsClosedImmersion ((𝟙 M ⊗ₘ e).left ≫ b.left) |
| 70 | infer_instance |
| 71 | |
| 72 | def graphFiniteFlatKernel {S : Scheme.{u}} {A M E H : Over S} |
| 73 | [GrpObj A] [GrpObj M] [GrpObj E] [GrpObj H] |
| 74 | (b : M ⊗ E ⟶ A) (e : H ⟶ E) (χ : H ⟶ M) |
| 75 | [IsMonHom b] [IsMonHom e] [IsMonHom χ] |
| 76 | [IsSeparated M.hom] [IsClosedImmersion b.left] [IsClosedImmersion e.left] |
| 77 | [IsFinite H.hom] [Flat H.hom] [LocallyOfFinitePresentation H.hom] : |
| 78 | FiniteFlatKernel A where |
| 79 | carrier := H |
| 80 | inclusion := QuotientGraphs.graphKernel b e χ |
| 81 | group := inferInstance |
| 82 | isHom := inferInstanceAs (IsMonHom (lift χ e ≫ b)) |
| 83 | finite := inferInstance |
| 84 | flat := inferInstance |
| 85 | finitePresentation := inferInstance |
| 86 | closed := graphKernel_closed b e χ |
| 87 | |
| 88 | def mixedFiniteFlatKernel {S : Scheme.{u}} {A M E H : Over S} |
| 89 | [GrpObj A] [GrpObj M] [GrpObj E] [GrpObj H] |
| 90 | (b : M ⊗ E ⟶ A) (e : H ⟶ E) |
| 91 | [IsMonHom b] [IsMonHom e] |
| 92 | [IsClosedImmersion b.left] [IsClosedImmersion e.left] |
| 93 | [IsFinite M.hom] [Flat M.hom] [LocallyOfFinitePresentation M.hom] |
| 94 | [IsFinite H.hom] [Flat H.hom] [LocallyOfFinitePresentation H.hom] : |
| 95 | FiniteFlatKernel A where |
| 96 | carrier := M ⊗ H |
| 97 | inclusion := QuotientGraphs.mixedKernel b e |
| 98 | group := inferInstance |
| 99 | isHom := inferInstanceAs (IsMonHom ((𝟙 M ⊗ₘ e) ≫ b)) |
| 100 | finite := by change IsFinite (pullback.fst M.hom H.hom ≫ M.hom); infer_instance |
| 101 | flat := by change Flat (pullback.fst M.hom H.hom ≫ M.hom); infer_instance |
| 102 | finitePresentation := by |
| 103 | change LocallyOfFinitePresentation (pullback.fst M.hom H.hom ≫ M.hom) |
| 104 | infer_instance |
| 105 | closed := mixedKernel_closed b e |
| 106 | |
| 107 | theorem subspaceKernel_is_finiteFlat |
| 108 | {F V : Type} [Field F] [AddCommGroup V] [Module F V] |
| 109 | {S : Scheme.{u}} {A M E : Over S} [GrpObj A] [GrpObj M] [GrpObj E] |
| 110 | (H : Submodule F V → Over S) [∀ U, GrpObj (H U)] |
| 111 | (b : M ⊗ E ⟶ A) (e : ∀ U, H U ⟶ E) |
| 112 | (χ : ∀ U : Submodule F V, (U →ₗ[F] F) → (H U ⟶ M)) |
| 113 | [IsMonHom b] [∀ U, IsMonHom (e U)] [∀ U l, IsMonHom (χ U l)] |
| 114 | [IsClosedImmersion b.left] [∀ U, IsClosedImmersion (e U).left] |
| 115 | [IsFinite M.hom] [Flat M.hom] [LocallyOfFinitePresentation M.hom] |
| 116 | [∀ U, IsFinite (H U).hom] [∀ U, Flat (H U).hom] |
| 117 | [∀ U, LocallyOfFinitePresentation (H U).hom] |
| 118 | (L : Submodule F (V × F)) : |
| 119 | ∃ K : FiniteFlatKernel A, K.toKernelPresentation = Intrinsic.Neighbors.subspaceKernel H b e χ L := by |
| 120 | obtain ⟨⟨U, L | L⟩, rfl⟩ := (SubspaceCounts.Construction.allSubspacesEquiv (F := F) (V := V)).surjective L |
| 121 | · rw [Intrinsic.Neighbors.subspaceKernel_equiv] |
| 122 | exact ⟨graphFiniteFlatKernel b (e U) (χ U ((SubspaceCounts.Construction.disjointLiftEquiv U).symm L)), rfl⟩ |
| 123 | · rw [Intrinsic.Neighbors.subspaceKernel_equiv] |
| 124 | exact ⟨mixedFiniteFlatKernel b (e U), rfl⟩ |
| 125 | |
| 126 | end |
| 127 | |
| 128 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Kernel.Properties |