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 is called bijective if it is both injective and surjective.
Equations
Instances For
A point x is a fixed point of f : α → α if f x = x.
Equations
- Function.IsFixedPt f x = (f x = x)