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.Intrinsic.Neighbors |
| 2 | |
| 3 | /-! # Special Kernel Presentations -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Specialize the actual graph and mixed subgroup presentations. |
| 10 | The conclusion identifies the carrier and inclusion map, so it can be |
| 11 | used for full PEL kernel comparisons. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | open _root_.CategoryTheory.MonoidalCategory |
| 15 | open scoped _root_.CategoryTheory.MonObj |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.Isogenies.NeighborCounting.SubspaceCounts.Construction |
| 20 | attribute [local instance] AbelianScheme.FrobeniusKernel.BaseChange.Construction.pulledBackGroup Classical.propDecidable |
| 21 | |
| 22 | def Intrinsic.Neighbors.KernelPresentation.pullback {S T : Scheme.{u}} {A : Over S} |
| 23 | (K : Intrinsic.Neighbors.KernelPresentation A) (f : T ⟶ S) : |
| 24 | Intrinsic.Neighbors.KernelPresentation ((Over.pullback f).obj A) := |
| 25 | ⟨(Over.pullback f).obj K.carrier, (Over.pullback f).map K.inclusion⟩ |
| 26 | |
| 27 | variable {F V : Type} [Field F] [AddCommGroup V] [Module F V] |
| 28 | {S T : Scheme.{u}} {A M E : Over S} [GrpObj M] |
| 29 | (H : Submodule F V → Over S) (b : M ⊗ E ⟶ A) (e : ∀ U, H U ⟶ E) |
| 30 | (χ : ∀ U : Submodule F V, (U →ₗ[F] F) → (H U ⟶ M)) (f : T ⟶ S) |
| 31 | |
| 32 | def SpecialKernelPresentations.specialKernelPresentation (U : Submodule F V) : |
| 33 | Bool → Intrinsic.Neighbors.KernelPresentation ((Over.pullback f).obj A) |
| 34 | | false => (Intrinsic.Neighbors.KernelPresentation.mk (H U) (QuotientGraphs.graphKernel b (e U) 1)).pullback f |
| 35 | | true => (Intrinsic.Neighbors.KernelPresentation.mk (M ⊗ H U) (QuotientGraphs.mixedKernel b (e U))).pullback f |
| 36 | |
| 37 | theorem SpecialKernelPresentations.subspaceKernel_specialPresentation |
| 38 | (hχ : ∀ (U : Submodule F V) (a : U →ₗ[F] F), (Over.pullback f).map (χ U a) = 1) |
| 39 | (J : Submodule F (V × F)) : |
| 40 | (Intrinsic.Neighbors.subspaceKernel H b e χ J).pullback f = |
| 41 | SpecialKernelPresentations.specialKernelPresentation H b e f (J.map (LinearMap.fst F V F)) |
| 42 | (decide (SubspaceCounts.Construction.identityLine ≤ J)) := by |
| 43 | classical |
| 44 | obtain ⟨⟨U, J | J⟩, rfl⟩ := (SubspaceCounts.Construction.allSubspacesEquiv (F := F) (V := V)).surjective J |
| 45 | · rw [Intrinsic.Neighbors.subspaceKernel_equiv] |
| 46 | change (Intrinsic.Neighbors.KernelPresentation.mk (H U) |
| 47 | (QuotientGraphs.graphKernel b (e U) (χ U ((SubspaceCounts.Construction.disjointLiftEquiv U).symm J)))).pullback f = |
| 48 | SpecialKernelPresentations.specialKernelPresentation H b e f (J.val.map (LinearMap.fst F V F)) |
| 49 | (decide (SubspaceCounts.Construction.identityLine ≤ J.val)) |
| 50 | rw [J.property.2, decide_eq_false (SubspaceCounts.Construction.identityLine_not_le_of_disjoint _ J.property.1)] |
| 51 | exact congrArg (Intrinsic.Neighbors.KernelPresentation.mk ((Over.pullback f).obj (H U))) |
| 52 | (QuotientGraphs.graphKernel_specialization f b (e U) (χ U ((SubspaceCounts.Construction.disjointLiftEquiv U).symm J)) |
| 53 | (hχ U ((SubspaceCounts.Construction.disjointLiftEquiv U).symm J))) |
| 54 | · rw [Intrinsic.Neighbors.subspaceKernel_equiv] |
| 55 | change (Intrinsic.Neighbors.KernelPresentation.mk (M ⊗ H U) (QuotientGraphs.mixedKernel b (e U))).pullback f = |
| 56 | SpecialKernelPresentations.specialKernelPresentation H b e f (J.val.map (LinearMap.fst F V F)) |
| 57 | (decide (SubspaceCounts.Construction.identityLine ≤ J.val)) |
| 58 | rw [J.property.2, decide_eq_true J.property.1] |
| 59 | rfl |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting |