Skip to content

Commit 8af997f

Browse files
committed
feat: ringOfIntegersEquiv_symm_coe (#31300)
This is upstreamed from the FLT project. Co-authored-by: bwangpj <70694994+bwangpj@users.noreply.github.com>
1 parent a118834 commit 8af997f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Mathlib/NumberTheory/NumberField/Basic.lean

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,11 +419,15 @@ noncomputable def ringOfIntegersEquiv : 𝓞 ℚ ≃+* ℤ :=
419419
RingOfIntegers.equiv ℤ
420420

421421
@[simp]
422-
theorem coe_ringOfIntegersEquiv (z : 𝓞 ℚ) :
422+
theorem ringOfIntegersEquiv_apply_coe (z : 𝓞 ℚ) :
423423
(Rat.ringOfIntegersEquiv z : ℚ) = algebraMap (𝓞 ℚ) ℚ z := by
424424
obtain ⟨z, rfl⟩ := Rat.ringOfIntegersEquiv.symm.surjective z
425425
simp
426426

427+
theorem ringOfIntegersEquiv_symm_apply_coe (x : ℤ) :
428+
(ringOfIntegersEquiv.symm x : ℚ) = ↑x :=
429+
eq_intCast ringOfIntegersEquiv.symm _ ▸ rfl
430+
427431
end Rat
428432

429433
namespace AdjoinRoot

0 commit comments

Comments
 (0)