Commit graph

19681 commits

Author SHA1 Message Date
Leonardo de Moura
fdfa3fc0de chore: minor 2020-03-19 17:01:59 -07:00
Leonardo de Moura
8c7dc85b7e feat: add new quotation syntax
cc @Kha
2020-03-19 17:01:34 -07:00
Leonardo de Moura
6ccade1738 proto: mkDepElim 2020-03-19 15:47:47 -07:00
Leonardo de Moura
6df8959c1c refactor: add Recognizers.lean 2020-03-19 15:47:29 -07:00
Leonardo de Moura
2113e45dd0 chore: fix test 2020-03-19 09:29:07 -07:00
Leonardo de Moura
f4e06664c6 chore: fix debug build 2020-03-18 21:02:00 -07:00
Leonardo de Moura
eaaaaabc60 feat: allow Lean.Parser.Term.id to be used in binders
cc @Kha
2020-03-18 20:54:08 -07:00
Leonardo de Moura
2954f6ad3e feat: add MetaHasEval instance for TermElabM
cc @Kha
2020-03-18 20:09:14 -07:00
Leonardo de Moura
5d35b2c419 test: decide! tests 2020-03-18 16:48:28 -07:00
Leonardo de Moura
6cac9cab89 feat: cache closed terms at Meta.whnf 2020-03-18 16:47:50 -07:00
Leonardo de Moura
d1e02907e3 chore: register Meta.debug trace option 2020-03-18 16:42:00 -07:00
Leonardo de Moura
cd8bd55311 feat: make sure Char.ofNat can be efficiently reduced in the kernel and WHNF 2020-03-18 16:41:48 -07:00
Leonardo de Moura
736925bbce feat: allow decide! and nativeDecide! take _ as an argument
We use the expected type in this case.
2020-03-18 16:00:06 -07:00
Leonardo de Moura
c8b51b0fb3 feat: elab decide! 2020-03-18 15:48:22 -07:00
Leonardo de Moura
5b350d52ee feat: elaborate nativeDecide! 2020-03-18 15:39:23 -07:00
Leonardo de Moura
1279057bc6 feat: add mkExpectedTypeHint 2020-03-18 15:34:02 -07:00
Leonardo de Moura
cefb20d390 chore: update stage0 2020-03-18 15:01:16 -07:00
Leonardo de Moura
77f20d9737 feat: add nativeDecide! and decide! macros 2020-03-18 15:00:22 -07:00
Leonardo de Moura
bfe7d1ffe8 chore: add kernel WHNF test 2020-03-18 11:07:24 -07:00
Leonardo de Moura
6f62986368 feat: add isDefEqStringLit 2020-03-18 11:05:44 -07:00
Leonardo de Moura
01acecf9be chore: helper predicates 2020-03-18 11:04:43 -07:00
Leonardo de Moura
cee478dc94 feat: MetaM support for expanding String literal at recursors 2020-03-18 10:29:52 -07:00
Leonardo de Moura
84f856bed9 chore: use toExpr 2020-03-18 10:26:32 -07:00
Leonardo de Moura
b4942fcd30 feat: add ToExpr instances 2020-03-18 10:22:24 -07:00
Leonardo de Moura
5b4c465ddd chore: update stage0 2020-03-17 17:25:26 -07:00
Leonardo de Moura
72ec0ec3ad feat: string literal support on recursors and kernel isDefEq 2020-03-17 17:23:33 -07:00
Leonardo de Moura
0ef54ae74c chore: remove TODO 2020-03-17 17:13:32 -07:00
Leonardo de Moura
5b5a1fceaa fix: string literal printer 2020-03-17 17:12:27 -07:00
Leonardo de Moura
78b5e714c5 test: add rfl tests 2020-03-17 16:18:18 -07:00
Leonardo de Moura
6d08311765 feat: support for Nat operations at MetaM isDefEq 2020-03-17 16:17:07 -07:00
Leonardo de Moura
3df7f35dd0 test: kernel isDefEq support for Nat operations 2020-03-17 13:38:06 -07:00
Leonardo de Moura
b28af20875 chore: update stage0 2020-03-17 13:37:13 -07:00
Leonardo de Moura
ea10c5c6fc feat: add support for reducing Nat basic functions in the kernel 2020-03-17 13:31:57 -07:00
Leonardo de Moura
7a82318d37 fix: to_pattern_fn bug 2020-03-17 12:58:08 -07:00
Leonardo de Moura
58c59a8fb6 chore: update stage0 2020-03-16 19:29:34 -07:00
Leonardo de Moura
9009926e44 fix: nat_* primitives return objects that must be consumed
Remove bogus `wrap`.
2020-03-16 19:28:22 -07:00
Leonardo de Moura
6abc45739b chore: update stage0 2020-03-16 16:31:46 -07:00
Leonardo de Moura
97b8d8551d feat: elaborate nativeRefl! macro 2020-03-16 16:21:51 -07:00
Leonardo de Moura
c10230ec0a feat: add elabTermAndSynthesize auxiliary method
Useful for creating "checkpoints".
2020-03-16 15:37:04 -07:00
Leonardo de Moura
81a7cf50d3 feat: make sure #check and #synth do not modify the environment 2020-03-16 15:36:37 -07:00
Leonardo de Moura
96bdc2b2e8 chore: update stage0 2020-03-16 15:00:21 -07:00
Leonardo de Moura
702087c72c feat: add nativeRefl! macro notation 2020-03-16 14:58:53 -07:00
Leonardo de Moura
acee5719af test: proofs by reflection 2020-03-16 14:33:30 -07:00
Leonardo de Moura
94804358fa chore: better trace message 2020-03-16 14:33:30 -07:00
Leonardo de Moura
adf40096fc feat: compute ReducibilityHints 2020-03-16 14:33:30 -07:00
Leonardo de Moura
2f3745c594 feat: use shareCommon 2020-03-16 14:33:30 -07:00
Leonardo de Moura
b69c851a5a feat: add Expr.foldConsts 2020-03-16 14:33:30 -07:00
Leonardo de Moura
0ee6672a77 feat: add NameHashSet 2020-03-16 14:33:21 -07:00
Leonardo de Moura
596a547e57 feat: add helper theorems 2020-03-16 11:17:41 -07:00
Leonardo de Moura
fba18edfa3 feat: add support for Lean.reduceNat and Lean.reduceBool at MetaM isDefEq 2020-03-16 10:58:14 -07:00