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.Weil.UnitarySplitting.TracePairing |
| 2 | import OAI.RepresentationTheory.Weil.UnitarySplitting.Characters |
| 3 | |
| 4 | /-! # Quadratic Norm -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Weil.UnitarySplitting.QuadraticNorm.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Explicit trace and norm formulas for the specified quadratic involution, |
| 13 | and the norm invariance of the permitted splitting characters. -/ |
| 14 | |
| 15 | open scoped BigOperators |
| 16 | |
| 17 | section Field |
| 18 | |
| 19 | variable {F E : Type} [Field F] [Field E] [Algebra F E] |
| 20 | variable [FiniteDimensional F E] [CharZero F] |
| 21 | variable (hQuadratic : Module.finrank F E = 2) (σ : E ≃ₐ[F] E) |
| 22 | variable (hne : ∃ z : E, σ z ≠ z) |
| 23 | |
| 24 | local instance : DecidableEq (E ≃ₐ[F] E) := Classical.decEq _ |
| 25 | |
| 26 | include hQuadratic hne in |
| 27 | theorem quadratic_automorphisms : (Finset.univ : Finset (E ≃ₐ[F] E)) = {1, σ} := by |
| 28 | classical |
| 29 | let : Algebra.IsQuadraticExtension F E := ⟨hQuadratic⟩ |
| 30 | have hσ : (1 : E ≃ₐ[F] E) ≠ σ := by |
| 31 | intro hh |
| 32 | obtain ⟨z, hz⟩ := hne |
| 33 | rw [← hh] at hz |
| 34 | exact hz rfl |
| 35 | have hcard : Fintype.card (E ≃ₐ[F] E) = 2 := by |
| 36 | rw [← Nat.card_eq_fintype_card, IsGalois.card_aut_eq_finrank, hQuadratic] |
| 37 | apply Eq.symm |
| 38 | apply Finset.eq_of_subset_of_card_le (Finset.subset_univ _) |
| 39 | simp only [Finset.card_univ, hcard, Finset.card_pair hσ, le_refl] |
| 40 | |
| 41 | include hQuadratic hne in |
| 42 | theorem quadratic_norm_formula (x : E) : |
| 43 | algebraMap F E (Algebra.norm F x) = x * σ x := by |
| 44 | classical |
| 45 | let : Algebra.IsQuadraticExtension F E := ⟨hQuadratic⟩ |
| 46 | rw [Algebra.norm_eq_prod_automorphisms, quadratic_automorphisms hQuadratic σ hne] |
| 47 | have hσ : (1 : E ≃ₐ[F] E) ≠ σ := by |
| 48 | intro hh |
| 49 | obtain ⟨z, hz⟩ := hne |
| 50 | rw [← hh] at hz |
| 51 | exact hz rfl |
| 52 | simp only [Finset.prod_pair hσ, AlgEquiv.one_apply] |
| 53 | |
| 54 | include hQuadratic hne in |
| 55 | theorem quadratic_trace_formula (x : E) : |
| 56 | algebraMap F E (Algebra.trace F E x) = x + σ x := by |
| 57 | classical |
| 58 | let : Algebra.IsQuadraticExtension F E := ⟨hQuadratic⟩ |
| 59 | rw [trace_eq_sum_automorphisms, quadratic_automorphisms hQuadratic σ hne] |
| 60 | have hσ : (1 : E ≃ₐ[F] E) ≠ σ := by |
| 61 | intro hh |
| 62 | obtain ⟨z, hz⟩ := hne |
| 63 | rw [← hh] at hz |
| 64 | exact hz rfl |
| 65 | simp only [Finset.sum_pair hσ, AlgEquiv.one_apply] |
| 66 | |
| 67 | include hQuadratic hne in |
| 68 | theorem quadratic_fixed_iff (x : E) : σ x = x ↔ x ∈ Set.range (algebraMap F E) := by |
| 69 | classical |
| 70 | let : Algebra.IsQuadraticExtension F E := ⟨hQuadratic⟩ |
| 71 | rw [IsGalois.mem_range_algebraMap_iff_fixed] |
| 72 | constructor |
| 73 | · intro hx τ |
| 74 | have ht : τ ∈ ({1, σ} : Finset (E ≃ₐ[F] E)) := by |
| 75 | rw [← quadratic_automorphisms hQuadratic σ hne] |
| 76 | exact Finset.mem_univ τ |
| 77 | simp only [Finset.mem_insert, Finset.mem_singleton] at ht |
| 78 | rcases ht with rfl | rfl |
| 79 | · rfl |
| 80 | · exact hx |
| 81 | · exact fun h => h σ |
| 82 | |
| 83 | end Field |
| 84 | |
| 85 | variable {F E : Type} [NormedField F] [NormedField E] [Algebra F E] |
| 86 | variable [FiniteDimensional F E] |
| 87 | variable (ω : Fˣ →ₜ* Circle) (hω : UnitarySplitting.Characters.Construction.IsExtensionQuadraticCharacter (E := E) ω) |
| 88 | variable {d : ℕ} (χ : Eˣ →ₜ* Circle) (hχ : UnitarySplitting.Characters.Construction.HasSplittingRestriction ω d χ) |
| 89 | |
| 90 | include hω hχ in |
| 91 | omit [FiniteDimensional F E] in |
| 92 | theorem splittingCharacter_norm (b : Eˣ) : |
| 93 | χ (Units.map (algebraMap F E).toMonoidHom (Units.map (Algebra.norm F) b)) = 1 := by |
| 94 | rw [hχ] |
| 95 | have hh : ω (Units.map (Algebra.norm F) b) = 1 := |
| 96 | (hω _).mpr ⟨b, rfl⟩ |
| 97 | rw [hh, one_pow] |
| 98 | |
| 99 | include hω hχ in |
| 100 | theorem splittingCharacter_conjugate [CharZero F] |
| 101 | (hQuadratic : Module.finrank F E = 2) (σ : E ≃ₐ[F] E) |
| 102 | (hne : ∃ z : E, σ z ≠ z) (b : Eˣ) : |
| 103 | χ (Units.map σ.toMonoidHom b) * χ b = 1 := by |
| 104 | rw [← map_mul] |
| 105 | have he : Units.map σ.toMonoidHom b * b = |
| 106 | Units.map (algebraMap F E).toMonoidHom (Units.map (Algebra.norm F) b) := by |
| 107 | apply Units.ext |
| 108 | change σ (b : E) * (b : E) = algebraMap F E (Algebra.norm F (b : E)) |
| 109 | rw [quadratic_norm_formula hQuadratic σ hne, mul_comm] |
| 110 | rw [he] |
| 111 | exact splittingCharacter_norm ω hω χ hχ b |
| 112 | |
| 113 | end |
| 114 | |
| 115 | /-! Topological field coordinates and continuity of the quadratic norm. |
| 116 | Only continuity of the given field embedding is assumed. -/ |
| 117 | |
| 118 | open _root_.Topology |
| 119 | |
| 120 | variable {F E : Type} [NormedField F] [NormedField E] [Algebra F E] |
| 121 | variable [CompleteSpace F] |
| 122 | variable (hF : ¬ DiscreteTopology F) (hEmbedding : Continuous (algebraMap F E)) |
| 123 | |
| 124 | include hF hEmbedding in |
| 125 | theorem fieldEmbedding_isClosedEmbedding : IsClosedEmbedding (algebraMap F E) := by |
| 126 | rcases NormedField.discreteTopology_or_nontriviallyNormedField F with hd | ⟨_, rfl⟩ |
| 127 | · exact (hF hd).elim |
| 128 | · let : ContinuousSMul F E := continuousSMul_of_algebraMap F E hEmbedding |
| 129 | exact LinearMap.isClosedEmbedding_of_injective |
| 130 | (f := (Algebra.ofId F E).toLinearMap) |
| 131 | (LinearMap.ker_eq_bot.mpr (algebraMap F E).injective) |
| 132 | |
| 133 | variable [FiniteDimensional F E] |
| 134 | |
| 135 | include hF hEmbedding in |
| 136 | theorem fieldAutomorphism_continuous (σ : E ≃ₐ[F] E) : Continuous σ := by |
| 137 | rcases NormedField.discreteTopology_or_nontriviallyNormedField F with hd | ⟨_, rfl⟩ |
| 138 | · exact (hF hd).elim |
| 139 | · let : ContinuousSMul F E := continuousSMul_of_algebraMap F E hEmbedding |
| 140 | exact σ.toLinearMap.continuous_of_finiteDimensional |
| 141 | |
| 142 | include hF hEmbedding in |
| 143 | theorem fieldTrace_continuous : Continuous (Algebra.trace F E) := by |
| 144 | rcases NormedField.discreteTopology_or_nontriviallyNormedField F with hd | ⟨_, rfl⟩ |
| 145 | · exact (hF hd).elim |
| 146 | · let : ContinuousSMul F E := continuousSMul_of_algebraMap F E hEmbedding |
| 147 | exact (Algebra.trace F E).continuous_of_finiteDimensional |
| 148 | |
| 149 | include hF hEmbedding in |
| 150 | theorem fieldNorm_continuous : Continuous (Algebra.norm F : E → F) := by |
| 151 | rcases NormedField.discreteTopology_or_nontriviallyNormedField F with hd | ⟨_, rfl⟩ |
| 152 | · exact (hF hd).elim |
| 153 | · let : ContinuousSMul F E := continuousSMul_of_algebraMap F E hEmbedding |
| 154 | let b := Module.finBasis F E |
| 155 | have hc := continuous_id.matrix_det.comp (Algebra.leftMulMatrix b).toLinearMap.continuous_of_finiteDimensional |
| 156 | convert hc using 1 |
| 157 | funext x |
| 158 | exact Algebra.norm_eq_matrix_det b x |
| 159 | |
| 160 | def quadraticFieldCoordinates (hQuadratic : Module.finrank F E = 2) : E ≃L[F] (Fin 2 → F) := by |
| 161 | apply Classical.choice |
| 162 | rcases NormedField.discreteTopology_or_nontriviallyNormedField F with hd | ⟨_, rfl⟩ |
| 163 | · exact (hF hd).elim |
| 164 | · let : ContinuousSMul F E := continuousSMul_of_algebraMap F E hEmbedding |
| 165 | let b := (Module.finBasis F E).reindex (finCongr hQuadratic) |
| 166 | exact ⟨b.equivFun.toContinuousLinearEquiv⟩ |
| 167 | |
| 168 | end |
| 169 | |
| 170 | end OAI.RepresentationTheory.Weil.UnitarySplitting.QuadraticNorm.Construction |