Library Beroal.FunListArg
Functions with variable number of arguments
non-dependent type of a function with arbitrary number and types of arguments
Definition type (r : Type)
:= fix rec (args : list Type) : Type
:= match args with
| nil ⇒ r
| arg :: argss ⇒ arg → rec argss
end.
:= fix rec (args : list Type) : Type
:= match args with
| nil ⇒ r
| arg :: argss ⇒ arg → rec argss
end.
either:
- add ignored last argument;
- generalized axiom K of combinatory logic;
- weakening in sequent calculus.
either:
- add a copy of the last argument as the first argument;
- generalized axiom S of combinatory logic;
- contraction in sequent calculus.
move the last argument to the begining
pointwise operation