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.IntersectionTheory.ProjectionFormula.Parameter.QuotientComplex |
| 2 | |
| 3 | /-! # Exact Pieces -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.ExactPieces |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! An exact sequence with scalar maps at its ends yields the |
| 10 | short exact sequence from the parameter quotient to the middle term |
| 11 | to the parameter-annihilated submodule. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.CategoryTheory |
| 16 | open scoped Pointwise |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable (R : Type u) [CommRing R] (r : R) (A B C : ModuleCat.{u} R) |
| 21 | (f : A →ₗ[R] B) (g : B →ₗ[R] C) |
| 22 | (hA : Function.Exact (LinearMap.lsmul R A r) f) |
| 23 | (hB : Function.Exact f g) |
| 24 | (hC : Function.Exact g (LinearMap.lsmul R C r)) |
| 25 | |
| 26 | include hA in |
| 27 | theorem kernel_eq : r • (⊤ : Submodule R A) = LinearMap.ker f := by |
| 28 | rw [LinearMap.exact_iff.mp hA, |
| 29 | ← LinearMap.exact_iff.mp (LinearMap.exact_lsmul_mkQ_smul_top A r), Submodule.ker_mkQ] |
| 30 | |
| 31 | def left : QuotSMulTop r A →ₗ[R] B := |
| 32 | (r • (⊤ : Submodule R A)).liftQ f (kernel_eq R r A B f hA).le |
| 33 | |
| 34 | def right : B →ₗ[R] LinearMap.ker (LinearMap.lsmul R C r) := |
| 35 | g.codRestrict _ (fun b => hC.apply_apply_eq_zero b) |
| 36 | |
| 37 | theorem left_injective : Function.Injective (left R r A B f hA) := by |
| 38 | apply LinearMap.ker_eq_bot.mp |
| 39 | exact Submodule.ker_liftQ_eq_bot' _ f (kernel_eq R r A B f hA) |
| 40 | |
| 41 | theorem right_surjective : Function.Surjective (right R r B C g hC) := by |
| 42 | intro c |
| 43 | obtain ⟨b, hb⟩ := (hC c.val).mp c.property |
| 44 | exact ⟨b, Subtype.ext hb⟩ |
| 45 | |
| 46 | include hB in |
| 47 | theorem exact : Function.Exact (left R r A B f hA) (right R r B C g hC) := by |
| 48 | intro b |
| 49 | constructor |
| 50 | · intro hb |
| 51 | have hg : g b = 0 := congrArg Subtype.val hb |
| 52 | obtain ⟨a, ha⟩ := (hB b).mp hg |
| 53 | exact ⟨Submodule.Quotient.mk a, ha⟩ |
| 54 | · rintro ⟨a, rfl⟩ |
| 55 | obtain ⟨a, rfl⟩ := Submodule.mkQ_surjective (r • (⊤ : Submodule R A)) a |
| 56 | apply Subtype.ext |
| 57 | exact hB.apply_apply_eq_zero a |
| 58 | |
| 59 | def sequence : ShortComplex (ModuleCat.{u} R) := |
| 60 | ModuleCat.shortComplexOfCompEqZero (left R r A B f hA) (right R r B C g hC) |
| 61 | (ExactPieces.exact R r A B C f g hA hB hC).linearMap_comp_eq_zero |
| 62 | |
| 63 | theorem shortExact : (sequence R r A B C f g hA hB hC).ShortExact where |
| 64 | exact := ModuleCat.shortComplex_exact _ (ExactPieces.exact R r A B C f g hA hB hC) |
| 65 | mono_f := (ModuleCat.mono_iff_injective _).mpr (left_injective R r A B f hA) |
| 66 | epi_g := (ModuleCat.epi_iff_surjective _).mpr (right_surjective R r B C g hC) |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.ExactPieces |