We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following definition of sub-to-zero with an abstraction my-add1 over constructor add1 can not pass termination-check:
sub-to-zero
my-add1
add1
(data Nat () () [zero () Nat] [add1 ([prev Nat]) Nat]) (fn my-add1 (-> Nat Nat) [(x) (add1 x)]) (fn sub-to-zero (-> Nat Nat) [((zero)) zero] [((add1 (zero))) zero] [((add1 (add1 x))) (sub-to-zero (my-add1 x))])
test: https://github.com/cicada-lang/mugda/blob/master/tests/termination/sub-to-zero-indirect-add1.error.mu
The text was updated successfully, but these errors were encountered:
We need to compare with Coq and Agda to see should this work or not.
Sorry, something went wrong.
Maybe we can solve this by
Value
Pattern
Exp
No branches or pull requests
The following definition of
sub-to-zero
with an abstraction
my-add1
over constructoradd1
can not pass termination-check:
test: https://github.com/cicada-lang/mugda/blob/master/tests/termination/sub-to-zero-indirect-add1.error.mu
The text was updated successfully, but these errors were encountered: