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.PoissonAutomorphyNormalizationData |
| 2 | |
| 3 | /-! # Symplectic Product -/ |
| 4 | |
| 5 | namespace OAI |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.SymplecticProduct.CM |
| 10 | |
| 11 | /-! Symplectic matrices over a product ring are exactly pairs of |
| 12 | symplectic matrices over its two factors. -/ |
| 13 | |
| 14 | open scoped Classical _root_.Matrix |
| 15 | open _root_.Matrix OAI.RepresentationTheory.Theta.PoissonAutomorphyNormalizationData |
| 16 | variable {I R S : Type*} [Fintype I] [DecidableEq I] [CommRing R] [CommRing S] |
| 17 | |
| 18 | def pairMatrix (A : Matrix I I R) (B : Matrix I I S) : Matrix I I (R × S) := |
| 19 | fun i j => (A i j, B i j) |
| 20 | |
| 21 | omit [Fintype I] [DecidableEq I] in |
| 22 | theorem pairMatrix_fst (A : Matrix I I R) (B : Matrix I I S) : |
| 23 | (pairMatrix A B).map (RingHom.fst R S) = A := rfl |
| 24 | |
| 25 | omit [Fintype I] [DecidableEq I] in |
| 26 | theorem pairMatrix_snd (A : Matrix I I R) (B : Matrix I I S) : |
| 27 | (pairMatrix A B).map (RingHom.snd R S) = B := rfl |
| 28 | |
| 29 | omit [Fintype I] [DecidableEq I] in |
| 30 | theorem matrix_ext (A B : Matrix I I (R × S)) |
| 31 | (h₁ : A.map (RingHom.fst R S) = B.map (RingHom.fst R S)) |
| 32 | (h₂ : A.map (RingHom.snd R S) = B.map (RingHom.snd R S)) : A = B := by |
| 33 | apply Matrix.ext |
| 34 | intro i j |
| 35 | exact Prod.ext (congrFun (congrFun h₁ i) j) (congrFun (congrFun h₂ i) j) |
| 36 | |
| 37 | theorem pairMatrix_one : pairMatrix (1 : Matrix I I R) (1 : Matrix I I S) = 1 := by |
| 38 | apply matrix_ext |
| 39 | · rw [pairMatrix_fst] |
| 40 | exact ((RingHom.fst R S).mapMatrix.map_one).symm |
| 41 | · rw [pairMatrix_snd] |
| 42 | exact ((RingHom.snd R S).mapMatrix.map_one).symm |
| 43 | |
| 44 | omit [DecidableEq I] in |
| 45 | theorem pairMatrix_mul (A C : Matrix I I R) (B D : Matrix I I S) : |
| 46 | pairMatrix (A * C) (B * D) = pairMatrix A B * pairMatrix C D := by |
| 47 | apply matrix_ext |
| 48 | · rw [pairMatrix_fst, Matrix.map_mul, pairMatrix_fst, pairMatrix_fst] |
| 49 | · rw [pairMatrix_snd, Matrix.map_mul, pairMatrix_snd, pairMatrix_snd] |
| 50 | |
| 51 | theorem pairMatrix_symplectic (g : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I R) (h : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I S) : |
| 52 | pairMatrix g.val h.val ∈ Matrix.symplecticGroup I (R × S) := by |
| 53 | apply SymplecticGroup.mem_iff'.mpr |
| 54 | apply matrix_ext |
| 55 | · rw [Matrix.map_mul, Matrix.map_mul, Matrix.transpose_map, Matrix.map_J, |
| 56 | pairMatrix_fst, SymplecticGroup.mem_iff'.mp g.property] |
| 57 | · rw [Matrix.map_mul, Matrix.map_mul, Matrix.transpose_map, Matrix.map_J, |
| 58 | pairMatrix_snd, SymplecticGroup.mem_iff'.mp h.property] |
| 59 | |
| 60 | def pair : (RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I R × RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I S) →* RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I (R × S) where |
| 61 | toFun a := ⟨pairMatrix a.1.val a.2.val, pairMatrix_symplectic a.1 a.2⟩ |
| 62 | map_one' := Subtype.ext pairMatrix_one |
| 63 | map_mul' a b := Subtype.ext (pairMatrix_mul a.1.val b.1.val a.2.val b.2.val) |
| 64 | |
| 65 | theorem pair_fst (g : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I R) (h : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I S) : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.mapSp (RingHom.fst R S) (pair (g, h)) = g := |
| 66 | Subtype.ext (pairMatrix_fst g.val h.val) |
| 67 | |
| 68 | theorem pair_snd (g : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I R) (h : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I S) : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.mapSp (RingHom.snd R S) (pair (g, h)) = h := |
| 69 | Subtype.ext (pairMatrix_snd g.val h.val) |
| 70 | |
| 71 | theorem pair_projections (g : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I (R × S)) : |
| 72 | pair (RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.mapSp (RingHom.fst R S) g, RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.mapSp (RingHom.snd R S) g) = g := by |
| 73 | apply Subtype.ext |
| 74 | apply Matrix.ext |
| 75 | intro i j |
| 76 | exact Prod.eta (g.val i j) |
| 77 | |
| 78 | theorem pair_eq_one (g : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I R) (h : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I S) : pair (g, h) = 1 ↔ g = 1 ∧ h = 1 := by |
| 79 | constructor |
| 80 | · intro he |
| 81 | constructor |
| 82 | · have h₁ := congrArg (RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.mapSp (RingHom.fst R S)) he |
| 83 | rwa [pair_fst, map_one] at h₁ |
| 84 | · have h₂ := congrArg (RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.mapSp (RingHom.snd R S)) he |
| 85 | rwa [pair_snd, map_one] at h₂ |
| 86 | · rintro ⟨rfl, rfl⟩ |
| 87 | exact pair.map_one |
| 88 | |
| 89 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.SymplecticProduct.CM |
| 90 | |
| 91 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.SymplecticProduct.CM.Phase |
| 92 | |
| 93 | /-! Coordinate projections of the actual product-ring symplectic |
| 94 | phase action are the two factor actions. -/ |
| 95 | |
| 96 | open scoped Classical _root_.Matrix |
| 97 | open _root_.Matrix OAI.RepresentationTheory.Theta.PoissonAutomorphyNormalizationData |
| 98 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.SymplecticProduct.CM |
| 99 | variable {I R S : Type*} [Fintype I] [DecidableEq I] [CommRing R] [CommRing S] |
| 100 | |
| 101 | theorem phase_fst (g : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I R) (h : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I S) (p q : I → R × S) (i : I ⊕ I) : |
| 102 | (((pair (g, h)).val *ᵥ Sum.elim p q) i).1 = |
| 103 | (g.val *ᵥ Sum.elim (fun j => (p j).1) (fun j => (q j).1)) i := by |
| 104 | change (RingHom.fst R S) ((pairMatrix g.val h.val *ᵥ Sum.elim p q) i) = _ |
| 105 | rw [RingHom.map_mulVec, pairMatrix_fst] |
| 106 | have he : (fun j => (RingHom.fst R S) (Sum.elim p q j)) = |
| 107 | Sum.elim (fun j => (p j).1) (fun j => (q j).1) := by |
| 108 | funext j |
| 109 | cases j <;> rfl |
| 110 | dsimp only [Function.comp_def] |
| 111 | rw [he] |
| 112 | |
| 113 | theorem phase_snd (g : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I R) (h : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Sp I S) (p q : I → R × S) (i : I ⊕ I) : |
| 114 | (((pair (g, h)).val *ᵥ Sum.elim p q) i).2 = |
| 115 | (h.val *ᵥ Sum.elim (fun j => (p j).2) (fun j => (q j).2)) i := by |
| 116 | change (RingHom.snd R S) ((pairMatrix g.val h.val *ᵥ Sum.elim p q) i) = _ |
| 117 | rw [RingHom.map_mulVec, pairMatrix_snd] |
| 118 | have he : (fun j => (RingHom.snd R S) (Sum.elim p q j)) = |
| 119 | Sum.elim (fun j => (p j).2) (fun j => (q j).2) := by |
| 120 | funext j |
| 121 | cases j <;> rfl |
| 122 | dsimp only [Function.comp_def] |
| 123 | rw [he] |
| 124 | |
| 125 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.SymplecticProduct.CM.Phase |
| 126 | |
| 127 | end |
| 128 | |
| 129 | end OAI |