Skip to content

Commit 8421da8

Browse files
committed
feat(NumberTheory/NumberField/Basic): ringOfIntegersEquiv API (#20544)
Andrew Yang's proof that the obvious triangle to `ℚ` commutes.
1 parent c8899bb commit 8421da8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Mathlib/NumberTheory/NumberField/Basic.lean

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,12 @@ instance numberField : NumberField ℚ where
393393
noncomputable def ringOfIntegersEquiv : 𝓞 ℚ ≃+* ℤ :=
394394
RingOfIntegers.equiv ℤ
395395

396+
@[simp]
397+
theorem coe_ringOfIntegersEquiv (z : 𝓞 ℚ) :
398+
(Rat.ringOfIntegersEquiv z : ℚ) = algebraMap (𝓞 ℚ) ℚ z := by
399+
obtain ⟨z, rfl⟩ := Rat.ringOfIntegersEquiv.symm.surjective z
400+
simp
401+
396402
end Rat
397403

398404
namespace AdjoinRoot

0 commit comments

Comments
 (0)