-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pure] [lsp] Try to recover unit testing of pure interface
PR #289 silently removed important unit tests in the Pure module. We try to recover them, but indeed, they don't work, as it seems the library handling API introduced in #289 is lacking in terms of how it can be used. There seem to be many problems with the new system in terms of what a language server needs, in particular regarding assumptions about the underlying file system.
- Loading branch information
Showing
4 changed files
with
86 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
constant symbol B : TYPE | ||
|
||
constant symbol true : B | ||
constant symbol false : B | ||
|
||
symbol neg : B ⇒ B | ||
|
||
rule neg true → false | ||
rule neg false → true | ||
|
||
constant symbol Prop : TYPE | ||
|
||
injective symbol P : Prop ⇒ TYPE | ||
|
||
constant symbol eq : B ⇒ B ⇒ Prop | ||
constant symbol refl b : P (eq b b) | ||
|
||
constant symbol case (p : B⇒Prop) : P (p true) ⇒ P (p false) ⇒ ∀b, P b | ||
|
||
theorem notK : ∀b, P (eq (neg (neg b)) b) | ||
proof | ||
assume b | ||
apply case (λb, eq (neg (neg b)) b) | ||
apply refl | ||
apply refl | ||
qed |
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