Function World
Level 2 #
Given a function f : A → B and an element a : A, there is an element f a : B obtained by evaluating the function f at a.
Equations
- RTPNotes.Worlds.Function.level2 a f = f a
Instances For
Level 3 #
Given a function f : A → B and an element a : A, there is an element f a : B obtained by evaluating the function f at a.
Equations
- RTPNotes.Worlds.Function.level3 a f = f a
Instances For
Level 4 #
Given functions g : B → C and f : A → B, define the composite function g ∘ f : A → C that sends x : A to g (f x).
Equations
- RTPNotes.Worlds.Function.level4 g f x = g (f x)
Instances For
Level 5 #
For any types A and B and element a : A, there is a constant function const a : B → A that sends any x : B to the element a : A.
Equations
- RTPNotes.Worlds.Function.level5 a x✝ = a
Instances For
Level 6 #
Given an element a : A and a function of two variables f : A → B → C, define a function from B → C by evaluating the first variable of f at the element a.
Equations
- RTPNotes.Worlds.Function.level6 a f = f a
Instances For
Level 7 #
From a function of two variables, define another function of two variables, where the inputs are swapped.
Equations
- RTPNotes.Worlds.Function.level7 f b a = f a b
Instances For
Level 8 #
Define the composition of two functions as a multivariable function between function types.
Equations
- RTPNotes.Worlds.Function.level8 f g a = f (g a)
Instances For
Level 9 #
Define the evaluation function that takes a : A and f : A → B to f a : B.
Equations
- RTPNotes.Worlds.Function.level9 a f = f a
Instances For
Level 10 #
Given a function of type ((((V → F) → F) → F) → F) there is a canonically defined function of type (V → F) → F.
Equations
- RTPNotes.Worlds.Function.level10 f g = f fun (h : (V → F) → F) => h g