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.HodgeConjecture.CMExtraction.TensorEvaluation |
| 2 | import Mathlib.LinearAlgebra.Pi |
| 3 | import Mathlib.Algebra.Algebra.Pi |
| 4 | |
| 5 | /-! # Split Lattice Product -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.SplitLatticeProduct.TestTransport |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Integral splitting separates the local components of a stable |
| 12 | lattice. The product equality is proved using the actual integral |
| 13 | idempotents supplied by the surjective tensor completion map. -/ |
| 14 | |
| 15 | open scoped Classical TensorProduct |
| 16 | |
| 17 | variable {A E R K S I : Type*} [CommRing A] [CommRing E] [CommRing R] [CommRing K] |
| 18 | [Algebra R K] [Fintype S] [DecidableEq S] |
| 19 | (ι : A →+* E) (σ : S → E →+* K) (χ : S → A →+* R) |
| 20 | (hχ : ∀ v a, algebraMap R K (χ v a) = σ v (ι a)) |
| 21 | |
| 22 | def splitIntegralTensorMap : R ⊗[ℤ] A →ₐ[ℤ] (S → R) := |
| 23 | TensorEvaluation.TestTransport.tensorEvaluation (algebraMap R (S → R)).toIntAlgHom (RingHom.pi χ).toIntAlgHom |
| 24 | |
| 25 | def splitLatticeImage (L : Submodule ℤ (I → E)) : Submodule R (S → I → K) := |
| 26 | Submodule.span R ((fun x : I → E => fun v i => σ v (x i)) '' (L : Set (I → E))) |
| 27 | |
| 28 | def splitLatticeLocal (L : Submodule ℤ (I → E)) (v : S) : Submodule R (I → K) := |
| 29 | Submodule.span R ((fun x : I → E => fun i => σ v (x i)) '' (L : Set (I → E))) |
| 30 | |
| 31 | variable (L : Submodule ℤ (I → E)) |
| 32 | (hL : ∀ a : A, ∀ x ∈ L, ι a • x ∈ L) |
| 33 | |
| 34 | include hχ hL in |
| 35 | omit [Fintype S] [DecidableEq S] in |
| 36 | theorem splitLatticeImage_action (a : A) (x : S → I → K) (hx : x ∈ splitLatticeImage (R := R) σ L) : |
| 37 | (fun v i => algebraMap R K (χ v a) * x v i) ∈ splitLatticeImage (R := R) σ L := by |
| 38 | induction hx using Submodule.span_induction with |
| 39 | | mem x hx => |
| 40 | obtain ⟨y, hy, rfl⟩ := hx |
| 41 | apply Submodule.subset_span |
| 42 | refine ⟨ι a • y, hL a y hy, ?_⟩ |
| 43 | funext v i |
| 44 | change σ v (ι a * y i) = algebraMap R K (χ v a) * σ v (y i) |
| 45 | rw [map_mul, hχ] |
| 46 | | zero => |
| 47 | simp only [Pi.zero_apply, mul_zero] |
| 48 | exact (splitLatticeImage (R := R) σ L).zero_mem |
| 49 | | add x y _ _ hx hy => |
| 50 | have h := (splitLatticeImage (R := R) σ L).add_mem hx hy |
| 51 | change (fun v i => algebraMap R K (χ v a) * x v i + |
| 52 | algebraMap R K (χ v a) * y v i) ∈ splitLatticeImage (R := R) σ L at h |
| 53 | simpa only [Pi.add_apply, mul_add] using h |
| 54 | | smul r x _ hx => |
| 55 | have h := (splitLatticeImage (R := R) σ L).smul_mem r hx |
| 56 | change (fun v i => r • (algebraMap R K (χ v a) * x v i)) ∈ |
| 57 | splitLatticeImage (R := R) σ L at h |
| 58 | simpa only [Pi.smul_apply, Algebra.smul_def, mul_left_comm] using h |
| 59 | |
| 60 | include hχ hL in |
| 61 | omit [Fintype S] [DecidableEq S] in |
| 62 | theorem splitLatticeImage_tensor_action (t : R ⊗[ℤ] A) |
| 63 | (x : S → I → K) (hx : x ∈ splitLatticeImage (R := R) σ L) : |
| 64 | (fun v i => algebraMap R K (splitIntegralTensorMap χ t v) * x v i) ∈ splitLatticeImage (R := R) σ L := by |
| 65 | induction t using TensorProduct.inductionOn with |
| 66 | | add t u ht hu => |
| 67 | have h := (splitLatticeImage (R := R) σ L).add_mem ht hu |
| 68 | change (fun v i => algebraMap R K (splitIntegralTensorMap χ t v) * x v i + |
| 69 | algebraMap R K (splitIntegralTensorMap χ u v) * x v i) ∈ splitLatticeImage (R := R) σ L at h |
| 70 | simpa only [map_add, Pi.add_apply, add_mul] using h |
| 71 | | tmul r a => |
| 72 | have h := (splitLatticeImage (R := R) σ L).smul_mem r (splitLatticeImage_action ι σ χ hχ L hL a x hx) |
| 73 | change (fun v i => r • (algebraMap R K (χ v a) * x v i)) ∈ |
| 74 | splitLatticeImage (R := R) σ L at h |
| 75 | change (fun v i => algebraMap R K (r * χ v a) * x v i) ∈ splitLatticeImage (R := R) σ L |
| 76 | simpa only [Pi.smul_apply, Algebra.smul_def, map_mul, mul_assoc] using h |
| 77 | |
| 78 | include hχ hL in |
| 79 | omit [Fintype S] in |
| 80 | theorem splitLatticeImage_mask (hs : Function.Surjective (splitIntegralTensorMap χ)) |
| 81 | (v : S) (x : S → I → K) (hx : x ∈ splitLatticeImage (R := R) σ L) : |
| 82 | Pi.single v (x v) ∈ splitLatticeImage (R := R) σ L := by |
| 83 | obtain ⟨t, ht⟩ := hs (Pi.single v 1) |
| 84 | have h := splitLatticeImage_tensor_action ι σ χ hχ L hL t x hx |
| 85 | rw [ht] at h |
| 86 | have he : (fun w i => algebraMap R K ((Pi.single v (1 : R) : S → R) w) * x w i) = Pi.single v (x v) := by |
| 87 | funext w i |
| 88 | by_cases hw : w = v |
| 89 | · subst w |
| 90 | simp |
| 91 | · simp [Pi.single_eq_of_ne hw] |
| 92 | exact he ▸ h |
| 93 | |
| 94 | omit [Fintype S] [DecidableEq S] in |
| 95 | theorem splitLatticeImage_projection (v : S) : |
| 96 | (splitLatticeImage (R := R) σ L).map (LinearMap.proj v) = splitLatticeLocal (R := R) σ L v := by |
| 97 | rw [splitLatticeImage, Submodule.map_span] |
| 98 | congr 1 |
| 99 | rw [Set.image_image] |
| 100 | rfl |
| 101 | |
| 102 | include hχ hL in |
| 103 | theorem splitLatticeImage_eq_product (hs : Function.Surjective (splitIntegralTensorMap χ)) : |
| 104 | splitLatticeImage (R := R) σ L = Submodule.pi Set.univ (splitLatticeLocal (R := R) σ L) := by |
| 105 | ext x |
| 106 | constructor |
| 107 | · intro hx v _ |
| 108 | change x v ∈ splitLatticeLocal (R := R) σ L v |
| 109 | rw [← splitLatticeImage_projection σ L v] |
| 110 | exact ⟨x, hx, rfl⟩ |
| 111 | · intro hx |
| 112 | have hm (v : S) : Pi.single v (x v) ∈ splitLatticeImage (R := R) σ L := by |
| 113 | have hv := hx v (Set.mem_univ v) |
| 114 | change x v ∈ splitLatticeLocal (R := R) σ L v at hv |
| 115 | rw [← splitLatticeImage_projection σ L v] at hv |
| 116 | obtain ⟨y, hy, he⟩ := hv |
| 117 | have h := splitLatticeImage_mask ι σ χ hχ L hL hs v y hy |
| 118 | change y v = x v at he |
| 119 | rwa [he] at h |
| 120 | have hsum := (splitLatticeImage (R := R) σ L).sum_mem (t := Finset.univ) (fun v _ => hm v) |
| 121 | simpa only [Finset.univ_sum_single] using hsum |
| 122 | |
| 123 | end |
| 124 | |
| 125 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.SplitLatticeProduct.TestTransport |