Simon Cruanes
7b4404fb78
feat(tracing): introduce term/const serialization
...
- use a record instead of 1st class module for `Const.ops`, so it
can be mutually recursive with the definition of `term`
- remove unused `Const.ops.opaque_to_cc`
- constants are serializable using `Ser_value`
2022-09-23 22:13:21 -04:00
Simon Cruanes
dcad86963d
wip: sidekick_trace
2022-09-19 22:27:46 -04:00
Simon Cruanes
72990de373
wip: feat(core): tracing terms, make constants (de)serializable
2022-09-19 22:27:45 -04:00
Simon Cruanes
7232d43d99
feat(util): basic Ser_decode for deserialization
2022-09-19 22:27:45 -04:00
Simon Cruanes
adcb6233a3
feat(ser_value): print
2022-09-19 22:27:44 -04:00
Simon Cruanes
9a2249292f
feat: add sidekick.bencode for serialization
2022-09-19 22:27:44 -04:00
Simon Cruanes
d518511c64
feat(util): add Ser_value
2022-09-19 22:27:43 -04:00
Simon Cruanes
a313918e74
doc
2022-09-19 22:27:43 -04:00
Simon Cruanes
88a10dcf3a
feat(Error): add Error.result/try_
2022-09-19 22:27:43 -04:00
Simon Cruanes
e73bf4d3e5
util: add Str_map
2022-09-19 22:27:42 -04:00
Simon Cruanes
1c07b027ef
refactor(const): remove opaque_to_cc
2022-09-19 22:27:42 -04:00
Simon Cruanes
d58c81e83f
wip: tracing system
2022-09-18 15:54:34 -04:00
Simon Cruanes
86106f182b
chore: makefile targets for some incremental benchs
2022-09-16 21:08:58 -04:00
Simon Cruanes
c50a373d2e
refactor: extract Model into its own library
2022-09-16 20:27:01 -04:00
Simon Cruanes
24251399bf
comments
2022-09-16 19:51:10 -04:00
Simon Cruanes
c49edd8d70
fix debug msg
2022-09-16 19:49:58 -04:00
Simon Cruanes
0b951b92d3
fix some warnings
2022-09-14 18:20:10 -04:00
Simon Cruanes
e9eab74b1e
fix(lra): preprocess in the right order
...
- relate `a=b` to `[[ a >= b ]]` and `[[ a <= b ]]`
- keep `a=b` as is, for CC
2022-09-12 22:45:07 -04:00
Simon Cruanes
2764882f50
fix(preprocess): type check was invalid
2022-09-11 14:50:18 -04:00
Simon Cruanes
c18b824037
fix(lra): preprocess was returning wrong term
...
(with wrong type).
2022-09-11 14:36:38 -04:00
Simon Cruanes
469b97934a
fix: more type checks in preprocess
2022-09-11 14:26:34 -04:00
Simon Cruanes
3d0461936f
fix: remove spurious check?
2022-09-11 14:10:01 -04:00
Simon Cruanes
abff92d972
fix warning
2022-09-11 14:09:56 -04:00
Simon Cruanes
67c9ffa2ac
fix(lit): add type checking assertion
2022-09-11 14:09:03 -04:00
Simon Cruanes
fad651a4cb
fix(find_foreign): memoization needs to account for is_sub
2022-09-11 13:55:25 -04:00
Simon Cruanes
337a0696f1
update guide
2022-09-10 22:22:30 -04:00
Simon Cruanes
f024fe821e
add regression test
2022-09-10 21:55:49 -04:00
Simon Cruanes
c9127c6cd7
fix(base/form): fix CNF for equiv
2022-09-10 21:48:51 -04:00
Simon Cruanes
fd39a414c3
fix(smt): sign error in literal
2022-09-10 21:48:08 -04:00
Simon Cruanes
7876820d4d
remove dead code
2022-09-10 15:02:44 -04:00
Simon Cruanes
87e91660ad
doc: update guide for now
2022-09-10 15:02:17 -04:00
Simon Cruanes
b8ee815d9d
update tools
2022-09-10 14:59:52 -04:00
Simon Cruanes
721ed2eac0
refactor(preprocess): introduce Find_foreign, runs after preprocess
2022-09-10 14:10:36 -04:00
Simon Cruanes
3d95fc16c4
feat(cc): use Term.pp. not Term.pp_debug
2022-09-10 14:10:13 -04:00
Simon Cruanes
8811699410
feat(term): add open_eq
2022-09-10 14:09:55 -04:00
Simon Cruanes
659fa7ba5b
wip: feat(lra): update to newer preprocessing
2022-09-09 22:16:59 -04:00
Simon Cruanes
e9c2491380
feat(th-bool): properly preprocess in equiv
2022-09-09 22:16:48 -04:00
Simon Cruanes
e94a7bd31c
refactor(preprocess): directly forward preprocess actions to solver
2022-09-08 22:05:40 -04:00
Simon Cruanes
c9138144f3
refactor(preprocess): break infinite recursion
2022-09-08 21:55:09 -04:00
Simon Cruanes
317f406620
wip: refactor(preprocess): recursive preprocess guided by theories
2022-09-07 19:35:09 -04:00
Simon Cruanes
6101e029b3
feat(core): add box, with a box constant
...
this is a good alternative to gensym for preprocessing, as it is
idempotent and functional.
2022-09-07 19:34:31 -04:00
Simon Cruanes
f7daf7e45e
wip: add theory combination to Preprocess, based on claim hooks
...
theories must register hooks that specify what terms they claim for
their own, so that preprocess (which look at all terms and has the
global picture) can find where foreign terms are and give these to th
combination.
2022-09-03 14:45:09 -04:00
Simon Cruanes
16eb12fac2
wip: preprocess in its own file
2022-09-03 14:09:13 -04:00
Simon Cruanes
e74439cf2a
wip: new attempt at theory combination
2022-09-01 22:34:27 -04:00
Simon Cruanes
47a0b075f0
fix(model builder): allow multiple add
2022-09-01 22:33:59 -04:00
Simon Cruanes
d741b4160d
remove is_valid_literal concept
2022-09-01 22:33:40 -04:00
Simon Cruanes
efc01f507b
feat(term): add is_pi and weak containers
2022-09-01 22:33:15 -04:00
Simon Cruanes
2092bbef3f
feat(gensym): add reset
2022-09-01 22:32:52 -04:00
Simon Cruanes
0797ff0409
tiny helper
2022-09-01 22:32:24 -04:00
Simon Cruanes
8db63dbdc4
th-comb: remove claim-term, add claim-type
2022-09-01 22:31:50 -04:00