-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
87 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import Mathlib.NumberTheory.NumberField.Basic | ||
|
||
open scoped NumberField | ||
|
||
-- Mathlib PR #20544 | ||
theorem Rat.ringOfIntegersEquiv_eq_algebraMap (z : 𝓞 ℚ) : | ||
(Rat.ringOfIntegersEquiv z : ℚ) = algebraMap (𝓞 ℚ) ℚ z := by | ||
obtain ⟨z, rfl⟩ := Rat.ringOfIntegersEquiv.symm.surjective z | ||
simp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import Mathlib.RingTheory.DedekindDomain.AdicValuation | ||
|
||
open IsDedekindDomain | ||
|
||
-- mathlib PR #20523 | ||
namespace IsDedekindDomain.HeightOneSpectrum | ||
|
||
variable (R K : Type*) [CommRing R] [Field K] [IsDedekindDomain R] [Algebra R K] | ||
[IsFractionRing R K] in | ||
theorem mem_integers_of_valuation_le_one (x : K) | ||
(h : ∀ v : HeightOneSpectrum R, v.valuation x ≤ 1) : x ∈ (algebraMap R K).range := by | ||
obtain ⟨⟨n, d, hd⟩, hx⟩ := IsLocalization.surj (nonZeroDivisors R) x | ||
obtain rfl : x = IsLocalization.mk' K n ⟨d, hd⟩ := IsLocalization.eq_mk'_iff_mul_eq.mpr hx | ||
have hd0 := nonZeroDivisors.ne_zero hd | ||
obtain rfl | hn0 := eq_or_ne n 0 | ||
· simp | ||
suffices Ideal.span {d} ∣ (Ideal.span {n} : Ideal R) by | ||
obtain ⟨z, rfl⟩ := Ideal.span_singleton_le_span_singleton.1 (Ideal.le_of_dvd this) | ||
use z | ||
rw [map_mul, mul_comm,mul_eq_mul_left_iff] at hx | ||
cases' hx with h h | ||
· exact h.symm | ||
· simp [hd0] at h | ||
classical | ||
have ine : ∀ {r : R}, r ≠ 0 → Ideal.span {r} ≠ ⊥ := fun {r} ↦ mt Ideal.span_singleton_eq_bot.mp | ||
rw [← Associates.mk_le_mk_iff_dvd, ← Associates.factors_le, Associates.factors_mk _ (ine hn0), | ||
Associates.factors_mk _ (ine hd0), WithTop.coe_le_coe, Multiset.le_iff_count] | ||
rintro ⟨v, hv⟩ | ||
obtain ⟨v, rfl⟩ := Associates.mk_surjective v | ||
have hv' := hv | ||
rw [Associates.irreducible_mk, irreducible_iff_prime] at hv | ||
specialize h ⟨v, Ideal.isPrime_of_prime hv, hv.ne_zero⟩ | ||
simp_rw [valuation_of_mk', intValuation, ← Valuation.toFun_eq_coe, | ||
intValuationDef_if_neg _ hn0, intValuationDef_if_neg _ hd0, ← WithZero.coe_div, | ||
← WithZero.coe_one, WithZero.coe_le_coe, Associates.factors_mk _ (ine hn0), | ||
Associates.factors_mk _ (ine hd0), Associates.count_some hv'] at h | ||
simpa using h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
import Mathlib.NumberTheory.NumberField.Basic | ||
import Mathlib.Data.Complex.Basic | ||
|
||
class NumberField.IsTotallyReal (F : Type*) [Field F] [NumberField F] : Prop where | ||
namespace NumberField | ||
|
||
-- #20542 | ||
class IsTotallyReal (F : Type*) [Field F] [NumberField F] : Prop where | ||
isTotallyReal : ∀ τ : F →+* ℂ, ∀ f : F, ∃ r : ℝ, τ f = r | ||
|
||
instance : IsTotallyReal ℚ where | ||
isTotallyReal τ q := ⟨q, by simp⟩ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
leanprover/lean4:v4.15.0-rc1 | ||
leanprover/lean4:v4.15.0 |