Commit graph

29801 commits

Author SHA1 Message Date
E.W.Ayers
3c14c97195 test: add unit test for Expr lens 2022-06-17 17:47:51 -07:00
E.W.Ayers
a7c33a963f doc: docstrings for List.isPrefixOf 2022-06-17 17:47:51 -07:00
E.W.Ayers
0707e4d442 fix: traverseChildrenWithPos bug 2022-06-17 17:47:51 -07:00
E.W.Ayers
0e84f67d99 feat: with pos expr traversal functions 2022-06-17 17:47:51 -07:00
E.W.Ayers
562070fe8b refactor: more extract methods from transform 2022-06-17 17:47:51 -07:00
E.W.Ayers
c8fc371eb9 fix: test 2022-06-17 17:47:51 -07:00
E.W.Ayers
8311c88fd0 refactor: extract methods from Lean.Meta.transform
Lean.Meta.transform is created with a series of recursive
visit functions. However these visit functions are useful
on their own outside of transform for traversing expressions.

This commit moves the visit functions outside the main function.
2022-06-17 17:47:51 -07:00
E.W.Ayers
ece1c1085c feat: add Expr lensing functions using SubExpr.Pos 2022-06-17 17:47:51 -07:00
E.W.Ayers
2fe933cdf5 refactor: make SubExpr.Pos a definition
Instead of an abbreviation. It is easier to understand
Pos operations in terms of 'push' and 'pop' rather than
through arithmetic.
2022-06-17 17:47:51 -07:00
Leonardo de Moura
bbc196eeb7 fix: make sure WF/Fix.lean tolerates MatcherApp.addArg? failures
see #1228
2022-06-17 17:37:33 -07:00
Leonardo de Moura
52a0de00e4 feat: report error on ambiguous export and open commands
This commit improves the fix for issue #1224
2022-06-17 09:58:36 -07:00
Leonardo de Moura
e985eb2b8a fix: refine resolveNamespace
see issue #1224
2022-06-17 09:51:00 -07:00
Leonardo de Moura
f0e2696ec8 doc: update release notes 2022-06-16 18:22:23 -07:00
Leonardo de Moura
81a685d97c test: issue #1224
closes #1224
2022-06-16 18:01:09 -07:00
Leonardo de Moura
a6462f5bd8 feat: improve open/export 2022-06-16 18:00:33 -07:00
Leonardo de Moura
d5476fb3b3 refactor: move toMessageList, add throwErrorWithNestedErrors 2022-06-16 18:00:09 -07:00
Leonardo de Moura
8ca3e14651 feat: change namespace resolution procedure
see #1224
2022-06-16 17:31:49 -07:00
Leonardo de Moura
d56163bd0e refactor: resolveNamespace now return a List 2022-06-16 17:16:36 -07:00
François G. Dorais
bc206b2992 fix: LawfulBEq class
make arguments implicit and protect `LawfulBEq.rfl`
2022-06-16 15:33:32 -07:00
Leonardo de Moura
8d9428261e chore: remove Fix.lean
see #1208
2022-06-16 15:30:47 -07:00
Leonardo de Moura
9e7a6fa085 chore: remove dead structure 2022-06-16 15:23:23 -07:00
Sebastian Ullrich
b1e3607739 fix: match tactic with multiple LHSs 2022-06-16 15:21:46 -07:00
Sebastian Ullrich
0777d01cf9 chore: update Lake 2022-06-16 23:33:57 +02:00
Sebastian Ullrich
72a5c582cf chore: Nix: ignore build messages in test capture 2022-06-16 23:33:57 +02:00
Sebastian Ullrich
4212cc740b refactor: move linebreak check into sepBy(1)Indent
Co-authored-by: Gabriel Ebner <gebner@gebner.org>
2022-06-16 23:33:57 +02:00
Sebastian Ullrich
6f096e0f0d chore: fix tests 2022-06-16 23:33:57 +02:00
Sebastian Ullrich
6982536108 fix: one more struct instance syntax manipulation 2022-06-16 23:33:57 +02:00
Sebastian Ullrich
0f6e6c8a51 chore: update stage0 2022-06-16 23:33:57 +02:00
Sebastian Ullrich
b585b2251e fix: adapt to stricter grammar 2022-06-16 23:33:57 +02:00
Sebastian Ullrich
ce054fb2e7 fix: introduce semicolonOrLinebreak, replace many(1) with sepBy(1) where appropriate 2022-06-16 23:33:57 +02:00
Sebastian Ullrich
7a3ee51d05 doc: missing word 2022-06-16 10:12:07 +02:00
Mariana Alanis
198179d0cc fix: add a better handling in case only worker crashes (apply CR comments) 2022-06-15 18:40:44 -07:00
Mariana Alanis
e61799a77f fix: add a better handling in case only worker crashes (CR comments) 2022-06-15 18:40:44 -07:00
Mariana Alanis
30f3d6f82d fix: add a better handling in case only worker crashes (CR comments) 2022-06-15 18:40:44 -07:00
Mariana Alanis
4d7d82af86 fix: add a better handling in case only worker crashes (CR comments) 2022-06-15 18:40:44 -07:00
Mariana Alanis
b0f9754e0f fix: add a better handling in case only worker crashes 2022-06-15 18:40:44 -07:00
Mariana Alanis
6b75ca9734 fix: add a better handlng in case only worker crashes (and server stays available) 2022-06-15 18:40:44 -07:00
Leonardo de Moura
d2888a49d7 chore: remove old hack that is not needed anymore 2022-06-15 16:36:54 -07:00
Leonardo de Moura
3228db29dd chore: use double ticks 2022-06-15 07:17:17 -07:00
Sebastian Ullrich
524ae5abf7 chore: CI: purge ccache 2022-06-15 13:39:24 +02:00
Sebastian Ullrich
23d157a3ff chore: remove dead code 2022-06-15 12:43:59 +02:00
Sebastian Ullrich
bfce841985 chore: update stage0 2022-06-15 10:01:47 +02:00
Leonardo de Moura
5896e6f1d6 chore: fix docs 2022-06-14 17:35:33 -07:00
Leonardo de Moura
540e9e85f3 chore: update release notes 2022-06-14 17:31:26 -07:00
Leonardo de Moura
989d8f04e1 chore: fix tests 2022-06-14 17:27:13 -07:00
Leonardo de Moura
f6d1e48cb8 fix: constant => opaque issues 2022-06-14 17:19:54 -07:00
Leonardo de Moura
fb55ec29e1 chore: update stage0 2022-06-14 17:14:44 -07:00
Leonardo de Moura
22c8f10b12 chore: remove constant command 2022-06-14 17:14:28 -07:00
Leonardo de Moura
02c4e548df feat: replace constant with opaque 2022-06-14 17:02:59 -07:00
Leonardo de Moura
ac33193b30 chore: update stage0 2022-06-14 16:45:20 -07:00