-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
collapse unreachable cases to whatever
now, when Kind can detect that a case is definitely unreachable, you can fill it with whatever (any value). example: IsTrue : ∀(b: B/Bool) * = λb #[b]{ #Indeed{} : (IsTrue #True) } Main : ∀(x: B/Bool) ∀(t: (IsTrue x)) B/Bool = λ{ #True: λ{ #Indeed: #True{} } #False: λ{ #Indeed: 0 } } here, since we can detect that the False case is unreachable, we change its goal to a hole, letting the user type anything.
- Loading branch information
1 parent
b7753d3
commit 9fc16ad
Showing
2 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
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
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