Created
March 5, 2018 20:04
-
-
Save jad-hamza/25b8f1bd13329bac314d601742cdba7d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: Abstracting over the term "b" leads to a term | |
fun b0 : bool => | |
(i >? 0) = b0 -> | |
(if b0 as res0 return (res0 = b0 -> bool) | |
then fun H : true = b0 => f (i - 1) (h_obligation_1 i H) | |
else fun _ : false = b0 => false) eq_refl = true -> | |
(i + 1 >? 0) = true | |
which is ill-typed. | |
Reason is: Illegal application: | |
The term "h_obligation_1" of type | |
"forall i : Z, true = (i >? 0) -> (i - 1 >=? 0) = true" | |
cannot be applied to the terms | |
"i" : "Z" | |
"H" : "true = b0" | |
The 2nd term has type "true = b0" which should be coercible to | |
"true = (i >? 0)". |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment