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.ComplexMultiplication.GaloisCMType |
| 2 | import OAI.AlgebraicGeometry.ComplexMultiplication.KnownAlgebraicity |
| 3 | import Mathlib.CategoryTheory.Monoidal.Cartesian.Grp |
| 4 | |
| 5 | /-! # Lefschetz Normalization -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HodgeConjecture.LefschetzNormalization |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # LefschetzNormalization: normalization of the active embedding |
| 13 | |
| 14 | The committed specification's binder `Σ` is reserved Lean syntax; here it is |
| 15 | named `reps`. The algebraicity predicates and their four interface hypotheses |
| 16 | are retained exactly. These already supply the uses of scalar descent and |
| 17 | degree-two/weight-one algebraicity, so the separately supplied ScalarDescent and DegreeTwo |
| 18 | propositions are not needed for this abstract normalization implication. |
| 19 | Identifying the predicates with geometric cycle-class images remains the |
| 20 | modeling obligation documented in the specification; no such identification |
| 21 | is asserted by this proof. No statement stub is imported or used. |
| 22 | -/ |
| 23 | |
| 24 | open scoped TensorProduct Classical |
| 25 | open OAI.AlgebraicGeometry.ComplexMultiplication.KnownAlgebraicity.CM OAI.AlgebraicGeometry.ComplexMultiplication.GaloisCMType.CM.CMCoefficientField |
| 26 | |
| 27 | variable (E : IntermediateField ℚ ℂ) |
| 28 | [NumberField E] [IsGalois ℚ E] [NumberField.IsCMField E] |
| 29 | |
| 30 | abbrev G := Gal(E/ℚ) |
| 31 | abbrev Sign := ComplexMultiplication.OddSignSwitch.CM.OddSignPattern (fun τ : G E => ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ) |
| 32 | abbrev FourTypes := Fin 4 → Sign E |
| 33 | |
| 34 | def switchLabels : Fin 4 → G E := |
| 35 | fun i => if i.val < 2 then 1 else ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E |
| 36 | |
| 37 | def embeddingGenerator (τ : G E) : ComplexMultiplication.WeightOne.CM.Complexification E := |
| 38 | ComplexMultiplication.EmbeddingDecomposition.CM.embeddingVector E (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E τ) |
| 39 | |
| 40 | omit [IsGalois ℚ E] in |
| 41 | lemma conj_sq : ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E = 1 := by |
| 42 | apply AlgEquiv.ext |
| 43 | intro x |
| 44 | exact ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation_apply_apply E x |
| 45 | |
| 46 | omit [IsGalois ℚ E] in |
| 47 | lemma conj_inv : (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E)⁻¹ = ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E := by |
| 48 | exact inv_eq_of_mul_eq_one_left (conj_sq E) |
| 49 | |
| 50 | omit [IsGalois ℚ E] in |
| 51 | lemma sign_right_conj (v : Sign E) (τ : G E) : |
| 52 | v.val (τ * ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E) = !v.val τ := by |
| 53 | rw [← (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation_commute E τ).eq] |
| 54 | exact v.property τ |
| 55 | |
| 56 | def translate (v : Sign E) (g : G E) : Sign E := |
| 57 | ⟨fun σ => v.val (σ * g), fun σ => by |
| 58 | simpa only [mul_assoc] using v.property (σ * g)⟩ |
| 59 | |
| 60 | omit [NumberField.IsCMField E] in |
| 61 | lemma coordinates_baseChange (f τ : G E) (x : ComplexMultiplication.WeightOne.CM.Complexification E) : |
| 62 | ComplexMultiplication.EmbeddingDecomposition.CM.fieldComplexificationEquiv E (f.toLinearMap.baseChange ℂ x) |
| 63 | (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E τ) = |
| 64 | ComplexMultiplication.EmbeddingDecomposition.CM.fieldComplexificationEquiv E x (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E (τ * f)) := by |
| 65 | induction x using TensorProduct.inductionOn with |
| 66 | | add x y hx hy => simp only [map_add, Pi.add_apply, hx, hy] |
| 67 | | tmul z a => simp [LinearMap.baseChange_tmul, AlgEquiv.mul_apply] |
| 68 | |
| 69 | omit [NumberField.IsCMField E] in |
| 70 | lemma embeddingGenerator_transport (g τ : G E) : |
| 71 | (g⁻¹).toLinearMap.baseChange ℂ (embeddingGenerator E τ) = |
| 72 | embeddingGenerator E (τ * g) := by |
| 73 | apply (ComplexMultiplication.EmbeddingDecomposition.CM.fieldComplexificationEquiv E).injective |
| 74 | ext ρ |
| 75 | obtain ⟨σ, rfl⟩ := (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E).surjective ρ |
| 76 | rw [coordinates_baseChange] |
| 77 | simp only [embeddingGenerator, ComplexMultiplication.EmbeddingDecomposition.CM.fieldComplexificationEquiv_embeddingVector] |
| 78 | by_cases h : σ = τ * g |
| 79 | · subst σ |
| 80 | simp |
| 81 | · have h' : τ ≠ σ * g⁻¹ := by |
| 82 | intro he |
| 83 | apply h |
| 84 | rw [he, inv_mul_cancel_right] |
| 85 | have h'' : τ * g ≠ σ := Ne.symm h |
| 86 | simp [h', h''] |
| 87 | |
| 88 | lemma translate_isHodgeMap (v : Sign E) (g : G E) : |
| 89 | ComplexMultiplication.WeightOne.CM.IsHodgeMap (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.hodgeStructure E (translate E v g)) |
| 90 | (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.hodgeStructure E v) (g⁻¹).toLinearMap := by |
| 91 | intro x hx |
| 92 | change x ∈ (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.embeddingType E (translate E v g)).subspace true at hx |
| 93 | change (g⁻¹).toLinearMap.baseChange ℂ x ∈ (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.embeddingType E v).subspace true |
| 94 | rw [ComplexMultiplication.CM.TypeHodgeStructure.CMEmbeddingType.mem_subspace_iff] at hx ⊢ |
| 95 | intro ρ hρ |
| 96 | obtain ⟨τ, rfl⟩ := (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E).surjective ρ |
| 97 | rw [coordinates_baseChange] at hρ |
| 98 | have h := hx (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E (τ * g⁻¹)) hρ |
| 99 | change (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.embeddingType E (translate E v g)).val |
| 100 | (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E (τ * g⁻¹)) = true at h |
| 101 | rw [ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.embeddingType_apply] at h |
| 102 | change v.val ((τ * g⁻¹) * g) = true at h |
| 103 | rw [ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.embeddingType_apply] |
| 104 | simpa only [inv_mul_cancel_right] using h |
| 105 | |
| 106 | lemma translate_inverse_isHodgeMap (v : Sign E) (g : G E) : |
| 107 | ComplexMultiplication.WeightOne.CM.IsHodgeMap (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.hodgeStructure E v) |
| 108 | (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.hodgeStructure E (translate E v g)) g.toLinearMap := by |
| 109 | have he : translate E (translate E v g) g⁻¹ = v := by |
| 110 | apply Subtype.ext |
| 111 | funext τ |
| 112 | simp [translate] |
| 113 | simpa only [he, inv_inv] using |
| 114 | translate_isHodgeMap E (translate E v g) g⁻¹ |
| 115 | |
| 116 | omit [IsGalois ℚ E] in |
| 117 | lemma positive_representatives (s : ℕ) |
| 118 | (hdegree : Fintype.card (G E) = 2 * s) |
| 119 | (v : Sign E) (hv : v.val 1 = true) : |
| 120 | ∃ reps : Finset (G E), |
| 121 | (1 : G E) ∈ reps ∧ |
| 122 | (∀ τ : G E, τ ∈ reps ↔ ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ ∉ reps) ∧ |
| 123 | reps.card = s := by |
| 124 | let reps := Finset.univ.filter (fun τ : G E => v.val τ = true) |
| 125 | let negs := Finset.univ.filter (fun τ : G E => ¬v.val τ = true) |
| 126 | have hr (τ : G E) : τ ∈ reps ↔ v.val τ = true := by simp [reps] |
| 127 | have hn (τ : G E) : τ ∈ negs ↔ ¬v.val τ = true := by simp [negs] |
| 128 | have hc : reps.card = negs.card := by |
| 129 | apply Finset.card_bij (fun τ _ => ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ) |
| 130 | · intro τ hτ |
| 131 | rw [hn, v.property, (hr τ).mp hτ] |
| 132 | decide |
| 133 | · intro τ _ ρ _ he |
| 134 | exact mul_left_cancel he |
| 135 | · intro τ hτ |
| 136 | have ht : v.val τ = false := Bool.eq_false_iff.mpr ((hn τ).mp hτ) |
| 137 | refine ⟨ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ, ?_, ?_⟩ |
| 138 | · rw [hr, v.property, ht] |
| 139 | rfl |
| 140 | · rw [← mul_assoc, conj_sq, one_mul] |
| 141 | have hsum : reps.card + negs.card = Fintype.card (G E) := |
| 142 | Finset.card_filter_add_card_filter_not (fun τ : G E => v.val τ = true) |
| 143 | refine ⟨reps, (hr 1).mpr hv, ?_, ?_⟩ |
| 144 | · intro τ |
| 145 | rw [hr, hr, v.property] |
| 146 | cases v.val τ <;> decide |
| 147 | · omega |
| 148 | |
| 149 | omit [IsGalois ℚ E] in |
| 150 | lemma group_eq_one_or_conj (reps : Finset (G E)) |
| 151 | (h1 : (1 : G E) ∈ reps) |
| 152 | (hp : ∀ τ : G E, τ ∈ reps ↔ ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ ∉ reps) |
| 153 | (hc : reps.card = 1) (τ : G E) : τ = 1 ∨ τ = ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E := by |
| 154 | have hs : reps = {1} := by |
| 155 | obtain ⟨a, ha⟩ := Finset.card_eq_one.mp hc |
| 156 | rw [ha] at h1 |
| 157 | have he : (1 : G E) = a := Finset.mem_singleton.mp h1 |
| 158 | simpa [← he] using ha |
| 159 | by_cases ht : τ ∈ reps |
| 160 | · left |
| 161 | simpa [hs] using ht |
| 162 | · right |
| 163 | have hct : ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ ∈ reps := by |
| 164 | by_contra hn |
| 165 | exact ht ((hp τ).mpr hn) |
| 166 | have he : ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ = 1 := by simpa [hs] using hct |
| 167 | calc |
| 168 | τ = ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ) := by |
| 169 | rw [← mul_assoc, conj_sq, one_mul] |
| 170 | _ = ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E := by rw [he, mul_one] |
| 171 | |
| 172 | omit [IsGalois ℚ E] in |
| 173 | lemma no_common_positive_opposite (u v : Sign E) |
| 174 | (h : ¬∃ τ : G E, u.val τ = true ∧ v.val τ = true) (τ : G E) : |
| 175 | v.val τ = !u.val τ := by |
| 176 | have ht := fun hu hv => h ⟨τ, hu, hv⟩ |
| 177 | have hc := fun hu hv => h ⟨ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ, hu, hv⟩ |
| 178 | rw [u.property τ, v.property τ] at hc |
| 179 | cases hu : u.val τ <;> cases hv : v.val τ <;> simp_all |
| 180 | |
| 181 | lemma sign_pair_zero_iff (a b : Bool) : |
| 182 | ComplexMultiplication.SignSwitch.CM.signValue a + ComplexMultiplication.SignSwitch.CM.signValue b = 0 ↔ b = !a := by |
| 183 | cases a <;> cases b <;> norm_num [ComplexMultiplication.SignSwitch.CM.signValue] |
| 184 | |
| 185 | lemma common_positive_of_balance (a b c d : Bool) |
| 186 | (h : ComplexMultiplication.SignSwitch.CM.signValue a + ComplexMultiplication.SignSwitch.CM.signValue b = ComplexMultiplication.SignSwitch.CM.signValue c + ComplexMultiplication.SignSwitch.CM.signValue d) |
| 187 | (ha : a = true) (hb : b = true) : c = true ∧ d = true := by |
| 188 | subst a |
| 189 | subst b |
| 190 | cases c <;> cases d <;> norm_num [ComplexMultiplication.SignSwitch.CM.signValue] at * |
| 191 | |
| 192 | section Inputs |
| 193 | |
| 194 | open _root_.CategoryTheory _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.MonObj |
| 195 | |
| 196 | /-- The supplied ScalarDescent proposition, for rational spaces in the universe used here. -/ |
| 197 | def ScalarTraceInput : Prop := |
| 198 | ∀ (K : IntermediateField ℚ ℂ) [FiniteDimensional ℚ K] [IsGalois ℚ K] |
| 199 | (V : Type) [AddCommGroup V] [Module ℚ V] |
| 200 | (Hpq : Submodule ℂ (ComplexMultiplication.WeightOne.CM.Complexification V)) (t : K ⊗[ℚ] V), |
| 201 | (∀ σ : K ≃ₐ[ℚ] K, |
| 202 | ComplexMultiplication.EmbeddingCoefficientField.CM.coefficientInclusion K V (ComplexMultiplication.ScalarDescent.CM.scalarConjugate ℚ K V σ t) ∈ Hpq) → |
| 203 | t ∈ Submodule.span K {y : K ⊗[ℚ] V | |
| 204 | ∃ v : V, y = (1 : K) ⊗ₜ[ℚ] v ∧ (1 : ℂ) ⊗ₜ[ℚ] v ∈ Hpq} |
| 205 | |
| 206 | /-- The weight-one part of the supplied DegreeTwo specification. -/ |
| 207 | def WeightOneInput : Prop := |
| 208 | ∀ (A B : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) |
| 209 | (u : A.variety.rationalCohomology 1 →ₗ[ℚ] B.variety.rationalCohomology 1), |
| 210 | (∀ x ∈ A.h1Holomorphic, u.baseChange ℂ x ∈ B.h1Holomorphic) → |
| 211 | (∀ x ∈ A.h1Antiholomorphic, u.baseChange ℂ x ∈ B.h1Antiholomorphic) → |
| 212 | ∃ n : ℕ, 0 < n ∧ ∃ g : B.toOver ⟶ A.toOver, |
| 213 | IsMonHom g ∧ ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety.h1Pullback g = (n : ℚ) • u |
| 214 | |
| 215 | /-- The Albanese part of the supplied DegreeTwo specification. -/ |
| 216 | def AlbaneseInput : Prop := |
| 217 | ∀ (X : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (x₀ : 𝟙_ (Over Foundations.Scheme.ProjectiveSpace.complexBase) ⟶ X.toOver), |
| 218 | ∃ (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) (a : X.toOver ⟶ A.toOver) |
| 219 | (eQ : A.variety.rationalCohomology 1 ≃ₗ[ℚ] X.rationalCohomology 1) |
| 220 | (eC : A.variety.complexCohomology 1 ≃ₗ[ℂ] X.complexCohomology 1), |
| 221 | x₀ ≫ a = η[A.toOver] ∧ |
| 222 | (∀ (B : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) (f : X.toOver ⟶ B.toOver), |
| 223 | x₀ ≫ f = η[B.toOver] → |
| 224 | ∃! g : A.toOver ⟶ B.toOver, IsMonHom g ∧ a ≫ g = f) ∧ |
| 225 | eQ.toLinearMap = (Betti.Scheme.schemeBettiMap (ModuleCat.of ℚ ℚ) 1 a).hom ∧ |
| 226 | eC.toLinearMap = (Betti.Scheme.schemeBettiMap (ModuleCat.of ℂ ℂ) 1 a).hom ∧ |
| 227 | (A.variety.pureBettiSubspace 1 0).map eC.toLinearMap = |
| 228 | X.pureBettiSubspace 1 0 ∧ |
| 229 | (A.variety.pureBettiSubspace 0 1).map eC.toLinearMap = |
| 230 | X.pureBettiSubspace 0 1 |
| 231 | |
| 232 | /-- The degree-two part of the supplied DegreeTwo specification. -/ |
| 233 | def DegreeTwoInput : Prop := |
| 234 | ∀ (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (α : V.rationalCohomology 2), |
| 235 | V.IsRationalHodgeClass 1 α → |
| 236 | ∃ z : CycleClass.Geometric.DimensionCycles.RationalDimensionCycle V 1, V.geometricCycleClassMap 1 z = α |
| 237 | |
| 238 | end Inputs |
| 239 | |
| 240 | /-- LefschetzNormalization with its original algebraicity interfaces and explicitly named graph inputs. |
| 241 | The leading underscores record that the graph inputs are unnecessary once the |
| 242 | specification's interface hypotheses are supplied. -/ |
| 243 | theorem normalization_of_active_embedding |
| 244 | (_hL2_2 : ScalarTraceInput) |
| 245 | (_hP2_3_weight_one : WeightOneInput) |
| 246 | (_hP2_3_albanese : AlbaneseInput) |
| 247 | (_hP2_3_degree_two : DegreeTwoInput) |
| 248 | (s : ℕ) |
| 249 | (hdegree : Fintype.card (G E) = 2 * s) |
| 250 | (A₂ : Sign E → Sign E → G E → G E → Prop) |
| 251 | (A₄ : FourTypes E → (Fin 4 → G E) → Prop) |
| 252 | (h11 : |
| 253 | ∀ (u v : Sign E) (a b : G E), |
| 254 | (∀ σ : G E, |
| 255 | ComplexMultiplication.SignSwitch.CM.signValue (u.val (σ * a)) + ComplexMultiplication.SignSwitch.CM.signValue (v.val (σ * b)) = 0) → |
| 256 | A₂ u v a b) |
| 257 | (hproduct : |
| 258 | ∀ (v : FourTypes E) (a : Fin 4 → G E) (p : Equiv.Perm (Fin 4)), |
| 259 | A₂ (v (p 0)) (v (p 1)) (a (p 0)) (a (p 1)) → |
| 260 | A₂ (v (p 2)) (v (p 3)) (a (p 2)) (a (p 3)) → A₄ v a) |
| 261 | (hscalar : |
| 262 | ∀ (v : FourTypes E) (a : Fin 4 → G E) (g : G E), |
| 263 | A₄ v (fun i => g * a i) ↔ A₄ v a) |
| 264 | (htransfer : |
| 265 | ∀ (u v : FourTypes E) (a b : Fin 4 → G E) |
| 266 | (f : Fin 4 → (E →ₗ[ℚ] E)), |
| 267 | (∀ i, ComplexMultiplication.WeightOne.CM.IsHodgeMap (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.hodgeStructure E (u i)) |
| 268 | (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.hodgeStructure E (v i)) (f i)) → |
| 269 | (∀ i, (f i).baseChange ℂ (embeddingGenerator E (a i)) = |
| 270 | embeddingGenerator E (b i)) → A₄ u a → A₄ v b) |
| 271 | (v : FourTypes E) |
| 272 | (hbalance : ∀ τ : G E, |
| 273 | ComplexMultiplication.SignSwitch.CM.signValue ((v 0).val τ) + ComplexMultiplication.SignSwitch.CM.signValue ((v 1).val τ) = |
| 274 | ComplexMultiplication.SignSwitch.CM.signValue ((v 2).val τ) + ComplexMultiplication.SignSwitch.CM.signValue ((v 3).val τ)) : |
| 275 | ((¬ ∃ g : G E, (v 0).val g = true ∧ (v 1).val g = true) ∧ |
| 276 | (∀ τ : G E, |
| 277 | (v 1).val τ = !((v 0).val τ) ∧ |
| 278 | (v 3).val τ = !((v 2).val τ)) ∧ A₄ v (switchLabels E)) |
| 279 | ∨ |
| 280 | (∃ (g : G E) (w : FourTypes E) |
| 281 | (d : Fin 4 → G E → Bool) (reps : Finset (G E)), |
| 282 | (∀ i σ, (w i).val σ = (v i).val (σ * g)) ∧ |
| 283 | (∀ i, (w i).val 1 = true) ∧ |
| 284 | (∀ τ : G E, |
| 285 | ComplexMultiplication.SignSwitch.CM.signValue ((w 0).val τ) + ComplexMultiplication.SignSwitch.CM.signValue ((w 1).val τ) = |
| 286 | ComplexMultiplication.SignSwitch.CM.signValue ((w 2).val τ) + ComplexMultiplication.SignSwitch.CM.signValue ((w 3).val τ)) ∧ |
| 287 | (∀ i, ComplexMultiplication.WeightOne.CM.IsHodgeMap (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.hodgeStructure E (w i)) |
| 288 | (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.hodgeStructure E (v i)) (g⁻¹).toLinearMap) ∧ |
| 289 | (∀ τ : G E, |
| 290 | (g⁻¹).toLinearMap.baseChange ℂ (embeddingGenerator E τ) = |
| 291 | embeddingGenerator E (τ * g)) ∧ |
| 292 | (∀ i τ, d i τ = (w i).val τ⁻¹) ∧ |
| 293 | (∀ i τ, d i (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ) = !(d i τ)) ∧ |
| 294 | (1 : G E) ∈ reps ∧ |
| 295 | (∀ τ : G E, τ ∈ reps ↔ ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ ∉ reps) ∧ |
| 296 | reps.card = s ∧ |
| 297 | (A₄ w (switchLabels E) ↔ A₄ v (switchLabels E)) ∧ |
| 298 | ((s = 1 ∧ A₄ v (switchLabels E)) ∨ 2 ≤ s)) := by |
| 299 | by_cases hpos : ∃ g : G E, (v 0).val g = true ∧ (v 1).val g = true |
| 300 | · right |
| 301 | obtain ⟨g, hg0, hg1⟩ := hpos |
| 302 | obtain ⟨hg2, hg3⟩ := common_positive_of_balance _ _ _ _ (hbalance g) hg0 hg1 |
| 303 | let w : FourTypes E := fun i => translate E (v i) g |
| 304 | have hw : ∀ i, (w i).val 1 = true := by |
| 305 | intro i |
| 306 | fin_cases i |
| 307 | · change (v 0).val (1 * g) = true |
| 308 | simpa only [one_mul] using hg0 |
| 309 | · change (v 1).val (1 * g) = true |
| 310 | simpa only [one_mul] using hg1 |
| 311 | · change (v 2).val (1 * g) = true |
| 312 | simpa only [one_mul] using hg2 |
| 313 | · change (v 3).val (1 * g) = true |
| 314 | simpa only [one_mul] using hg3 |
| 315 | obtain ⟨reps, hrep1, hreppair, hrepcard⟩ := |
| 316 | positive_representatives E s hdegree (w 0) (hw 0) |
| 317 | have hlabels : (fun i => switchLabels E i * g) = |
| 318 | (fun i => g * switchLabels E i) := by |
| 319 | funext i |
| 320 | dsimp [switchLabels] |
| 321 | split |
| 322 | · simp |
| 323 | · exact (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation_commute E g).eq |
| 324 | have hequiv : A₄ w (switchLabels E) ↔ A₄ v (switchLabels E) := by |
| 325 | constructor |
| 326 | · intro h |
| 327 | have ht := htransfer w v (switchLabels E) |
| 328 | (fun i => switchLabels E i * g) (fun _ => (g⁻¹).toLinearMap) |
| 329 | (fun i => translate_isHodgeMap E (v i) g) |
| 330 | (fun i => embeddingGenerator_transport E g (switchLabels E i)) h |
| 331 | rw [hlabels] at ht |
| 332 | exact (hscalar v (switchLabels E) g).mp ht |
| 333 | · intro h |
| 334 | have ht := (hscalar v (switchLabels E) g).mpr h |
| 335 | rw [← hlabels] at ht |
| 336 | apply htransfer v w (fun i => switchLabels E i * g) |
| 337 | (switchLabels E) (fun _ => g.toLinearMap) |
| 338 | (fun i => translate_inverse_isHodgeMap E (v i) g) _ ht |
| 339 | intro i |
| 340 | simpa only [inv_inv, mul_inv_cancel_right] using |
| 341 | embeddingGenerator_transport E g⁻¹ (switchLabels E i * g) |
| 342 | refine ⟨g, w, (fun i τ => (w i).val τ⁻¹), reps, |
| 343 | (fun _ _ => rfl), hw, (fun τ => hbalance (τ * g)), |
| 344 | (fun i => translate_isHodgeMap E (v i) g), |
| 345 | embeddingGenerator_transport E g, (fun _ _ => rfl), ?_, |
| 346 | hrep1, hreppair, hrepcard, hequiv, ?_⟩ |
| 347 | · intro i τ |
| 348 | change (w i).val (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ)⁻¹ = !(w i).val τ⁻¹ |
| 349 | rw [mul_inv_rev, conj_inv, sign_right_conj] |
| 350 | · by_cases hs : s = 1 |
| 351 | · left |
| 352 | refine ⟨hs, hequiv.mp ?_⟩ |
| 353 | have hsame (i j : Fin 4) (τ : G E) : (w i).val τ = (w j).val τ := by |
| 354 | rcases group_eq_one_or_conj E reps hrep1 hreppair (hrepcard.trans hs) τ with |
| 355 | ht | ht |
| 356 | · rw [ht, hw i, hw j] |
| 357 | · subst τ |
| 358 | have hi := (w i).property 1 |
| 359 | have hj := (w j).property 1 |
| 360 | simp only [mul_one, hw i, hw j] at hi hj |
| 361 | exact hi.trans hj.symm |
| 362 | apply hproduct w (switchLabels E) (Equiv.swap (1 : Fin 4) 2) |
| 363 | · change A₂ (w 0) (w 2) 1 (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E) |
| 364 | apply h11 |
| 365 | intro σ |
| 366 | rw [mul_one, sign_right_conj, ComplexMultiplication.SignSwitch.CM.signValue_not, hsame 2 0 σ, add_neg_cancel] |
| 367 | · change A₂ (w 1) (w 3) 1 (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E) |
| 368 | apply h11 |
| 369 | intro σ |
| 370 | rw [mul_one, sign_right_conj, ComplexMultiplication.SignSwitch.CM.signValue_not, hsame 3 1 σ, add_neg_cancel] |
| 371 | · right |
| 372 | have hc : 0 < reps.card := Finset.card_pos.mpr ⟨1, hrep1⟩ |
| 373 | omega |
| 374 | · left |
| 375 | have hopp (τ : G E) : |
| 376 | (v 1).val τ = !((v 0).val τ) ∧ |
| 377 | (v 3).val τ = !((v 2).val τ) := by |
| 378 | have h01 := no_common_positive_opposite E (v 0) (v 1) hpos τ |
| 379 | have hz := (sign_pair_zero_iff ((v 0).val τ) ((v 1).val τ)).mpr h01 |
| 380 | exact ⟨h01, (sign_pair_zero_iff _ _).mp ((hbalance τ).symm.trans hz)⟩ |
| 381 | refine ⟨hpos, hopp, ?_⟩ |
| 382 | apply hproduct v (switchLabels E) (Equiv.refl (Fin 4)) |
| 383 | · change A₂ (v 0) (v 1) 1 1 |
| 384 | apply h11 |
| 385 | intro σ |
| 386 | simpa only [mul_one] using (sign_pair_zero_iff _ _).mpr (hopp σ).1 |
| 387 | · change A₂ (v 2) (v 3) (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E) (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E) |
| 388 | apply h11 |
| 389 | intro σ |
| 390 | exact (sign_pair_zero_iff _ _).mpr (hopp (σ * ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E)).2 |
| 391 | |
| 392 | end |
| 393 | |
| 394 | end OAI.AlgebraicGeometry.HodgeConjecture.LefschetzNormalization |