General operations on functions #
Composition of dependent functions: (f ∘' g) x = f (g x), where type of g x depends on x
and type of f (g x) depends on x and g x.
Instances For
Composition of dependent functions: (f ∘' g) x = f (g x), where type of g x depends on x
and type of f (g x) depends on x and g x.
Equations
- Function.«term_∘'_» = Lean.ParserDescr.trailingNode `Function.«term_∘'_» 80 81 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol " ∘' ") (Lean.ParserDescr.cat `term 80))
Instances For
Given functions f : β → β → φ and g : α → β, produce a function α → α → φ that evaluates
g on each argument, then applies f to the results. Can be used, e.g., to transfer a relation
from β to α.
Equations
- Function.onFun f g x y = f (g x) (g y)
Instances For
Given functions f : β → β → φ and g : α → β, produce a function α → α → φ that evaluates
g on each argument, then applies f to the results. Can be used, e.g., to transfer a relation
from β to α.
Equations
- Function.term_On_ = Lean.ParserDescr.trailingNode `Function.term_On_ 2 2 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol " on ") (Lean.ParserDescr.cat `term 3))
Instances For
For a two-argument function f, swap f is the same function but taking the arguments
in the reverse order. swap f y x = f x y.
Equations
- Function.swap f y x = f x y
Instances For
A function f : α → β is called injective if f x = f y implies x = y.
Equations
- Function.Injective f = ∀ ⦃a₁ a₂ : α⦄, f a₁ = f a₂ → a₁ = a₂
Instances For
A function is called bijective if it is both injective and surjective.
Equations
Instances For
LeftInverse g f means that g is a left inverse to f. That is, g ∘ f = id.
Equations
- Function.LeftInverse g f = ∀ (x : α), g (f x) = x
Instances For
HasLeftInverse f means that f has an unspecified left inverse.
Equations
- Function.HasLeftInverse f = ∃ (finv : β → α), Function.LeftInverse finv f
Instances For
HasRightInverse f means that f has an unspecified right inverse.
Equations
- Function.HasRightInverse f = ∃ (finv : β → α), Function.RightInverse finv f
Instances For
A point x is a fixed point of f : α → α if f x = x.
Equations
- Function.IsFixedPt f x = (f x = x)