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.AbelianModuli.HilbertConstruction.ComplexGaussian |
| 2 | import Mathlib.LinearAlgebra.Quotient.Basic |
| 3 | |
| 4 | /-! # Gaussian Cokernel -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.GaussianCokernel.LocalSectionLifting |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Removing an invertible differential block preserves the cokernel. -/ |
| 11 | |
| 12 | universe u v₁ v₂ v₃ v₄ |
| 13 | |
| 14 | variable {R : Type u} [CommRing R] |
| 15 | {A : Type v₁} [AddCommGroup A] [Module R A] |
| 16 | {B : Type v₂} [AddCommGroup B] [Module R B] |
| 17 | {C : Type v₃} [AddCommGroup C] [Module R C] |
| 18 | {D : Type v₄} [AddCommGroup D] [Module R D] |
| 19 | (a : A →ₗ[R] C) (b : B →ₗ[R] C) (c : A →ₗ[R] D) (d : B ≃ₗ[R] D) |
| 20 | |
| 21 | def blockCokernelProjection : (C × D) →ₗ[R] C := |
| 22 | (LinearMap.fst R C D).comp (ComplexGaussian.LocalSectionLifting.blockTargetShear b d).toLinearMap |
| 23 | |
| 24 | def blockCokernelToSchur : (C × D) ⧸ LinearMap.range (ComplexGaussian.LocalSectionLifting.blockDifferential a b c d) →ₗ[R] |
| 25 | C ⧸ LinearMap.range (ComplexGaussian.LocalSectionLifting.schurDifferential a b c d) := |
| 26 | (LinearMap.range (ComplexGaussian.LocalSectionLifting.blockDifferential a b c d)).mapQ |
| 27 | (LinearMap.range (ComplexGaussian.LocalSectionLifting.schurDifferential a b c d)) (blockCokernelProjection b d) (by |
| 28 | rintro _ ⟨x, rfl⟩ |
| 29 | exact ⟨x.1, (congrArg Prod.fst (ComplexGaussian.LocalSectionLifting.blockDifferential_target_coordinates a b c d x)).symm⟩) |
| 30 | |
| 31 | def schurCokernelToBlock : C ⧸ LinearMap.range (ComplexGaussian.LocalSectionLifting.schurDifferential a b c d) →ₗ[R] |
| 32 | (C × D) ⧸ LinearMap.range (ComplexGaussian.LocalSectionLifting.blockDifferential a b c d) := |
| 33 | (LinearMap.range (ComplexGaussian.LocalSectionLifting.schurDifferential a b c d)).mapQ |
| 34 | (LinearMap.range (ComplexGaussian.LocalSectionLifting.blockDifferential a b c d)) (LinearMap.inl R C D) (by |
| 35 | rintro _ ⟨x, rfl⟩ |
| 36 | exact ⟨ComplexGaussian.LocalSectionLifting.blockSourceShear c d (x, 0), ComplexGaussian.LocalSectionLifting.blockDifferential_lift_schur a b c d x⟩) |
| 37 | |
| 38 | def blockCokernelEquiv : ((C × D) ⧸ LinearMap.range (ComplexGaussian.LocalSectionLifting.blockDifferential a b c d)) ≃ₗ[R] |
| 39 | (C ⧸ LinearMap.range (ComplexGaussian.LocalSectionLifting.schurDifferential a b c d)) := |
| 40 | LinearEquiv.ofLinearMap (blockCokernelToSchur a b c d) (schurCokernelToBlock a b c d) |
| 41 | (by |
| 42 | apply LinearMap.ext |
| 43 | intro q |
| 44 | refine Submodule.Quotient.induction_on _ q ?_ |
| 45 | intro x |
| 46 | change (Submodule.Quotient.mk (blockCokernelProjection b d (x, 0)) : |
| 47 | C ⧸ LinearMap.range (ComplexGaussian.LocalSectionLifting.schurDifferential a b c d)) = Submodule.Quotient.mk x |
| 48 | congr 1 |
| 49 | simp [blockCokernelProjection, ComplexGaussian.LocalSectionLifting.blockTargetShear]) |
| 50 | (by |
| 51 | apply LinearMap.ext |
| 52 | intro q |
| 53 | refine Submodule.Quotient.induction_on _ q ?_ |
| 54 | intro x |
| 55 | change (Submodule.Quotient.mk (blockCokernelProjection b d x, (0 : D)) : |
| 56 | (C × D) ⧸ LinearMap.range (ComplexGaussian.LocalSectionLifting.blockDifferential a b c d)) = Submodule.Quotient.mk x |
| 57 | apply (Submodule.Quotient.eq _).mpr |
| 58 | refine ⟨(0, -d.symm x.2), ?_⟩ |
| 59 | apply Prod.ext |
| 60 | · change a 0 + b (-d.symm x.2) = (x.1 - b (d.symm x.2)) - x.1 |
| 61 | simp only [map_zero, zero_add, map_neg] |
| 62 | abel |
| 63 | · change c 0 + d (-d.symm x.2) = 0 - x.2 |
| 64 | simp) |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.GaussianCokernel.LocalSectionLifting |