Skip to content

Commit fd3512c

Browse files
feat(FieldTheory/IntermediateField/Basic): Add missing coe_div and attributes (leanprover-community#36123)
Adding simp and norm_cast attributes, since the `Subfield` versions has them.
1 parent 25075fe commit fd3512c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Mathlib/FieldTheory/IntermediateField/Basic.lean

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,24 +221,35 @@ protected theorem zsmul_mem {x : L} (hx : x ∈ S) (n : ℤ) : n • x ∈ S :=
221221
protected theorem intCast_mem (n : ℤ) : (n : L) ∈ S :=
222222
intCast_mem S n
223223

224+
@[simp, norm_cast]
224225
protected theorem coe_add (x y : S) : (↑(x + y) : L) = ↑x + ↑y :=
225226
rfl
226227

228+
@[simp, norm_cast]
227229
protected theorem coe_neg (x : S) : (↑(-x) : L) = -↑x :=
228230
rfl
229231

232+
@[simp, norm_cast]
230233
protected theorem coe_mul (x y : S) : (↑(x * y) : L) = ↑x * ↑y :=
231234
rfl
232235

236+
@[simp, norm_cast]
233237
protected theorem coe_inv (x : S) : (↑x⁻¹ : L) = (↑x)⁻¹ :=
234238
rfl
235239

240+
@[simp, norm_cast]
241+
protected theorem coe_div (x y : S) : (↑(x / y) : L) = ↑x / ↑y :=
242+
rfl
243+
244+
@[simp, norm_cast]
236245
protected theorem coe_zero : ((0 : S) : L) = 0 :=
237246
rfl
238247

248+
@[simp, norm_cast]
239249
protected theorem coe_one : ((1 : S) : L) = 1 :=
240250
rfl
241251

252+
@[simp, norm_cast]
242253
protected theorem coe_pow (x : S) (n : ℕ) : (↑(x ^ n : S) : L) = (x : L) ^ n :=
243254
SubmonoidClass.coe_pow x n
244255

0 commit comments

Comments
 (0)