Leonardo de Moura
1af02dcaca
feat: allow users to mark definitions with [simp]
...
cc @JasonGross @Kha
2021-03-17 19:11:55 -07:00
Leonardo de Moura
7213b02c7e
chore: update stage0
2021-03-17 18:53:11 -07:00
Leonardo de Moura
3208faa192
feat: add set of declarations to unfold at SimpLemmas
2021-03-17 18:52:23 -07:00
Leonardo de Moura
205b42a397
feat: proper syntax for configuring simp
2021-03-17 16:37:04 -07:00
Leonardo de Moura
f7028b36a4
chore: update stage0
2021-03-17 16:22:00 -07:00
Leonardo de Moura
f25f0edda4
chore: prepare to update simp notation
2021-03-17 16:21:10 -07:00
Leonardo de Moura
5eda786f6e
feat: use False.elim when simplifying local declarations that rewrite to False
2021-03-17 15:30:54 -07:00
Leonardo de Moura
0720a53a9d
chore: refactoring and cleanup
2021-03-17 14:56:08 -07:00
Sebastian Ullrich
3eca5787eb
fix: server: more robust check for projection highlighting
2021-03-17 18:31:33 +01:00
Sebastian Ullrich
f4c3d068ae
feat: uniform "unsolved case" positions with fullRange
...
/cc @leodemoura
2021-03-17 12:45:15 +01:00
Sebastian Ullrich
0d86ebe5eb
chore: remove volatile cases from test
2021-03-17 12:32:25 +01:00
pcpthm
f645429df4
chore: slightly nicer UInt shift definition
2021-03-17 10:08:02 +01:00
pcpthm
419a6190e8
fix: bitwise shift overflow of UInt types
...
It is an undefined behavior in C when the right operand of a shift operation exceeds the bit-width of the left operand.
We define the shift operation to be `x << (y % B)` where `B` is the bit-width of the left operand.
2021-03-17 10:08:02 +01:00
Leonardo de Moura
dd4fb3b71b
chore: improve error message
...
see #346
2021-03-16 20:42:38 -07:00
Leonardo de Moura
6d53202e0b
chore: fix typo
2021-03-16 19:07:35 -07:00
Leonardo de Moura
08f87752ee
fix: closes #346
2021-03-16 18:55:46 -07:00
Leonardo de Moura
97b2398972
chore: cleanup
2021-03-16 18:14:27 -07:00
Leonardo de Moura
60a1b828ad
fix: fixes #348
2021-03-16 17:50:40 -07:00
Leonardo de Moura
1fd8089d19
fix: register new metavariables created when applying default instance
...
closes #353
2021-03-16 17:31:51 -07:00
Leonardo de Moura
c37d961fc3
chore: make sure both alternatives use throwError
2021-03-16 17:20:00 -07:00
Leonardo de Moura
7dc6721fea
fix: missing pushScope and popScope
2021-03-16 16:42:45 -07:00
Sebastian Ullrich
99d8e34a51
feat: server: highlight variables & field notation
2021-03-16 16:41:32 -07:00
Sebastian Ullrich
8a5344ed17
fix: server: handle requests for closed files
2021-03-16 16:41:32 -07:00
Sebastian Ullrich
002efd0db6
chore: server: exclude some nodes from semantic highlighting
2021-03-16 16:41:32 -07:00
Sebastian Ullrich
0e8272388d
fix: server: semantic highlighting with multiple tokens in a line
2021-03-16 16:41:32 -07:00
Sebastian Ullrich
bddf2ca7e1
chore: Nix: update vscode-lean4
2021-03-16 16:41:32 -07:00
Sebastian Ullrich
92f75cf37b
feat: lean4-mode: enable semantic tokens by default
2021-03-16 16:41:32 -07:00
Sebastian Ullrich
cb5050bb7f
doc: Syntax.topDown
2021-03-16 16:41:32 -07:00
Sebastian Ullrich
ddff87f7f5
feat: server: also implement full semantic token requests
...
because lsp-mode freaks out without them
2021-03-16 16:41:32 -07:00
Sebastian Ullrich
5df753f338
feat: server: support ranged semantic tokens (keywords only for now)
2021-03-16 16:41:32 -07:00
Leonardo de Moura
89797c4485
chore: improve congrDefault
...
We don't need `congrMatch` anymore.
2021-03-16 15:59:11 -07:00
Leonardo de Moura
8227d3afcd
feat: support for simplifying match discriminants
2021-03-16 15:51:36 -07:00
Leonardo de Moura
2970c6ca79
feat: add mkCongrDepArg and mkCongrDep
2021-03-16 15:40:48 -07:00
Leonardo de Moura
0fd9b493fa
chore: add helper congruence lemma
2021-03-16 15:40:28 -07:00
Leonardo de Moura
ea91317f1a
fix: avoid nontermination due to respecialization
2021-03-15 19:12:57 -07:00
Leonardo de Moura
cc0712fc82
feat: add support for offset terms at DiscrTree
2021-03-14 08:23:44 -07:00
Sebastian Ullrich
75a97fad94
feat: nicer token parse errors
2021-03-14 08:23:32 -07:00
Sebastian Ullrich
9f21d6fd64
fix: preserve token parse errors
2021-03-14 08:23:32 -07:00
Sebastian Ullrich
048d592fe8
fix: FileMap out of bounds
2021-03-14 08:23:32 -07:00
Leonardo de Moura
12aa5cc461
chore: avoid ! in keywords
2021-03-13 17:24:27 -08:00
Leonardo de Moura
e04e9ff87e
feat: extend anonymous ctor notation
2021-03-13 17:11:37 -08:00
Leonardo de Moura
c54a7c8ccc
chore: make HasEquiv more general
2021-03-13 07:02:35 -08:00
Sebastian Ullrich
d35fc280d2
refactor: further refactor Lean.Elab.Syntax
2021-03-13 14:47:59 +01:00
Sebastian Ullrich
00a0db4231
fix: unexpanders should inherit scopedness
2021-03-13 13:20:12 +01:00
Sebastian Ullrich
8f824ce141
fix: KeyedDeclsAttribute: preserve scopedness
2021-03-13 13:18:04 +01:00
Sebastian Ullrich
03aea90981
chore: update stage0
2021-03-13 12:41:13 +01:00
Sebastian Ullrich
d88ef52b68
feat: scoped KeyedDeclsAttribute
2021-03-13 12:40:58 +01:00
Sebastian Ullrich
fb4d07de49
chore: lean4-mode: use proper hook for goal refresh
...
debounced and should wait until after initialization
2021-03-13 12:20:52 +01:00
Leonardo de Moura
5c24906c60
fix: Delaborator for constants
...
@Kha Could you please take a look at the fix?
This is an example posted by @JasonGross on Zulip.
2021-03-12 19:51:27 -08:00
Leonardo de Moura
a406e41fcb
chore: fix documentation
2021-03-12 18:11:06 -08:00