Commit graph

20712 commits

Author SHA1 Message Date
Leonardo de Moura
5e582823ec feat: add MonadLCtx and MonadMCtx helper classes 2020-08-28 16:48:42 -07:00
Leonardo de Moura
65f1c3fe65 chore: simplify MonadMacroAdapter 2020-08-28 16:24:06 -07:00
Leonardo de Moura
e0d39e6a7d feat: use whnf at subst 2020-08-28 15:56:28 -07:00
Leonardo de Moura
cc47705691 chore: remove import Init.* 2020-08-28 15:39:08 -07:00
Leonardo de Moura
64840c10c3 chore: cleanup Log.lean 2020-08-28 15:26:35 -07:00
Leonardo de Moura
212fd22594 chore: remove dead fields 2020-08-28 15:04:24 -07:00
Leonardo de Moura
2287c7e7b3 feat: elaborate #print axioms command 2020-08-28 13:08:42 -07:00
Leonardo de Moura
f097f827dd chore: update stage0 2020-08-28 12:26:59 -07:00
Leonardo de Moura
cc1c9f3dfb feat: add #print axioms 2020-08-28 12:26:07 -07:00
Leonardo de Moura
27170cddb9 feat: mark Lean.ofReduceBool and Lean.ofReduceNat as axioms
The idea is to inform users whether their trust code base depends on
the compiler, interpreter, `[implementedBy]` and `[extern]`
annotations.
2020-08-28 12:22:12 -07:00
Leonardo de Moura
50470c328f test: nativeRefl! abuse example 2020-08-28 12:09:25 -07:00
Leonardo de Moura
8e31068b3c chore: update stage0 2020-08-28 10:06:22 -07:00
Sebastian Ullrich
95901a0346 fix: make Stream.ofBuffer thread-safe 2020-08-28 10:04:32 -07:00
Sebastian Ullrich
110ae4b571 feat: replace OS-specific stream redirection with pure-Lean Stream redirection
This avoids the temporary files workaround on macOS and Windows, and makes sure
we can process a `#eval` command and write messages to stdout at the same time.
2020-08-28 10:04:32 -07:00
Sebastian Ullrich
efa119bc94 feat: make std streams Streams 2020-08-28 10:04:32 -07:00
Sebastian Ullrich
56fda835be feat: add ByteArray <-> String conversions 2020-08-28 10:04:32 -07:00
Sebastian Ullrich
dbebff3a2d feat: ByteArray.copySlice 2020-08-28 10:04:32 -07:00
Sebastian Ullrich
1b0ffbb74d feat: make std IO streams settable
Co-authored-by: Simon Hudon <simon.hudon@gmail.com>
2020-08-28 10:04:32 -07:00
Leonardo de Moura
091000462d chore: remove unnecessary node 2020-08-28 09:43:23 -07:00
Leonardo de Moura
54f95421c8 test: Lean2 obtain is just a macro 2020-08-28 09:37:29 -07:00
Leonardo de Moura
62177069fd fix: induction tactic 2020-08-28 09:18:22 -07:00
Leonardo de Moura
4bc1be17f4 chore: cleanup 2020-08-28 09:18:22 -07:00
Sebastian Ullrich
479f001de4 chore: reduce Parser <- Elab dependencies 2020-08-28 12:39:12 +02:00
Leonardo de Moura
0b7a7f7b90 feat: better support for _ in match tactic 2020-08-27 18:18:49 -07:00
Leonardo de Moura
76bda91ff8 feat: add evalMatch for tactics 2020-08-27 18:05:06 -07:00
Leonardo de Moura
2914388f19 fix: mkTacticMVar
Incorrect `Syntax` being used to report error messages.
2020-08-27 16:42:47 -07:00
Leonardo de Moura
7a62b290f7 fix: use getMVarsNoDelayed in tactics 2020-08-27 16:28:15 -07:00
Leonardo de Moura
8f0c5b1afb chore: update stage0 2020-08-27 15:57:32 -07:00
Leonardo de Moura
d2f9f250db feat: add match tactic parser 2020-08-27 15:57:05 -07:00
Leonardo de Moura
7a6effa54f chore: cleanup 2020-08-27 15:47:58 -07:00
Leonardo de Moura
6f1975aef5 feat: report errors for unassigned metavariables
We were not reporting unassigned metavariables due to
1- `_`
2- Named holes (e.g., `?x`)
3- Implicit arguments
2020-08-27 15:03:41 -07:00
Leonardo de Moura
691e73ca3a fix: collect metavars occurring in delayed assignments 2020-08-27 14:59:54 -07:00
Leonardo de Moura
47ff4d0e8e chore: add helper functions
TODO: we should `Subarray` and functions/methods for it. Then, we can delete
functions such as `foldlFromM`
2020-08-27 14:58:27 -07:00
Leonardo de Moura
f8db5d2652 fix: must use lean_mk_task_own 2020-08-27 12:21:10 -07:00
Leonardo de Moura
d4aa99969f chore: update stage0 2020-08-27 12:08:32 -07:00
Leonardo de Moura
90bddeb12b feat: add lean_task_get_own for implementing Task.get 2020-08-27 12:07:11 -07:00
Leonardo de Moura
c4f38c08b2 feat: collectMVars methods 2020-08-27 11:24:03 -07:00
Leonardo de Moura
5349a73655 chore: add MessageData.nestD
"default nest"
2020-08-27 11:22:47 -07:00
Leonardo de Moura
99161538f8 feat: add Declaration.forExprM and Declaration.foldExprM 2020-08-27 11:22:11 -07:00
Leonardo de Moura
bb3c8a2105 refactor: polymorphic applyAttributes 2020-08-27 10:46:33 -07:00
Leonardo de Moura
d84078283c chore: helper method 2020-08-27 09:52:33 -07:00
Leonardo de Moura
4495c13e6c fix: extra line 2020-08-27 09:11:04 -07:00
Leonardo de Moura
ed976027fe chore: naming convention 2020-08-26 20:24:33 -07:00
Leonardo de Moura
09a375b540 feat: reject _ where function is expected
It should behave like Lean3.
2020-08-26 18:48:05 -07:00
Leonardo de Moura
4934a2d522 chore: remove workaround 2020-08-26 16:24:20 -07:00
Leonardo de Moura
7db6f420f5 refactor: move mkAuxDefinitionCore 2020-08-26 16:20:09 -07:00
Leonardo de Moura
011d8c02c8 test: letrec error messages 2020-08-26 15:30:19 -07:00
Leonardo de Moura
00599cf62b fix: types of the recursive functions being defined cannot reference other functions in the same mutual block 2020-08-26 15:29:06 -07:00
Leonardo de Moura
8543a20b8f feat: add checkpoint using withSynthesize 2020-08-26 15:10:26 -07:00
Leonardo de Moura
89bd5d6da2 fix: bug introduced today 2020-08-26 14:49:20 -07:00