Mathlib.Algebra.GroupWithZero.Range
44 declarations. Mathlib docs · Source
The range of a MonoidWithZeroHom
Given a MonoidWithZeroHom f : A → B whose codomain B is a MonoidWithZero, we define the
type MonoidWithZeroHom.valueMonoid as the submonoid of Bˣ generated by the invertible elements
in the range of f. For example, if A = ℕ, f is the natural cast to B where B is
ℝ≥0, thenMonoidWithZero.valueMonoidare the positive natural numbers inℝ≥0;WithZero ℤ, thenMonoidWithZero.valueMonoid = {1}.
MonoidWithZeroHom.ValueMonoid₀ is the MonoidWithZero obtained by
adjoining 0 to the previous type.
Likewise, MonoidWithZeroHom.valueGroup is the subgroup of Bˣ generated by the invertible
elements in range f and MonoidWithZeroHom.ValueGroup₀ adds a 0 to the previous group.
When B is commutative, then both MonoidWithZeroHom.valueGroup f and
MonoidWithZeroHom.ValueGroup₀ f are also commutative and the former can be described more
explicitly (see MonoidWithZeroHom.mem_valueGroup_iff_of_comm and mem_valueGroup_iff_of_comm').
Main declarations
valueMonoid fis the smallest submonoid ofBˣcontaining the range off;ValueMonoid₀ fis the smallest monoid with0containing the range off;valueGroup fis the smallest subgroup ofBˣcontaining the range off;ValueMonoid₀ fis the smallest group with0containing the range off;- When
Bis a group with zero, rather than merely a monoid with zero, the above definitions all coincide: seevalueMonoid_eq_valueGroupfor an equality as submonoids andvalueMonoid_eq_valueGroup'for an equality as subsets. - When
Bis a commutative group with zero,MonoidWithZeroHom.valueGroupcan be explicitly described as the elements that are ratios of terms inrange f, seeMonoidWithZeroHom.mem_valueGroup_iff_of_comm.
Implementation notes
MonoidWithZeroHom.valueMonoid is defined explicitly in terms of its carrier, by proving the
required properties; that it coincides with the submonoid generated by the closure is proven in
MonoidWithZeroHom.valueMonoid_eq_closure, but using the latter as definition yields to unwanted
unfolding.
theorem MonoidWithZeroHom.valueGroup.mk.congr_simp E1 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : CommGroupWithZero B] (f : A →*₀ B) (r r_1 : A)
(e_r : r = r_1) (s s_1 : A) (e_s : s = s_1) (hr : f r ≠ 0) (hs : f s ≠ 0),
MonoidWithZeroHom.valueGroup.mk f r s hr hs = MonoidWithZeroHom.valueGroup.mk f r_1 s_1 ⋯ ⋯
theorem MonoidWithZeroHom.mrange_nontrivial E1 #
∀ {G : Type u_1} {H : Type u_2} [inst : MulZeroOneClass G] [inst_1 : MulZeroOneClass H] [Nontrivial H] (f : G →*₀ H),
Nontrivial ↥(MonoidHom.mrange f)
theorem MonoidWithZeroHom.range_nontrivial E1 #
∀ {G : Type u_1} {H : Type u_2} [inst : MulZeroOneClass G] [inst_1 : MulZeroOneClass H] [Nontrivial H] (f : G →*₀ H),
(Set.range ⇑f).Nontrivial
def MonoidWithZeroHom.valueMonoid E1 #
{A : Type u_1} → {B : Type u_2} → [inst : MonoidWithZero A] → [inst_1 : MonoidWithZero B] → (A →*₀ B) → Submonoid Bˣ
For a morphism of monoids with zero f, this is a smallest submonoid of the invertible
elements in the codomain containing the range of f.
theorem MonoidWithZeroHom.one_mem_valueMonoid E1 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : MonoidWithZero B] (f : A →*₀ B), 1 ∈ f.valueMonoid
theorem MonoidWithZeroHom.coe_one E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : MonoidWithZero B] (f : A →*₀ B), ⟨1, ⋯⟩ = 1
theorem MonoidWithZeroHom.mem_valueMonoid_iff E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : MonoidWithZero B] (f : A →*₀ B) {b : Bˣ},
b ∈ f.valueMonoid ↔ b ∈ Units.val ⁻¹' Set.range ⇑f
theorem MonoidWithZeroHom.valueMonoid_eq_closure E1 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : MonoidWithZero B] (f : A →*₀ B),
f.valueMonoid = Submonoid.closure (Units.val ⁻¹' Set.range ⇑f)
def MonoidWithZeroHom.valueGroup E3 #
{A : Type u_1} → {B : Type u_2} → [inst : MonoidWithZero A] → [inst_1 : MonoidWithZero B] → (A →*₀ B) → Subgroup Bˣ
For a morphism of monoids with zero f, this is the smallest subgroup of the invertible
elements in the codomain containing the range of f.
theorem MonoidWithZeroHom.valueGroup_def E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : MonoidWithZero B] (f : A →*₀ B),
f.valueGroup = Subgroup.closure ↑f.valueMonoid
abbrev MonoidWithZeroHom.ValueMonoid₀ E1 #
{A : Type u_1} → {B : Type u_2} → [inst : MonoidWithZero A] → [inst_1 : MonoidWithZero B] → (A →*₀ B) → Type u_2
For a morphism of monoids with zero f, this is the smallest submonoid with zero of the
codomain containing the range of f.
abbrev MonoidWithZeroHom.ValueGroup₀ E1 #
{A : Type u_1} → {B : Type u_2} → [inst : MonoidWithZero A] → [inst_1 : MonoidWithZero B] → (A →*₀ B) → Type u_2
For a morphism of monoids with zero f, this is a smallest subgroup with zero of the
codomain containing the range of f.
theorem MonoidWithZeroHom.mem_valueMonoid E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : MonoidWithZero B] (f : A →*₀ B) {b : Bˣ},
↑b ∈ Set.range ⇑f → b ∈ f.valueMonoid
theorem MonoidWithZeroHom.mem_valueGroup E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : MonoidWithZero B] (f : A →*₀ B) {b : Bˣ},
↑b ∈ Set.range ⇑f → b ∈ f.valueGroup
theorem MonoidWithZeroHom.inv_mem_valueGroup E1 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : MonoidWithZero B] (f : A →*₀ B) {b : Bˣ},
↑b ∈ Set.range ⇑f → b⁻¹ ∈ f.valueGroup
def MonoidWithZeroHom.ValueGroup₀.embedding E1 #
{A : Type u_1} →
{B : Type u_2} → [inst : MonoidWithZero A] → [inst_1 : GroupWithZero B] → {f : A →*₀ B} → f.ValueGroup₀ →*₀ B
The inclusion of the subgroup with zero generated by the range of a monoid with zero
hom f : A →*₀ B into the codomain B.
theorem MonoidWithZeroHom.ValueGroup₀.embedding_apply E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : GroupWithZero B] {f : A →*₀ B} (a : f.ValueGroup₀),
MonoidWithZeroHom.ValueGroup₀.embedding a = WithZero.recZeroCoe 0 Units.val ((WithZero.map' f.valueGroup.subtype) a)
def MonoidWithZeroHom.ValueGroup₀.restrict₀ E1 #
{A : Type u_1} →
{B : Type u_2} → [inst : MonoidWithZero A] → [inst_1 : GroupWithZero B] → (f : A →*₀ B) → A →*₀ f.ValueGroup₀
This is the restriction of f as a function taking values in valueGroup₀ f.
theorem MonoidWithZeroHom.ValueGroup₀.restrict₀_apply E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : GroupWithZero B] (f : A →*₀ B) (a : A),
(MonoidWithZeroHom.ValueGroup₀.restrict₀ f) a = if h : f a = 0 then 0 else ↑⟨Units.mk0 (f a) h, ⋯⟩
theorem MonoidWithZeroHom.ValueGroup₀.embedding_injective E1 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : GroupWithZero B] {f : A →*₀ B},
Function.Injective ⇑MonoidWithZeroHom.ValueGroup₀.embedding
theorem MonoidWithZeroHom.ValueGroup₀.embedding_inj E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : GroupWithZero B] {f : A →*₀ B}
{a b : f.ValueGroup₀}, MonoidWithZeroHom.ValueGroup₀.embedding a = MonoidWithZeroHom.ValueGroup₀.embedding b ↔ a = b
theorem MonoidWithZeroHom.ValueGroup₀.restrict₀_of_ne_zero E1 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : GroupWithZero B] {f : A →*₀ B} {a : A}
(h : f a ≠ 0), (MonoidWithZeroHom.ValueGroup₀.restrict₀ f) a = ↑⟨Units.mk0 (f a) h, ⋯⟩
theorem MonoidWithZeroHom.ValueGroup₀.restrict₀_eq_zero_iff E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : GroupWithZero B] {f : A →*₀ B} {a : A},
(MonoidWithZeroHom.ValueGroup₀.restrict₀ f) a = 0 ↔ f a = 0
theorem MonoidWithZeroHom.ValueGroup₀.restrict₀_eq_one_iff E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : GroupWithZero B] {f : A →*₀ B} {a : A},
(MonoidWithZeroHom.ValueGroup₀.restrict₀ f) a = 1 ↔ f a = 1
theorem MonoidWithZeroHom.ValueGroup₀.embedding_restrict₀ E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : GroupWithZero B] {f : A →*₀ B} (a : A),
MonoidWithZeroHom.ValueGroup₀.embedding ((MonoidWithZeroHom.ValueGroup₀.restrict₀ f) a) = f a
theorem MonoidWithZeroHom.ValueGroup₀.restrict₀_inj E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : GroupWithZero B] {f : A →*₀ B} {a b : A},
(MonoidWithZeroHom.ValueGroup₀.restrict₀ f) a = (MonoidWithZeroHom.ValueGroup₀.restrict₀ f) b ↔ f a = f b
theorem MonoidWithZeroHom.valueMonoid_eq_valueGroup E3 #
∀ {A : Type u_1} {B : Type u_2} [inst : GroupWithZero A] [inst_1 : GroupWithZero B] {f : A →*₀ B},
f.valueMonoid = f.valueGroup.toSubmonoid
When the domain is itself a group with zero, the valueMonoid and the valueGroup coincide.
theorem MonoidWithZeroHom.valueMonoid_eq_valueGroup' E3 #
∀ {A : Type u_1} {B : Type u_2} [inst : GroupWithZero A] [inst_1 : GroupWithZero B] (f : A →*₀ B),
↑f.valueMonoid = ↑f.valueGroup
theorem MonoidWithZeroHom.valueGroup_eq_range E1 #
∀ {A : Type u_1} {B : Type u_2} [inst : GroupWithZero A] [inst_1 : GroupWithZero B] (f : A →*₀ B),
Units.val '' ↑f.valueGroup = Set.range ⇑f \ {0}
theorem MonoidWithZeroHom.ValueGroup₀.restrict₀_range_eq_top E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : GroupWithZero A] [inst_1 : GroupWithZero B] (f : A →*₀ B),
Set.range ⇑(MonoidWithZeroHom.ValueGroup₀.restrict₀ f) = ⊤
theorem MonoidWithZeroHom.ValueGroup₀.restrict₀_surjective E1 #
∀ {A : Type u_1} {B : Type u_2} [inst : GroupWithZero A] [inst_1 : GroupWithZero B] (f : A →*₀ B),
Function.Surjective ⇑(MonoidWithZeroHom.ValueGroup₀.restrict₀ f)
theorem MonoidWithZeroHom.mem_valueGroup_iff_of_comm E3 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : CommGroupWithZero B] (f : A →*₀ B) {y : Bˣ},
y ∈ f.valueGroup ↔ ∃ a, f a ≠ 0 ∧ ∃ x, f a * ↑y = f x
See also mem_valueGroup_iff_of_comm' for a version proving that f x ≠ 0.
theorem MonoidWithZeroHom.mem_valueGroup_iff_of_comm' E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : CommGroupWithZero B] (f : A →*₀ B) {y : Bˣ},
y ∈ f.valueGroup ↔ ∃ a, f a ≠ 0 ∧ ∃ x, f x ≠ 0 ∧ f a * ↑y = f x
def MonoidWithZeroHom.valueGroup.mk E1 #
{A : Type u_1} →
{B : Type u_2} →
[inst : MonoidWithZero A] →
[inst_1 : CommGroupWithZero B] → (f : A →*₀ B) → (r s : A) → f r ≠ 0 → f s ≠ 0 → ↥f.valueGroup
The map sending a pair of nonzero r s : A to the element (v r)⁻¹ * (v s)
of ValueGroup₀ v.
theorem MonoidWithZeroHom.valueGroup.mk_inj E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : CommGroupWithZero B] (f : A →*₀ B) {r₁ s₁ r₂ s₂ : A}
{hr₁ : f r₁ ≠ 0} {hs₁ : f s₁ ≠ 0} {hr₂ : f r₂ ≠ 0} {hs₂ : f s₂ ≠ 0},
MonoidWithZeroHom.valueGroup.mk f r₁ s₁ hr₁ hs₁ = MonoidWithZeroHom.valueGroup.mk f r₂ s₂ hr₂ hs₂ ↔
f (r₁ * s₂) = f (r₂ * s₁)
theorem MonoidWithZeroHom.valueGroup.mk_mul E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : CommGroupWithZero B] (f : A →*₀ B) {r₁ s₁ r₂ s₂ : A}
{hr₁ : f r₁ ≠ 0} {hs₁ : f s₁ ≠ 0} {hr₂ : f r₂ ≠ 0} {hs₂ : f s₂ ≠ 0},
MonoidWithZeroHom.valueGroup.mk f r₁ s₁ hr₁ hs₁ * MonoidWithZeroHom.valueGroup.mk f r₂ s₂ hr₂ hs₂ =
MonoidWithZeroHom.valueGroup.mk f (r₁ * r₂) (s₁ * s₂) ⋯ ⋯
theorem MonoidWithZeroHom.valueGroup.mk_eq_div E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : CommGroupWithZero B] (f : A →*₀ B) {r s : A}
(hr : f r ≠ 0) (hs : f s ≠ 0), ↑↑(MonoidWithZeroHom.valueGroup.mk f r s hr hs) = f s / f r
theorem MonoidWithZeroHom.valueGroup.exists_mk E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : CommGroupWithZero B] (f : A →*₀ B)
(x : ↥f.valueGroup), ∃ r s, ∃ (hr : f r ≠ 0) (hs : f s ≠ 0), x = MonoidWithZeroHom.valueGroup.mk f r s hr hs
theorem MonoidWithZeroHom.mem_valueGroup_iff_exists_mk_of_comm E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : CommGroupWithZero B] (f : A →*₀ B) {y : Bˣ},
y ∈ f.valueGroup ↔ ∃ r s, ∃ (hr : f r ≠ 0) (hs : f s ≠ 0), y = ↑(MonoidWithZeroHom.valueGroup.mk f r s hr hs)
def MonoidWithZeroHom.ValueGroup₀.mk E1 #
{A : Type u_1} →
{B : Type u_2} →
[inst : MonoidWithZero A] →
[inst_1 : CommGroupWithZero B] → (f : A →*₀ B) → [DecidablePred fun b ↦ b = 0] → A → A → f.ValueGroup₀
The map sending a pair of nonzero r s : A to the element (v r)⁻¹ * (v s)
of ValueGroup₀ v.
theorem MonoidWithZeroHom.ValueGroup₀.mk_eq_of_ne_zero E1 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : CommGroupWithZero B] (f : A →*₀ B)
[inst_2 : DecidablePred fun b ↦ b = 0] (r s : A) (hr : f r ≠ 0) (hs : f s ≠ 0),
MonoidWithZeroHom.ValueGroup₀.mk f r s = ↑(MonoidWithZeroHom.valueGroup.mk f r s hr hs)
theorem MonoidWithZeroHom.ValueGroup₀.zero_or_exists_mk E0 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : CommGroupWithZero B] (f : A →*₀ B)
(x : f.ValueGroup₀),
x = 0 ∨ ∃ r s, ∃ (hr : f r ≠ 0) (hs : f s ≠ 0), x = ↑(MonoidWithZeroHom.valueGroup.mk f r s hr hs)
theorem MonoidWithZeroHom.ValueGroup₀.zero_or_exists_mk' E1 #
∀ {A : Type u_1} {B : Type u_2} [inst : MonoidWithZero A] [inst_1 : CommGroupWithZero B] (f : A →*₀ B)
(x : f.ValueGroup₀), x = 0 ∨ ∃ d, x = ↑(MonoidWithZeroHom.valueGroup.mk f (↑d).1 (↑d).2 ⋯ ⋯)
instance MonoidWithZeroHom.instCommGroupWithZeroValueGroup₀ E0 #
{A : Type u_1} →
{B : Type u_2} →
[inst : MonoidWithZero A] → [inst_1 : CommGroupWithZero B] → (f : A →*₀ B) → CommGroupWithZero f.ValueGroup₀