Wojciech Nawrocki
9c9407e722
feat: propagate tagAppFns in delaborator
2022-05-31 00:07:56 +02:00
Wojciech Nawrocki
cd47c30e47
chore: review fixes
2022-05-31 00:07:56 +02:00
Wojciech Nawrocki
8c67afae2f
feat: generalize getGoToLocation RPC
2022-05-31 00:07:56 +02:00
Wojciech Nawrocki
8c5cebfb11
chore: default optional LSP fields
2022-05-31 00:07:56 +02:00
Wojciech Nawrocki
aef8d32d0b
feat: add RPC call to retrieve defn/decl/type defn
2022-05-31 00:07:56 +02:00
Wojciech Nawrocki
9c058a5798
chore: remove some unnecessary partial
2022-05-31 00:07:56 +02:00
Wojciech Nawrocki
e555490ee2
feat: store subexpression positions
2022-05-31 00:07:56 +02:00
Wojciech Nawrocki
25a8646a5f
feat: add showDocument client capability
2022-05-31 00:07:56 +02:00
ammkrn
102e957bb5
feat: support proofs in deriving DecidableEq
...
The derive handler for `DecidableEq` does not currently support proofs
in constructor arguments/structure fields. For example, deriving
`DecidableEq` for `Fin n` will fail, because of the field `isLt`. This
change checks whether the elements being tested are proofs, and if so,
changes the equality proof to just `rfl`.
2022-05-30 07:36:30 -07:00
Leonardo de Moura
9818de078b
fix: fixes #1168
2022-05-30 07:24:23 -07:00
Leonardo de Moura
fb45eb4964
fix: universe polymorphic enumeration types
...
Fixes issue reported at https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Incorrect.20number.20of.20universe.20levels.20parameters/near/284283021
2022-05-30 06:43:46 -07:00
Leonardo de Moura
b0efae4823
chore: style
2022-05-30 06:43:46 -07:00
Sebastian Ullrich
ef9976ccda
fix: do not discard macro exceptions in expandMacro?
2022-05-30 13:28:42 +02:00
Sebastian Ullrich
d3cf60e86a
chore: further refine goal state heuristics
2022-05-30 13:27:56 +02:00
Sebastian Ullrich
b31690b1d7
fix: go to definition/goal state at end of syntax
2022-05-30 11:16:25 +02:00
Leonardo de Moura
ca6f53b407
feat: use subst_vars at builtin decreasing_tactic
2022-05-28 16:24:32 -07:00
Leonardo de Moura
6dc728cc60
chore: update stage0
2022-05-28 16:20:23 -07:00
Leonardo de Moura
40fc64480a
feat: add tactic subst_vars
2022-05-28 16:19:34 -07:00
Leonardo de Moura
2c5bafcbd8
fix: dead variables at match equation hypotheses
...
This commit addresses an issue reported at https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Structural.20Recursion.20Problem/near/284238723
2022-05-28 16:09:35 -07:00
Leonardo de Moura
e26f86dd45
fix: improve simpH?, remove unnecessary hypotheses
2022-05-28 15:30:01 -07:00
Leonardo de Moura
34bbe5d12c
feat: add simp theorem List.of_toArray_eq_toArray (as bs : List α) : (as.toArray = bs.toArray) = (as = bs) := by
2022-05-27 18:26:48 -07:00
Leonardo de Moura
fbd8224b4d
fix: allow recursive occurrences in binder types at WF/PackDomain.lean
...
fixes #1171
2022-05-27 11:23:51 -07:00
Leonardo de Moura
3be437cad3
fix: make sure register_simp_attr declares an simp-like attribute parser for user simp attributes
...
closes #1164
2022-05-26 19:49:33 -07:00
Leonardo de Moura
7d8f8c0fbe
chore: style
2022-05-26 15:18:07 -07:00
Leonardo de Moura
25126cd057
fix: autoParam is structure fields lost in multiple inheritance
...
closes #1158
2022-05-26 14:35:47 -07:00
Leonardo de Moura
b4c1163f8f
chore: update stage0
2022-05-26 14:22:38 -07:00
Leonardo de Moura
f48b822532
feat: add field for storing autoParam information at StructureFieldInfo
...
We need this information when copying fields from parent structures.
We don't use hacks such as traversing the parent constructor type.
2022-05-26 14:21:03 -07:00
Leonardo de Moura
dcb974a1cf
chore: remove unused parameter
2022-05-26 14:20:51 -07:00
Leonardo de Moura
fc606f3ab5
fix: closes #1156
2022-05-26 12:51:28 -07:00
Leonardo de Moura
988697b431
fix: fixes #1169
2022-05-26 07:05:32 -07:00
Leonardo de Moura
1d14637680
fix: missing withMVarContext
2022-05-26 06:18:14 -07:00
Leonardo de Moura
fad21a4cda
chore: remove leftovers
2022-05-25 20:38:20 -07:00
Leonardo de Moura
944063682e
fix: another specialize.cpp bug
...
This is just a workaround. This code has to be ported to Lean.
The issue has been reported at https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/.28kernel.29.20unknown.20constant/near/283750650
2022-05-25 20:36:18 -07:00
Leonardo de Moura
dca8a8ed98
fix: match or-pattern
...
This issue has been reported at
https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Probably.20a.20bug/near/283779934
2022-05-25 20:05:46 -07:00
Leonardo de Moura
bef1cd4872
fix: make structure instance notation (e.g., { a, b }) works in patterns after we define the Set notation in Mathlib
2022-05-25 19:14:22 -07:00
Leonardo de Moura
a26827f58b
chore: remove Context.main
2022-05-25 11:58:33 -07:00
Jannis Limperg
6dc5ddac35
fix: apply after-compilation attributes to inductive/structure decls
...
Attributes with `AttributeApplicationTime.afterCompilation` were
silently not applied to `inductive` and `structure` declarations.
2022-05-25 11:32:08 -07:00
Sebastian Ullrich
4a1885f997
chore: update benchmark suite
2022-05-25 18:26:36 +02:00
asdasd1dsadsa
794877c0c8
chore: add option to exclude 'LICENSE' files from 'make install'
2022-05-25 12:39:30 +02:00
Sebastian Ullrich
b97fb23dbe
chore: update stage0
2022-05-25 09:48:11 +02:00
Sebastian Ullrich
0a39e9cbdc
fix: dynamic quotations should use previous stage by default
...
@leodemoura as discussed some time ago
2022-05-25 09:46:10 +02:00
Leonardo de Moura
cb32681978
doc: add slide headers to examples
2022-05-23 18:20:37 -07:00
Leonardo de Moura
bf5f107e74
doc: missing NFM examples
2022-05-23 18:04:03 -07:00
Leonardo de Moura
7c427c1ef2
fix: make sure let-expressions do not affect the structural recursion module
...
This issue has been reported at https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Termination.20check.20not.20preserved.20under.20let.20binding.2E/near/282934378
2022-05-23 13:42:48 -07:00
Leonardo de Moura
655c9fafa4
chore: update stage0
2022-05-23 12:00:10 -07:00
Leonardo de Moura
d05dff078a
chore: update stage0
2022-05-23 11:56:59 -07:00
Leonardo de Moura
2fc23a2a2b
feat: make sure we can use split to synthesize code
2022-05-23 11:55:57 -07:00
Leonardo de Moura
e552558f2f
chore: style
2022-05-23 11:04:29 -07:00
Leonardo de Moura
6ce6b12707
doc: NFM'22 examples
2022-05-22 19:21:30 -07:00
Leonardo de Moura
56cd6c1ff5
fix: we should not use implicit targets when creating the key for the CustomEliminator map
2022-05-20 06:55:23 -07:00