@@ -48,6 +48,7 @@ theorem IsPrimitiveRoot.unit'_coe : IsPrimitiveRoot hζ.unit'.1 p := by
4848 rw [← this] at z1
4949 exact z1.of_map_of_injective (IsFractionRing.injective _ _)
5050
51+ set_option backward.isDefEq.respectTransparency false in
5152theorem eq_one_mod_one_sub {A : Type *} [CommRing A] {t : A} :
5253 algebraMap A (A ⧸ Ideal.span ({t - 1 } : Set A)) t = 1 :=
5354 by
@@ -56,13 +57,15 @@ theorem eq_one_mod_one_sub {A : Type*} [CommRing A] {t : A} :
5657 apply Ideal.subset_span
5758 exact Set.mem_singleton _
5859
60+ set_option backward.isDefEq.respectTransparency false in
5961theorem IsPrimitiveRoot.eq_one_mod_sub_of_pow {A : Type *} [CommRing A] [IsDomain A] {ζ : A}
6062 (hζ : IsPrimitiveRoot ζ p) {μ : A} (hμ : μ ^ p = 1 ) :
6163 (@DFunLike.coe _ A (fun _ => A ⧸ Ideal.span {ζ - 1 }) _
6264 (algebraMap A (A ⧸ Ideal.span {ζ - 1 })) μ) = 1 := by
6365 obtain ⟨k, -, rfl⟩ := hζ.eq_pow_of_pow_eq_one hμ
6466 rw [map_pow, eq_one_mod_one_sub, one_pow]
6567
68+ set_option backward.isDefEq.respectTransparency false in
6669theorem aux {t} {l : 𝓞 K} {f : Fin t → ℤ} {μ : K} (hμ : IsPrimitiveRoot μ p)
6770 (h : ∑ x : Fin t, f x • (⟨μ, hμ.isIntegral (NeZero.pos p)⟩ : 𝓞 K) ^ (x : ℕ) = l) :
6871 algebraMap (𝓞 K) (𝓞 K ⧸ I) l = ∑ x : Fin t, (f x : 𝓞 K ⧸ I) := by
@@ -92,6 +95,7 @@ theorem IsPrimitiveRoot.p_mem_one_sub_zeta [hp : Fact p.Prime] : (p : 𝓞 K)
9295
9396variable [IsCyclotomicExtension {p} ℚ K]
9497
98+ set_option backward.isDefEq.respectTransparency false in
9599theorem roots_of_unity_in_cyclo_aux {x : K} {l : ℕ} (hl : l ≠ 0 ) (hx : IsIntegral ℤ x)
96100 (hhl : (cyclotomic l (𝓞 K)).IsRoot ⟨x, hx⟩) {ζ : K} (hζ : IsPrimitiveRoot ζ p) : l ∣ 2 * p := by
97101 by_contra h
@@ -136,7 +140,7 @@ theorem roots_of_unity_in_cyclo_aux {x : K} {l : ℕ} (hl : l ≠ 0) (hx : IsInt
136140 simp_rw [pdivlcm_h] at this
137141 apply absurd this h
138142
139- --do more generally
143+ set_option backward.isDefEq.respectTransparency false in
140144theorem roots_of_unity_in_cyclo (hpo : Odd p) (x : K)
141145 (h : ∃ (n : ℕ) (_ : 0 < n), x ^ n = 1 ) :
142146 ∃ (m k : ℕ), x = (-1 ) ^ k * (hζ.unit'.1 : K) ^ m := by
@@ -228,6 +232,7 @@ theorem IsCyclotomicExtension.IsCMField (hp : 2 < p) :
228232 haveI := nrRealPlaces_eq_zero_iff.1 (Rat.nrRealPlaces_eq_zero K hp)
229233 ⟨⟩
230234
235+ set_option backward.isDefEq.respectTransparency false in
231236lemma unit_inv_conj_not_neg_zeta_runity_aux (u : (𝓞 K)ˣ) [Fact (p.Prime)] (hp : 2 < p) :
232237 haveI := IsCyclotomicExtension.IsCMField K hp
233238 algebraMap (𝓞 K) (𝓞 K ⧸ I) (unitsMulComplexConjInv K u).1 = 1 := by
@@ -272,6 +277,7 @@ lemma unit_inv_conj_not_neg_zeta_runity_aux (u : (𝓞 K)ˣ) [Fact (p.Prime)] (h
272277 rw [this a]
273278 exact (aux hζ hζ hu).trans (aux hζ hζ.inv hu').symm
274279
280+ set_option backward.isDefEq.respectTransparency false in
275281theorem unit_inv_conj_not_neg_zeta_runity (u : (𝓞 K)ˣ) (n : ℕ) [Fact (p.Prime)] (hp : 2 < p) :
276282 haveI := IsCyclotomicExtension.IsCMField K hp
277283 u * (unitsComplexConj K u)⁻¹ ≠ -hζ.unit' ^ n := by
@@ -316,6 +322,7 @@ theorem unit_inv_conj_is_root_of_unity (u : (𝓞 K)ˣ) [H : Fact (p.Prime)] (hp
316322 · exact NumberField.RingOfIntegers.isIntegral_coe _
317323 · simp
318324
325+ set_option backward.isDefEq.respectTransparency false in
319326lemma IsPrimitiveRoot.eq_one_mod_one_sub' {A : Type *} [CommRing A] [IsDomain A]
320327 {n : ℕ} [NeZero n] {ζ : A} (hζ : IsPrimitiveRoot ζ n) {η : A} (hη : η ∈ nthRootsFinset n 1 ) :
321328 Ideal.Quotient.mk (Ideal.span ({ζ - 1 } : Set A)) η = 1 := by
0 commit comments