Commit graph

19651 commits

Author SHA1 Message Date
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
Leonardo de Moura
b57d229efe chore: update stage0 2020-03-14 15:08:35 -07:00
Sebastian Ullrich
d7170df527 feat: interpreter: print stacktrace on stack overflow 2020-03-14 15:08:03 -07:00
Leonardo de Moura
87f8ae99eb test: reduceBool test 2020-03-14 15:07:14 -07:00
Sebastian Ullrich
e30717a85a fix: interpreter::call_boxed on unboxed constants 2020-03-14 15:04:38 -07:00
Leonardo de Moura
c1a28cb484 chore: update stage0 2020-03-14 13:43:16 -07:00
Leonardo de Moura
2d7ec0b49c fix: bug at unsafe umapMAux implementation
closes #125
2020-03-14 13:41:14 -07:00
Leonardo de Moura
2bb9755e1c chore: update stage0 2020-03-14 13:11:51 -07:00
Leonardo de Moura
6ad0c2cc18 feat: simplify unsafeCast 2020-03-14 13:10:56 -07:00
Leonardo de Moura
2e6fac2853 feat: add support for reduceBool and reduceNat in the kernel type_checker 2020-03-14 12:13:22 -07:00
Leonardo de Moura
cef43ceb1f chore: update stage0 2020-03-14 11:16:48 -07:00
Leonardo de Moura
6f9583987d feat: add reduceBool and reduceNat "hints"
TODO: actual implementation at `type_checker.cpp`
2020-03-14 10:57:19 -07:00
Leonardo de Moura
3ecf5a5b08 chore: update stage0 2020-03-14 09:19:48 -07:00
Leonardo de Moura
52e2655915 feat: add Kernel.isDefEq 2020-03-14 09:16:46 -07:00
Leonardo de Moura
3e4196a8df feat: expose kernel is_def_eq 2020-03-14 08:15:58 -07:00
Leonardo de Moura
abf27d843e feat: synthPending implementation 2020-03-13 13:52:00 -07:00
Leonardo de Moura
174771cdb3 fix: nat lit support 2020-03-13 06:54:33 -07:00
Leonardo de Moura
5b7d25727d doc: matcher for values example 2020-03-13 06:39:13 -07:00
Leonardo de Moura
04f071606f chore: cleanup example 2020-03-13 06:39:13 -07:00
Leonardo de Moura
7bb9638ea6 feat: helper lemmas for equation compiler 2020-03-13 06:39:13 -07:00
Leonardo de Moura
a0090b378b feat: move Array extensionality theorems to Init 2020-03-13 06:39:13 -07:00
Leonardo de Moura
a8c3322ac8 doc: expand dependent pattern matching support for array literals 2020-03-13 06:39:13 -07:00
Sebastian Ullrich
3a94422aea chore: bump Actions 2020-03-13 10:40:45 +01:00
Leonardo de Moura
65234064ec doc: dep elim experiments 2020-03-11 19:25:38 -07:00
Leonardo de Moura
dc740307fa doc: "plan" for matching array literals
The new equation compiler will generate code similar to
`matchArrayLit`. Of course, we will not use an auxiliary inductive datatype.
2020-03-11 12:00:11 -07:00
Leonardo de Moura
50acb88727 feat: add auxiliary function for matching array literals 2020-03-11 11:57:01 -07:00
Leonardo de Moura
839a37bc81 chore: update stage0 2020-03-11 10:11:37 -07:00
Leonardo de Moura
9ad67b6535 chore: remove TODO's 2020-03-11 10:09:34 -07:00
Leonardo de Moura
923036a017 chore: indentation 2020-03-11 10:06:45 -07:00
Leonardo de Moura
357a708ed8 chore: avoid variable, enforce naming convention
Motivation: make it clear which definitions depend on `df : Def γ`.
2020-03-11 10:05:25 -07:00
Leonardo de Moura
ae4b18220d chore: add a few comments 2020-03-11 10:00:52 -07:00