Expanded elim docs
This commit is contained in:
parent
f353ad8991
commit
59226538d5
|
@ -96,11 +96,13 @@ For instance, Cur does not currently perform strict positivity checking.
|
||||||
((((conj Bool) Bool) true) false)]
|
((((conj Bool) Bool) true) false)]
|
||||||
}
|
}
|
||||||
|
|
||||||
@defform[(elim type motive-result-type)]{
|
@defform[(elim type motive-universe)]{
|
||||||
Returns the inductive eliminator for @racket[type] where the result type of the motive is
|
Returns the inductive eliminator for @racket[type] where the @racket[motive-universe] is the universe
|
||||||
@racket[motive-result-type]. The eliminator expects a motive, methods for each of the constructors of the
|
of the motive.
|
||||||
inductive type @racket[type], parameters @racket[p ...] for the inductive @racket[type], and finally a
|
The eliminator expects the next argument to be the motive, the next @racket[N] arguments to be the methods for
|
||||||
type of @racket[(type p ...)].
|
each of the @racket[N] constructors of the inductive type @racket[type], the next @racket[P] arguments
|
||||||
|
to be the parameters @racket[p_0 ... p_P] of the inductive @racket[type], and the final argument to be the term to
|
||||||
|
eliminate of type @racket[(type p_0 ... p_P)].
|
||||||
|
|
||||||
The following example runs @racket[(sub1 (s z))].
|
The following example runs @racket[(sub1 (s z))].
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user