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.AbelianScheme.TateComparison.TateAction |
| 2 | |
| 3 | /-! # Product Action Decomposition -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.ProductActionDecomposition.ProductAction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! A finite product-ring action decomposes its actual module into the |
| 12 | ranges of its orthogonal projectors. The decomposition and eigenvalue |
| 13 | equations are proved from the algebra action. -/ |
| 14 | |
| 15 | open scoped BigOperators |
| 16 | |
| 17 | variable {R M I : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 18 | (θ : (I → R) →ₐ[R] Module.End R M) |
| 19 | |
| 20 | def projector (i : I) : Module.End R M := by |
| 21 | classical |
| 22 | exact θ (Pi.single i 1) |
| 23 | |
| 24 | theorem projector_eq_single [DecidableEq I] (i : I) : projector θ i = θ (Pi.single i 1) := by |
| 25 | unfold projector |
| 26 | congr 1 |
| 27 | ext j |
| 28 | by_cases h : j = i <;> simp [h] |
| 29 | |
| 30 | theorem projector_self (i : I) : projector θ i * projector θ i = projector θ i := by |
| 31 | classical |
| 32 | unfold projector |
| 33 | rw [← map_mul] |
| 34 | congr 1 |
| 35 | ext j |
| 36 | by_cases h : j = i <;> simp [h] |
| 37 | |
| 38 | theorem projector_orthogonal {i j : I} (h : i ≠ j) : projector θ i * projector θ j = 0 := by |
| 39 | classical |
| 40 | unfold projector |
| 41 | rw [← map_mul, ← map_zero θ] |
| 42 | congr 1 |
| 43 | ext k |
| 44 | by_cases hi : k = i |
| 45 | · subst k |
| 46 | simp [h] |
| 47 | · simp [Pi.single_apply, hi] |
| 48 | |
| 49 | theorem sum_projector [Fintype I] : ∑ i, projector θ i = 1 := by |
| 50 | classical |
| 51 | unfold projector |
| 52 | rw [← map_sum, ← map_one θ] |
| 53 | congr 1 |
| 54 | ext i |
| 55 | simp [Pi.single_apply] |
| 56 | |
| 57 | def block (i : I) : Submodule R M := (projector θ i).range |
| 58 | |
| 59 | theorem projector_on_block (i : I) (x : block θ i) : projector θ i x.val = x.val := by |
| 60 | obtain ⟨y, hy⟩ := x.property |
| 61 | change projector θ i y = x.val at hy |
| 62 | rw [← hy] |
| 63 | exact congrArg (fun f : Module.End R M => f y) (projector_self θ i) |
| 64 | |
| 65 | theorem projector_on_other_block {i j : I} (h : i ≠ j) (x : block θ j) : |
| 66 | projector θ i x.val = 0 := by |
| 67 | obtain ⟨y, hy⟩ := x.property |
| 68 | change projector θ j y = x.val at hy |
| 69 | rw [← hy] |
| 70 | exact congrArg (fun f : Module.End R M => f y) (projector_orthogonal θ h) |
| 71 | |
| 72 | def decomposition [Fintype I] : M ≃ₗ[R] ∀ i, block θ i where |
| 73 | toFun x i := ⟨projector θ i x, ⟨x, rfl⟩⟩ |
| 74 | invFun x := ∑ i, (x i).val |
| 75 | left_inv x := by |
| 76 | have h := congrArg (fun f : Module.End R M => f x) (sum_projector θ) |
| 77 | simpa only [LinearMap.sum_apply, Module.End.one_apply] using h |
| 78 | right_inv x := by |
| 79 | classical |
| 80 | funext i |
| 81 | apply Subtype.ext |
| 82 | change projector θ i (∑ j, (x j).val) = (x i).val |
| 83 | rw [map_sum, Finset.sum_eq_single i] |
| 84 | · exact projector_on_block θ i (x i) |
| 85 | · intro j _ hji |
| 86 | exact projector_on_other_block θ hji.symm (x j) |
| 87 | · simp |
| 88 | map_add' x y := by funext i; exact Subtype.ext ((projector θ i).map_add x y) |
| 89 | map_smul' r x := by funext i; exact Subtype.ext ((projector θ i).map_smul r x) |
| 90 | |
| 91 | theorem action_on_block (a : I → R) (i : I) (x : block θ i) : θ a x.val = a i • x.val := by |
| 92 | classical |
| 93 | have hm : a * Pi.single i 1 = a i • (Pi.single i 1 : I → R) := by |
| 94 | ext j |
| 95 | by_cases h : j = i <;> simp [h] |
| 96 | have he : θ a * projector θ i = a i • projector θ i := by |
| 97 | change θ a * θ (Pi.single i 1) = a i • θ (Pi.single i 1) |
| 98 | rw [← map_mul, hm, map_smul] |
| 99 | have hx := congrArg (fun f : Module.End R M => f x.val) he |
| 100 | change θ a (projector θ i x.val) = a i • projector θ i x.val at hx |
| 101 | rwa [projector_on_block] at hx |
| 102 | |
| 103 | theorem mem_block_iff (i : I) (x : M) : x ∈ block θ i ↔ ∀ a : I → R, θ a x = a i • x := by |
| 104 | constructor |
| 105 | · intro hx a |
| 106 | exact action_on_block θ a i ⟨x, hx⟩ |
| 107 | · intro hx |
| 108 | classical |
| 109 | have he := hx (Pi.single i 1) |
| 110 | change projector θ i x = (Pi.single i 1 : I → R) i • x at he |
| 111 | simp only [Pi.single_eq_same, one_smul] at he |
| 112 | exact ⟨x, he⟩ |
| 113 | |
| 114 | end |
| 115 | |
| 116 | /-! Equivariant maps preserve the actual projector ranges. Their maps |
| 117 | on blocks retain the same underlying linear maps and compose correctly. -/ |
| 118 | |
| 119 | variable {R M N P I : Type*} [CommRing R] |
| 120 | [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] |
| 121 | [AddCommGroup P] [Module R P] |
| 122 | (θ : (I → R) →ₐ[R] Module.End R M) (ψ : (I → R) →ₐ[R] Module.End R N) |
| 123 | |
| 124 | def blockMap (f : M →ₗ[R] N) (hf : ∀ a, f.comp (θ a) = (ψ a).comp f) (i : I) : |
| 125 | block θ i →ₗ[R] block ψ i := |
| 126 | (f.comp (block θ i).subtype).codRestrict (block ψ i) (by |
| 127 | intro x |
| 128 | obtain ⟨y, hy⟩ := x.property |
| 129 | classical |
| 130 | have he := congrArg (fun z => z y) (hf (Pi.single i 1)) |
| 131 | change f (projector θ i y) = projector ψ i (f y) at he |
| 132 | exact ⟨f y, he.symm.trans (congrArg f hy)⟩) |
| 133 | |
| 134 | theorem blockMap_val (f : M →ₗ[R] N) (hf : ∀ a, f.comp (θ a) = (ψ a).comp f) |
| 135 | (i : I) (x : block θ i) : (blockMap θ ψ f hf i x).val = f x.val := rfl |
| 136 | |
| 137 | theorem blockMap_surjective (f : M →ₗ[R] N) (hf : ∀ a, f.comp (θ a) = (ψ a).comp f) |
| 138 | (hs : Function.Surjective f) (i : I) : Function.Surjective (blockMap θ ψ f hf i) := by |
| 139 | intro z |
| 140 | obtain ⟨x, hx⟩ := hs z.val |
| 141 | refine ⟨⟨projector θ i x, ⟨x, rfl⟩⟩, ?_⟩ |
| 142 | apply Subtype.ext |
| 143 | classical |
| 144 | have he := congrArg (fun a => a x) (hf (Pi.single i 1)) |
| 145 | change f (projector θ i x) = projector ψ i (f x) at he |
| 146 | exact he.trans ((congrArg (projector ψ i) hx).trans (projector_on_block ψ i z)) |
| 147 | |
| 148 | theorem blockMap_injective (f : M →ₗ[R] N) (hf : ∀ a, f.comp (θ a) = (ψ a).comp f) |
| 149 | (hi : Function.Injective f) (i : I) : Function.Injective (blockMap θ ψ f hf i) := by |
| 150 | intro x y hxy |
| 151 | apply Subtype.ext |
| 152 | exact hi (congrArg Subtype.val hxy) |
| 153 | |
| 154 | theorem blockMap_comp (χ : (I → R) →ₐ[R] Module.End R P) |
| 155 | (f : M →ₗ[R] N) (hf : ∀ a, f.comp (θ a) = (ψ a).comp f) |
| 156 | (g : N →ₗ[R] P) (hg : ∀ a, g.comp (ψ a) = (χ a).comp g) (i : I) : |
| 157 | (blockMap ψ χ g hg i).comp (blockMap θ ψ f hf i) = |
| 158 | blockMap θ χ (g.comp f) (fun a => by |
| 159 | rw [LinearMap.comp_assoc, hf a, ← LinearMap.comp_assoc, hg a, LinearMap.comp_assoc]) i := by |
| 160 | rfl |
| 161 | |
| 162 | end |
| 163 | |
| 164 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.ProductActionDecomposition.ProductAction |