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 Mathlib.LinearAlgebra.Isomorphisms |
| 2 | |
| 3 | /-! # Linear Quotient Dual -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.LinearQuotientDual.Cycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Linear maps on a quotient and the annihilator of its kernel |
| 11 | |
| 12 | For a surjective linear map `q`, precomposition with `q` identifies linear maps |
| 13 | out of its codomain with linear maps on its domain that vanish on `ker q`. |
| 14 | The inverse is the native quotient lift transported along the first |
| 15 | isomorphism theorem. The coefficient module is arbitrary. |
| 16 | -/ |
| 17 | |
| 18 | universe uR uV uW uM |
| 19 | |
| 20 | variable {R : Type uR} [CommRing R] |
| 21 | variable {V : Type uV} [AddCommGroup V] [Module R V] |
| 22 | variable {W : Type uW} [AddCommGroup W] [Module R W] |
| 23 | |
| 24 | /-- The coefficient-valued linear maps that vanish on the kernel of `q`. -/ |
| 25 | def kernelAnnihilator (q : V →ₗ[R] W) (M : Type uM) |
| 26 | [AddCommGroup M] [Module R M] : Submodule R (V →ₗ[R] M) where |
| 27 | carrier := {φ | q.ker ≤ φ.ker} |
| 28 | zero_mem' := by |
| 29 | intro v _ |
| 30 | rfl |
| 31 | add_mem' := by |
| 32 | intro φ ψ hφ hψ v hv |
| 33 | change φ v + ψ v = 0 |
| 34 | rw [hφ hv, hψ hv, add_zero] |
| 35 | smul_mem' := by |
| 36 | intro r φ hφ v hv |
| 37 | change r • φ v = 0 |
| 38 | rw [hφ hv, smul_zero] |
| 39 | |
| 40 | variable {M : Type uM} [AddCommGroup M] [Module R M] |
| 41 | |
| 42 | @[simp] |
| 43 | theorem mem_kernelAnnihilator (q : V →ₗ[R] W) (φ : V →ₗ[R] M) : |
| 44 | φ ∈ kernelAnnihilator q M ↔ q.ker ≤ φ.ker := |
| 45 | Iff.rfl |
| 46 | |
| 47 | private def kernelAnnihilatorLift (q : V →ₗ[R] W) (hq : Function.Surjective q) |
| 48 | (φ : kernelAnnihilator q M) : W →ₗ[R] M := |
| 49 | (q.ker.liftQ φ.val φ.property).comp (q.quotKerEquivOfSurjective hq).symm.toLinearMap |
| 50 | |
| 51 | private theorem kernelAnnihilatorLift_apply (q : V →ₗ[R] W) |
| 52 | (hq : Function.Surjective q) (φ : kernelAnnihilator q M) (v : V) : |
| 53 | kernelAnnihilatorLift q hq φ (q v) = φ.val v := by |
| 54 | change (q.ker.liftQ φ.val φ.property) |
| 55 | ((q.quotKerEquivOfSurjective hq).symm (q v)) = φ.val v |
| 56 | rw [LinearMap.quotKerEquivOfSurjective_symm_apply] |
| 57 | rfl |
| 58 | |
| 59 | /-- Precomposition with a surjection identifies maps out of its codomain with |
| 60 | the linear maps on its domain that vanish on its kernel. -/ |
| 61 | def quotientDualEquiv (q : V →ₗ[R] W) (hq : Function.Surjective q) : |
| 62 | (W →ₗ[R] M) ≃ₗ[R] kernelAnnihilator q M where |
| 63 | toFun φ := ⟨φ.comp q, by |
| 64 | intro v hv |
| 65 | change φ (q v) = 0 |
| 66 | rw [show q v = 0 from hv, map_zero]⟩ |
| 67 | invFun := kernelAnnihilatorLift q hq |
| 68 | left_inv φ := by |
| 69 | ext w |
| 70 | obtain ⟨v, rfl⟩ := hq w |
| 71 | exact kernelAnnihilatorLift_apply q hq _ v |
| 72 | right_inv φ := by |
| 73 | apply Subtype.ext |
| 74 | ext v |
| 75 | exact kernelAnnihilatorLift_apply q hq φ v |
| 76 | map_add' φ ψ := by |
| 77 | apply Subtype.ext |
| 78 | ext v |
| 79 | rfl |
| 80 | map_smul' r φ := by |
| 81 | apply Subtype.ext |
| 82 | ext v |
| 83 | rfl |
| 84 | |
| 85 | @[simp] |
| 86 | theorem quotientDualEquiv_apply_val (q : V →ₗ[R] W) (hq : Function.Surjective q) |
| 87 | (φ : W →ₗ[R] M) : |
| 88 | (quotientDualEquiv q hq φ).val = φ.comp q := |
| 89 | rfl |
| 90 | |
| 91 | @[simp] |
| 92 | theorem quotientDualEquiv_apply (q : V →ₗ[R] W) (hq : Function.Surjective q) |
| 93 | (φ : W →ₗ[R] M) (v : V) : |
| 94 | (quotientDualEquiv q hq φ).val v = φ (q v) := |
| 95 | rfl |
| 96 | |
| 97 | /-- The inverse is the quotient lift followed by the inverse of the native |
| 98 | first-isomorphism equivalence. -/ |
| 99 | theorem quotientDualEquiv_symm_eq_liftQ (q : V →ₗ[R] W) |
| 100 | (hq : Function.Surjective q) (φ : kernelAnnihilator q M) : |
| 101 | (quotientDualEquiv q hq).symm φ = |
| 102 | (q.ker.liftQ φ.val φ.property).comp |
| 103 | (q.quotKerEquivOfSurjective hq).symm.toLinearMap := |
| 104 | rfl |
| 105 | |
| 106 | @[simp] |
| 107 | theorem quotientDualEquiv_symm_apply (q : V →ₗ[R] W) |
| 108 | (hq : Function.Surjective q) (φ : kernelAnnihilator q M) (v : V) : |
| 109 | (quotientDualEquiv q hq).symm φ (q v) = φ.val v := |
| 110 | kernelAnnihilatorLift_apply q hq φ v |
| 111 | |
| 112 | @[simp] |
| 113 | theorem quotientDualEquiv_symm_comp (q : V →ₗ[R] W) |
| 114 | (hq : Function.Surjective q) (φ : kernelAnnihilator q M) : |
| 115 | ((quotientDualEquiv q hq).symm φ).comp q = φ.val := by |
| 116 | ext v |
| 117 | exact quotientDualEquiv_symm_apply q hq φ v |
| 118 | |
| 119 | end |
| 120 | |
| 121 | end OAI.AlgebraicGeometry.CycleClass.Geometric.LinearQuotientDual.Cycles |