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.Quotients.FiniteDescent.LocalGaussianStep |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Basic |
| 3 | import Mathlib.LinearAlgebra.Dimension.Constructions |
| 4 | import Mathlib.RingTheory.Finiteness.Prod |
| 5 | |
| 6 | /-! # Local Minimal Of -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.LocalMinimalOf.Construction.LocalSectionLifting |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Minimal local differentials and the induction step that accumulates cancelled summands. -/ |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] [IsLocalRing R] |
| 17 | {M N : ModuleCat.{u} R} |
| 18 | |
| 19 | /-- A differential expressed as a map vanishing over the residue field and an identity summand. -/ |
| 20 | structure LocalMinimalDifferential (f : M →ₗ[R] N) where |
| 21 | source : ModuleCat.{u} R |
| 22 | target : ModuleCat.{u} R |
| 23 | cancelled : ModuleCat.{u} R |
| 24 | [sourceFinite : Module.Finite R source] |
| 25 | [sourceFree : Module.Free R source] |
| 26 | [targetFinite : Module.Finite R target] |
| 27 | [targetFree : Module.Free R target] |
| 28 | [cancelledFinite : Module.Finite R cancelled] |
| 29 | [cancelledFree : Module.Free R cancelled] |
| 30 | sourceEquiv : (source × cancelled) ≃ₗ[R] M |
| 31 | targetEquiv : N ≃ₗ[R] (target × cancelled) |
| 32 | differential : source →ₗ[R] target |
| 33 | residue_zero : differential.baseChange (IsLocalRing.ResidueField R) = 0 |
| 34 | normal_form : ∀ x, targetEquiv (f (sourceEquiv x)) = (differential x.1, x.2) |
| 35 | |
| 36 | attribute [instance] LocalMinimalDifferential.sourceFinite LocalMinimalDifferential.sourceFree |
| 37 | LocalMinimalDifferential.targetFinite LocalMinimalDifferential.targetFree |
| 38 | LocalMinimalDifferential.cancelledFinite LocalMinimalDifferential.cancelledFree |
| 39 | |
| 40 | def localMinimalDifferentialOfResidueZero |
| 41 | [Module.Finite R M] [Module.Free R M] [Module.Finite R N] [Module.Free R N] |
| 42 | (f : M →ₗ[R] N) (hf : f.baseChange (IsLocalRing.ResidueField R) = 0) : |
| 43 | LocalMinimalDifferential f where |
| 44 | source := M |
| 45 | target := N |
| 46 | cancelled := ModuleCat.of R (Fin 0 → R) |
| 47 | sourceEquiv := LinearEquiv.prodUnique |
| 48 | targetEquiv := LinearEquiv.prodUnique.symm |
| 49 | differential := f |
| 50 | residue_zero := hf |
| 51 | normal_form _x := Prod.ext rfl (Subsingleton.elim _ _) |
| 52 | |
| 53 | def localMinimalDifferentialStep |
| 54 | {M₁ N₁ : ModuleCat.{u} R} (f : M →ₗ[R] N) (g : M₁ →ₗ[R] N₁) |
| 55 | (eM : (M₁ × R) ≃ₗ[R] M) (eN : N ≃ₗ[R] (N₁ × R)) (d : R ≃ₗ[R] R) |
| 56 | (h : ∀ x, eN (f (eM x)) = (g x.1, d x.2)) |
| 57 | (P : LocalMinimalDifferential g) : LocalMinimalDifferential f where |
| 58 | source := P.source |
| 59 | target := P.target |
| 60 | cancelled := ModuleCat.of R (P.cancelled × R) |
| 61 | sourceEquiv := (LinearEquiv.prodAssoc R P.source P.cancelled R).symm.trans |
| 62 | ((P.sourceEquiv.prodCongr (LinearEquiv.refl R R)).trans eM) |
| 63 | targetEquiv := eN.trans ((P.targetEquiv.prodCongr d.symm).trans |
| 64 | (LinearEquiv.prodAssoc R P.target P.cancelled R)) |
| 65 | differential := P.differential |
| 66 | residue_zero := P.residue_zero |
| 67 | normal_form x := by |
| 68 | change (LinearEquiv.prodAssoc R P.target P.cancelled R) |
| 69 | ((P.targetEquiv.prodCongr d.symm) |
| 70 | (eN (f (eM (P.sourceEquiv (x.1, x.2.1), x.2.2))))) = |
| 71 | (P.differential x.1, x.2) |
| 72 | rw [h] |
| 73 | change ((P.targetEquiv (g (P.sourceEquiv (x.1, x.2.1)))).1, |
| 74 | ((P.targetEquiv (g (P.sourceEquiv (x.1, x.2.1)))).2, d.symm (d x.2.2))) = _ |
| 75 | rw [P.normal_form] |
| 76 | simp |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.LocalMinimalOf.Construction.LocalSectionLifting |