Wojciech Nawrocki
12b3573c14
fix: tests
2022-07-25 08:01:27 -07:00
Wojciech Nawrocki
e30ae62dff
refactor: simplify position type
2022-07-25 08:01:27 -07:00
E.W.Ayers
b714e087d6
fix: widgetSourceRegistry now stores the UserWidgetDefinition declaration name instead of WidgetSource
...
This means that the environment extension is not storing a big text object and instead the text
is retrieved from the declaration itself.
2022-07-25 08:01:27 -07:00
E.W.Ayers
591b218607
doc: fix @kha issues
2022-07-25 08:01:27 -07:00
Wojciech Nawrocki
122748ab06
test: strip some more indices
2022-07-25 08:01:27 -07:00
Wojciech Nawrocki
5183887722
test: fix infoTree.lean
2022-07-25 08:01:27 -07:00
E.W.Ayers
28ebf90948
fix: add Inhabited Std.RBMap
2022-07-25 08:01:27 -07:00
E.W.Ayers
8deee553bb
fix: local instances
2022-07-25 08:01:27 -07:00
Ed Ayers
05f79def8c
style: tests/lean/interactive/run.lean
...
Co-authored-by: Gabriel Ebner <gebner@gebner.org>
2022-07-25 08:01:27 -07:00
E.W.Ayers
c4c87ebe55
test: remove unused rpc case from runner
2022-07-25 08:01:27 -07:00
E.W.Ayers
67eae54c3d
style: userwidget
2022-07-25 08:01:27 -07:00
E.W.Ayers
839956c75e
doc: update widget docs
...
[skip ci]
2022-07-25 08:01:27 -07:00
E.W.Ayers
18a3d1a34e
fix: widgets are now defined using a UserWidgetDefinition
...
To satisfy https://github.com/leanprover/lean4/pull/1238#discussion_r908839474
2022-07-25 08:01:27 -07:00
Wojciech Nawrocki
0824e6b22b
chore: rebase on 2022-07-10
2022-07-25 08:01:27 -07:00
Wojciech Nawrocki
625be05aa8
chore: use invalidParams error code
2022-07-25 08:01:27 -07:00
E.W.Ayers
4eb97a7954
refactor: getWidgetInfos → getWidgets
...
also rm hash field from UserWidgetInfo because it can be computed in handler instead.
2022-07-25 08:01:27 -07:00
E.W.Ayers
9b5be5a039
chore: remove Json.syntax docstring
2022-07-25 08:01:27 -07:00
E.W.Ayers
b7d70877f7
feat: user widgets
...
See #1225
2022-07-25 08:01:27 -07:00
Leonardo de Moura
262ac674aa
feat: improve runTactic
...
It must catch exceptions.
See #1342
2022-07-25 07:41:50 -07:00
Sebastian Ullrich
005b8aa951
chore: update stage0
2022-07-25 10:13:56 +02:00
Sebastian Ullrich
7272235241
fix: escaped $$x* antiquotation splices
2022-07-25 10:09:58 +02:00
Lars
105bfcc8f0
feat: allow custom ignore functions for the unused variables linter
...
Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch>
2022-07-25 09:16:44 +02:00
tydeu
938516b00c
chore: update Lake
2022-07-25 08:52:00 +02:00
Leonardo de Moura
0ec2b442d1
chore: update stage0
2022-07-24 21:38:48 -07:00
Leonardo de Moura
8335a82aed
refactor: improve MVarId method discoverability
...
See issue #1346
2022-07-24 21:36:33 -07:00
Leonardo de Moura
91999d22eb
chore: update stage0
2022-07-24 18:08:31 -07:00
Leonardo de Moura
d9d893e425
chore: fix test
2022-07-24 18:07:54 -07:00
Leonardo de Moura
b6e9d58537
feat: add [deprecated] attribute
2022-07-24 18:06:03 -07:00
Leonardo de Moura
f1f5a4b39e
chore: naming convention
2022-07-24 17:44:29 -07:00
Leonardo de Moura
a62949c49b
refactor: add type LevelMVarId (and abbreviation LMarId)
...
Motivation: make sure we do not mixup metavariable ids for
expression and universe level.
cc @bollu
2022-07-24 17:21:45 -07:00
Leonardo de Moura
949dddbf63
fix: lean_float_array_data
2022-07-24 17:05:28 -07:00
Leonardo de Moura
e0882e098b
chore: avoid stackoverflow in debug build
2022-07-24 14:47:51 -07:00
Leonardo de Moura
2c825de6a1
fix: elim_scalar_array_cases
2022-07-24 14:46:46 -07:00
Leonardo de Moura
5e877b115b
feat: improve calc tactic
...
> Heather suggested changing the calc tactic (not the term) such that if
the final RHS does not defeq match the goal RHS, it returns a final
inequality as a subgoal.
Closes #1342
2022-07-24 14:30:15 -07:00
Leonardo de Moura
fd0581f485
refactor: add Elab/Calc.lean
2022-07-24 13:30:05 -07:00
Leonardo de Moura
c46ef56ac7
perf: avoid blowup at deriving Repr
...
The fix is not perfect. I just avoided inlining in some builtin `Repr` instances.
The actual problem is at `ElimDeadBranches.lean`.
Closes #1365
2022-07-24 13:10:04 -07:00
Leonardo de Moura
5253cc6742
fix: compiler support for FloatArray.casesOn and ByteArray.casesOn
...
closes #1311
2022-07-24 12:36:08 -07:00
Leonardo de Moura
7829be9d54
fix: fixes #1333
2022-07-24 12:19:53 -07:00
Leonardo de Moura
2196a3518e
perf: improve lazy_delta_reduction_step heuristic
...
It addresses a performance issue reported at
https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/performance.20of.20equality.20with.20projections.2Fmutual/near/288083209
2022-07-24 11:48:45 -07:00
Sebastian Ullrich
a941b1b859
chore: one more unused import
2022-07-24 18:24:25 +02:00
Leonardo de Moura
22d37af5c9
feat: improve calc syntax
...
See #1342
2022-07-24 08:32:20 -07:00
Leonardo de Moura
6cff1f1813
fix: try to postpone by .. if expectedType? = none
...
Reason: it may become `some ..` later. See issue #1359
Closes #1359
2022-07-24 08:03:25 -07:00
Leonardo de Moura
28fc2f9d37
fix: improve "{varName} cannot be reassigned" error message
...
closes #1341
2022-07-24 07:44:34 -07:00
Leonardo de Moura
ad5ee05a03
chore: consistent use of backticks in error messages at Do.lean
2022-07-24 07:42:04 -07:00
Leonardo de Moura
8de798c4a6
feat: reject [macroInline] declarations in recursive declarations
...
closes #1363
2022-07-24 07:26:35 -07:00
Sebastian Ullrich
6a767a66a1
perf: reduce Lean.Parser.Basic imports
2022-07-23 23:01:52 +02:00
Sebastian Ullrich
e5891850a7
doc: update RELEASES.md
2022-07-23 17:09:32 +02:00
Sebastian Ullrich
5160cb7b0f
refactor: remove some unnecessary antiquotation kind annotations
2022-07-23 17:09:32 +02:00
Sebastian Ullrich
cf380956a3
fix: regression from previous commit
2022-07-23 17:09:32 +02:00
Sebastian Ullrich
29b7289b11
chore: update stage0
2022-07-23 17:09:32 +02:00