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.RepresentationTheory.Theta.Kernel.IntrinsicGraphProjector |
| 2 | |
| 3 | /-! # Intrinsic Position Fixed Shear -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Theta.Kernel.IntrinsicPositionFixedShear.Intrinsic |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A symplectic linear map fixing positions is an actual symmetric |
| 10 | quadratic shear. This identifies its explicit Schwartz multiplier. -/ |
| 11 | |
| 12 | open scoped Classical _root_.Matrix |
| 13 | |
| 14 | open OAI.RepresentationTheory.Theta.Kernel.IntrinsicGraphProjector.Intrinsic |
| 15 | |
| 16 | variable {I k : Type} [Fintype I] [DecidableEq I] [Field k] |
| 17 | |
| 18 | def momentumOnPositions (E : ((I ⊕ I) → k) →ₗ[k] ((I ⊕ I) → k)) : (I → k) →ₗ[k] (I → k) where |
| 19 | toFun q i := E (Sum.elim q (0 : I → k)) (.inr i) |
| 20 | map_add' q r := by |
| 21 | have he : Sum.elim (q + r) (0 : I → k) = Sum.elim q (0 : I → k) + Sum.elim r (0 : I → k) := by |
| 22 | funext i |
| 23 | cases i <;> simp |
| 24 | rw [he,map_add] |
| 25 | rfl |
| 26 | map_smul' c q := by |
| 27 | have he : Sum.elim (c • q) (0 : I → k) = c • Sum.elim q (0 : I → k) := by |
| 28 | funext i |
| 29 | cases i <;> simp |
| 30 | rw [he,map_smul] |
| 31 | rfl |
| 32 | |
| 33 | def shearMatrix (E : ((I ⊕ I) → k) →ₗ[k] ((I ⊕ I) → k)) : Matrix I I k := |
| 34 | LinearMap.toMatrix' (momentumOnPositions E) |
| 35 | |
| 36 | theorem shear_matrix_apply (E : ((I ⊕ I) → k) →ₗ[k] ((I ⊕ I) → k)) (q : I → k) : |
| 37 | (shearMatrix E).mulVec q = fun i => E (Sum.elim q (0 : I → k)) (.inr i) := |
| 38 | LinearMap.toMatrix'_mulVec _ q |
| 39 | |
| 40 | theorem position_fixed_momenta (E : ((I ⊕ I) → k) →ₗ[k] ((I ⊕ I) → k)) |
| 41 | (hE : ∀ x y, IntrinsicGraphProjector.Intrinsic.phasePairing (E x) (E y) = IntrinsicGraphProjector.Intrinsic.phasePairing x y) |
| 42 | (hpos : ∀ x i, E x (.inl i) = x (.inl i)) (p : I → k) : |
| 43 | E (Sum.elim (0 : I → k) p) = Sum.elim (0 : I → k) p := by |
| 44 | funext i |
| 45 | cases i with |
| 46 | | inl i => exact hpos _ i |
| 47 | | inr i => |
| 48 | have he := hE (Sum.elim (0 : I → k) p) (Sum.elim (Pi.single i 1) (0 : I → k)) |
| 49 | have hzero : (fun j => E (Sum.elim (0 : I → k) p) (.inl j)) = (0 : I → k) := funext (hpos _) |
| 50 | have hsingle : (fun j => E (Sum.elim (Pi.single i 1) (0 : I → k)) (.inl j)) = Pi.single i 1 := |
| 51 | funext (hpos _) |
| 52 | change (fun j => E (Sum.elim (0 : I → k) p) (.inl j)) ⬝ᵥ |
| 53 | (fun j => E (Sum.elim (Pi.single i 1) (0 : I → k)) (.inr j)) - |
| 54 | (fun j => E (Sum.elim (0 : I → k) p) (.inr j)) ⬝ᵥ |
| 55 | (fun j => E (Sum.elim (Pi.single i 1) (0 : I → k)) (.inl j)) = |
| 56 | (0 : I → k) ⬝ᵥ (0 : I → k) - p ⬝ᵥ Pi.single i 1 at he |
| 57 | rw [hzero,hsingle,zero_dotProduct,zero_dotProduct,dotProduct_single,dotProduct_single, |
| 58 | mul_one,mul_one,zero_sub,zero_sub] at he |
| 59 | exact neg_injective he |
| 60 | |
| 61 | theorem position_fixed_formula (E : ((I ⊕ I) → k) →ₗ[k] ((I ⊕ I) → k)) |
| 62 | (hE : ∀ x y, IntrinsicGraphProjector.Intrinsic.phasePairing (E x) (E y) = IntrinsicGraphProjector.Intrinsic.phasePairing x y) |
| 63 | (hpos : ∀ x i, E x (.inl i) = x (.inl i)) (x : (I ⊕ I) → k) : |
| 64 | E x = Sum.elim (fun i => x (.inl i)) |
| 65 | ((fun i => x (.inr i)) + (shearMatrix E).mulVec (fun i => x (.inl i))) := by |
| 66 | have hx : x = Sum.elim (fun i => x (.inl i)) (0 : I → k) + |
| 67 | Sum.elim (0 : I → k) (fun i => x (.inr i)) := by |
| 68 | funext i |
| 69 | cases i <;> simp |
| 70 | have he := (congrArg E hx).trans (E.map_add _ _) |
| 71 | rw [he,position_fixed_momenta E hE hpos,shear_matrix_apply] |
| 72 | funext i |
| 73 | cases i with |
| 74 | | inl i => simpa using hpos (Sum.elim (fun i => x (.inl i)) (0 : I → k)) i |
| 75 | | inr i => exact add_comm _ _ |
| 76 | |
| 77 | theorem shear_matrix_symmetric (E : ((I ⊕ I) → k) →ₗ[k] ((I ⊕ I) → k)) |
| 78 | (hE : ∀ x y, IntrinsicGraphProjector.Intrinsic.phasePairing (E x) (E y) = IntrinsicGraphProjector.Intrinsic.phasePairing x y) |
| 79 | (hpos : ∀ x i, E x (.inl i) = x (.inl i)) : (shearMatrix E).IsSymm := by |
| 80 | have hb (q r : I → k) : q ⬝ᵥ (shearMatrix E).mulVec r = r ⬝ᵥ (shearMatrix E).mulVec q := by |
| 81 | have he := hE (Sum.elim q (0 : I → k)) (Sum.elim r (0 : I → k)) |
| 82 | rw [position_fixed_formula E hE hpos,position_fixed_formula E hE hpos] at he |
| 83 | change q ⬝ᵥ ((0 : I → k) + (shearMatrix E).mulVec r) - |
| 84 | ((0 : I → k) + (shearMatrix E).mulVec q) ⬝ᵥ r = q ⬝ᵥ (0 : I → k) - (0 : I → k) ⬝ᵥ r at he |
| 85 | rw [zero_add,zero_add,dotProduct_zero,zero_dotProduct,sub_self,dotProduct_comm _ r] at he |
| 86 | exact sub_eq_zero.mp he |
| 87 | change (shearMatrix E)ᵀ = shearMatrix E |
| 88 | ext i j |
| 89 | have he := hb (Pi.single j 1) (Pi.single i 1) |
| 90 | rw [single_dotProduct,single_dotProduct,one_mul,one_mul,Matrix.mulVec_single,Matrix.mulVec_single] at he |
| 91 | simp only [MulOpposite.op_one,one_smul] at he |
| 92 | exact he |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.RepresentationTheory.Theta.Kernel.IntrinsicPositionFixedShear.Intrinsic |