The areas / V01. The language of Mathlib
Mathlib.Logic.Function.Conjugate
31 declarations. Mathlib docs · Source
Semiconjugate and commuting maps
We define the following predicates:
Function.Semiconj:f : α → βsemiconjugatesga : α → αtogb : β → βiff ∘ ga = gb ∘ f;Function.Semiconj₂:f : α → βsemiconjugates a binary operationga : α → α → αtogb : β → β → βiff (ga x y) = gb (f x) (f y);Function.Commute:f : α → αcommutes withg : α → αiff ∘ g = g ∘ f, or equivalentlySemiconj f g g.
def Function.Semiconj E1 #
{α : Type u_1} → {β : Type u_2} → (α → β) → (α → α) → (β → β) → Prop
We say that f : α → β semiconjugates ga : α → α to gb : β → β if f ∘ ga = gb ∘ f.
We use ∀ x, f (ga x) = gb (f x) as the definition, so given h : Function.Semiconj f ga gb and
a : α, we have h a : f (ga a) = gb (f a) and h.comp_eq : f ∘ ga = gb ∘ f.
theorem Function.semiconj_iff_comp_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {ga : α → α} {gb : β → β}, Function.Semiconj f ga gb ↔ f ∘ ga = gb ∘ f
Definition of Function.Semiconj in terms of functional equality.
theorem Function.Semiconj.comp_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {ga : α → α} {gb : β → β}, Function.Semiconj f ga gb → f ∘ ga = gb ∘ f
Alias of the forward direction of Function.semiconj_iff_comp_eq.
Definition of Function.Semiconj in terms of functional equality.
theorem Function.Semiconj.eq E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {ga : α → α} {gb : β → β},
Function.Semiconj f ga gb → ∀ (x : α), f (ga x) = gb (f x)
theorem Function.Semiconj.comp_right E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {ga ga' : α → α} {gb gb' : β → β},
Function.Semiconj f ga gb → Function.Semiconj f ga' gb' → Function.Semiconj f (ga ∘ ga') (gb ∘ gb')
If f semiconjugates ga to gb and ga' to gb',
then it semiconjugates ga ∘ ga' to gb ∘ gb'.
theorem Function.Semiconj.trans E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {fab : α → β} {fbc : β → γ} {ga : α → α} {gb : β → β} {gc : γ → γ},
Function.Semiconj fab ga gb → Function.Semiconj fbc gb gc → Function.Semiconj (fbc ∘ fab) ga gc
If fab : α → β semiconjugates ga to gb and fbc : β → γ semiconjugates gb to gc,
then fbc ∘ fab semiconjugates ga to gc.
See also Function.Semiconj.comp_left for a version with reversed arguments.
theorem Function.Semiconj.comp_left E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {fab : α → β} {fbc : β → γ} {ga : α → α} {gb : β → β} {gc : γ → γ},
Function.Semiconj fbc gb gc → Function.Semiconj fab ga gb → Function.Semiconj (fbc ∘ fab) ga gc
If fbc : β → γ semiconjugates gb to gc and fab : α → β semiconjugates ga to gb,
then fbc ∘ fab semiconjugates ga to gc.
See also Function.Semiconj.trans for a version with reversed arguments.
Backward compatibility note: before 2024-01-13,
this lemma used to have the same order of arguments that Function.Semiconj.trans has now.
theorem Function.Semiconj.id_right E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β}, Function.Semiconj f id id
Any function semiconjugates the identity function to the identity function.
theorem Function.Semiconj.id_left E2 #
∀ {α : Type u_1} {ga : α → α}, Function.Semiconj id ga ga
The identity function semiconjugates any function to itself.
theorem Function.Semiconj.inverses_right E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {ga ga' : α → α} {gb gb' : β → β},
Function.Semiconj f ga gb → Function.RightInverse ga' ga → Function.LeftInverse gb' gb → Function.Semiconj f ga' gb'
If f : α → β semiconjugates ga : α → α to gb : β → β,
ga' is a right inverse of ga, and gb' is a left inverse of gb,
then f semiconjugates ga' to gb' as well.
theorem Function.Semiconj.inverse_left E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {ga : α → α} {gb : β → β} {f' : β → α},
Function.Semiconj f ga gb → Function.LeftInverse f' f → Function.RightInverse f' f → Function.Semiconj f' gb ga
If f semiconjugates ga to gb and f' is both a left and a right inverse of f,
then f' semiconjugates gb to ga.
theorem Function.Semiconj.option_map E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {ga : α → α} {gb : β → β},
Function.Semiconj f ga gb → Function.Semiconj (Option.map f) (Option.map ga) (Option.map gb)
If f : α → β semiconjugates ga : α → α to gb : β → β,
then Option.map f semiconjugates Option.map ga to Option.map gb.
def Function.Commute E1 #
{α : Type u_1} → (α → α) → (α → α) → Prop
Two maps f g : α → α commute if f (g x) = g (f x) for all x : α.
Given h : Function.commute f g and a : α, we have h a : f (g a) = g (f a) and
h.comp_eq : f ∘ g = g ∘ f.
theorem Function.Semiconj.commute E1 #
∀ {α : Type u_1} {f g : α → α}, Function.Semiconj f g g → Function.Commute f g
Reinterpret Function.Semiconj f g g as Function.Commute f g. These two predicates are
definitionally equal but have different dot-notation lemmas.
theorem Function.Commute.semiconj E1 #
∀ {α : Type u_1} {f g : α → α}, Function.Commute f g → Function.Semiconj f g g
Reinterpret Function.Commute f g as Function.Semiconj f g g. These two predicates are
definitionally equal but have different dot-notation lemmas.
theorem Function.Commute.refl E1 #
∀ {α : Type u_1} (f : α → α), Function.Commute f f
theorem Function.Commute.symm E1 #
∀ {α : Type u_1} {f g : α → α}, Function.Commute f g → Function.Commute g f
theorem Function.Commute.comp_right E1 #
∀ {α : Type u_1} {f g g' : α → α}, Function.Commute f g → Function.Commute f g' → Function.Commute f (g ∘ g')
If f commutes with g and g', then it commutes with g ∘ g'.
theorem Function.Commute.comp_left E1 #
∀ {α : Type u_1} {f f' g : α → α}, Function.Commute f g → Function.Commute f' g → Function.Commute (f ∘ f') g
If f and f' commute with g, then f ∘ f' commutes with g as well.
theorem Function.Commute.id_right E1 #
∀ {α : Type u_1} {f : α → α}, Function.Commute f id
Any self-map commutes with the identity map.
theorem Function.Commute.id_left E2 #
∀ {α : Type u_1} {f : α → α}, Function.Commute id f
The identity map commutes with any self-map.
theorem Function.Commute.option_map E1 #
∀ {α : Type u_1} {f g : α → α}, Function.Commute f g → Function.Commute (Option.map f) (Option.map g)
If f commutes with g, then Option.map f commutes with Option.map g.
def Function.Semiconj₂ E1 #
{α : Type u_1} → {β : Type u_2} → (α → β) → (α → α → α) → (β → β → β) → Prop
A map f semiconjugates a binary operation ga to a binary operation gb if
for all x, y we have f (ga x y) = gb (f x) (f y). E.g., a MonoidHom
semiconjugates (*) to (*).
theorem Function.Semiconj₂.eq E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {ga : α → α → α} {gb : β → β → β},
Function.Semiconj₂ f ga gb → ∀ (x y : α), f (ga x y) = gb (f x) (f y)
theorem Function.Semiconj₂.comp_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {ga : α → α → α} {gb : β → β → β},
Function.Semiconj₂ f ga gb → Function.bicompr f ga = Function.bicompl gb f f
theorem Function.Semiconj₂.id_left E1 #
∀ {α : Type u_1} (op : α → α → α), Function.Semiconj₂ id op op
theorem Function.Semiconj₂.comp E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → β} {ga : α → α → α} {gb : β → β → β} {f' : β → γ}
{gc : γ → γ → γ}, Function.Semiconj₂ f' gb gc → Function.Semiconj₂ f ga gb → Function.Semiconj₂ (f' ∘ f) ga gc
theorem Function.Semiconj₂.isAssociative_right E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {ga : α → α → α} {gb : β → β → β} [Std.Associative ga],
Function.Semiconj₂ f ga gb → Function.Surjective f → Std.Associative gb
theorem Function.Semiconj₂.isAssociative_left E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {ga : α → α → α} {gb : β → β → β} [Std.Associative gb],
Function.Semiconj₂ f ga gb → Function.Injective f → Std.Associative ga
theorem Function.Semiconj₂.isIdempotent_right E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {ga : α → α → α} {gb : β → β → β} [Std.IdempotentOp ga],
Function.Semiconj₂ f ga gb → Function.Surjective f → Std.IdempotentOp gb
theorem Function.Semiconj₂.isIdempotent_left E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → β} {ga : α → α → α} {gb : β → β → β} [Std.IdempotentOp gb],
Function.Semiconj₂ f ga gb → Function.Injective f → Std.IdempotentOp ga