Commit graph

11817 commits

Author SHA1 Message Date
Leonardo de Moura
2c4935148c fix(frontends/lean/decl_cmds): recursive equations for meta-definitions 2016-06-02 17:12:21 -07:00
Leonardo de Moura
df0d39ccee feat(kernel,library/definitional,frontends/lean/structure_cmd): make sure we can define inductive datatypes and structures containing untrusted declarations
If they contain untrusted declarations, then the associated
declarations (e.g., constructors) will be automatically tagged as untrusted.
2016-06-02 16:19:06 -07:00
Leonardo de Moura
924f3629ee feat(library/vm): expose name of the C++ functions that implement builtins 2016-06-02 12:48:43 -07:00
Sebastian Ullrich
647078bd40 feat(frontends/lean/pp): add option to hide binder types
Replace old pp.hide_binder_types option

Conflicts:
        src/frontends/lean/pp.cpp
        src/library/pp_options.cpp
        src/library/pp_options.h
2016-06-02 12:01:57 -07:00
Soonho Kong
b95bc8ff5b feat(util/memory.cpp): use COMP_HAS_SIZED_DEALLOCATION macro
To conditionally include sized deallocation definitions.

Related issue #1044
2016-06-02 11:53:08 -07:00
Soonho Kong
962460dbc2 feat(CMakeLists.txt): use compatibility module to check sized_deallocation feacture
related issue #1044

see https://github.com/foonathan/compatibility
2016-06-02 11:52:59 -07:00
Sebastian Ullrich
ac4efdf660 fix(util/memory): add C++14 sized delete operators
Fixes #1044
2016-06-02 11:52:51 -07:00
Lev Nachmanson
5f565cfbe5 dev(lp): fix column_info initialization in lp_solver
Signed-off-by: Lev Nachmanson <levnach@microsoft.com>
2016-06-02 11:51:52 -07:00
Lev Nachmanson
2aea6066fa dev(lp): refactor the lar_core_solver parameters into a separate struct
Signed-off-by: Lev Nachmanson <levnach@microsoft.com>
2016-06-02 11:51:45 -07:00
Lev Nachmanson
9680081376 dev(lp): move some dummy field from lar_solver to lar_core_solver
Signed-off-by: Lev Nachmanson <levnach@microsoft.com>
2016-06-02 11:51:37 -07:00
Lev Nachmanson
1f9ef61839 dev(lp): simplify the design of lar_solver
Signed-off-by: Lev Nachmanson <levnach@microsoft.com>
2016-06-02 11:51:29 -07:00
Lev Nachmanson
96824e375b dev(lp): add a file
Signed-off-by: Lev Nachmanson <levnach@microsoft.com>
2016-06-02 11:51:18 -07:00
Lev Nachmanson
c2d795e46a dev(lp): integrate with z3
Signed-off-by: Lev Nachmanson <levnach@microsoft.com>
2016-06-02 11:51:07 -07:00
Leonardo de Moura
06cb26176c feat(library/vm): expose C++ options object 2016-06-02 11:46:17 -07:00
Leonardo de Moura
417e5ec604 chore(library/vm/vm): typo 2016-06-02 11:46:07 -07:00
Leonardo de Moura
a6a7daff59 refactor(library/vm): avoid constants.txt when creating bindings 2016-06-02 11:45:56 -07:00
Leonardo de Moura
a05f8719df fix(library/definitional/equations): fix missing case 2016-06-01 19:28:48 -07:00
Leonardo de Moura
35ed68e3c2 feat(library/meta): add has_to_string instance for 'name' 2016-06-01 19:24:03 -07:00
Leonardo de Moura
4ae7afd8c4 fix(library/definitional/equations): potential non-termination 2016-06-01 19:23:36 -07:00
Leonardo de Moura
81947e145e feat(library/vm,library/compiler): add support for builtin cases_on 2016-06-01 19:06:52 -07:00
Leonardo de Moura
6f02d30185 feat(library/vm): add basic support for C++ name objects in the VM
We still need to add support for the recursor
2016-06-01 13:10:24 -07:00
Leonardo de Moura
4ab84f7374 feat(library/init): add unsigned integer 2016-06-01 13:06:28 -07:00
Leonardo de Moura
e72a8f4a9b feat(library/vm/vm): add support for builtin constants 2016-06-01 13:05:39 -07:00
Leonardo de Moura
e0035f8d29 feat(frontends/lean/print_cmd): do not display meta constants when executing 'print axioms' cmd 2016-06-01 09:58:23 -07:00
Leonardo de Moura
5382a5a556 feat(frontends/lean): allow unbounded recursion in meta_definitions 2016-06-01 09:55:07 -07:00
Leonardo de Moura
e7b47a504e feat(frontends/lean): add meta_definition and meta_constant commands 2016-06-01 09:12:41 -07:00
Leonardo de Moura
a2c1372d45 feat(frontends/lean/builtin_cmds): generate better error message when vm_eval result is a function 2016-05-31 19:12:02 -07:00
Leonardo de Moura
8bccfc23da feat(library/vm): add example of C function invoking Lean closure 2016-05-31 18:45:14 -07:00
Leonardo de Moura
d1e37f1948 fix(library/vm/vm): invoke_closure 2016-05-31 18:44:53 -07:00
Leonardo de Moura
032750f4cb feat(library/vm/vm): add dynamic declare_vm_builtin 2016-05-31 17:42:42 -07:00
Leonardo de Moura
b31a7bd3e7 feat(library/vm): use cfunction style for nat and IO primitives 2016-05-31 17:22:27 -07:00
Leonardo de Moura
faf70ed58c feat(library/vm/vm): add support for declaring builtin cfunctions 2016-05-31 16:48:11 -07:00
Leonardo de Moura
25903645a7 feat(library/vm/vm): add some sanity checking 2016-05-31 16:29:01 -07:00
Leonardo de Moura
e843062be7 feat(library/vm/vm): add support to builtin c-like functions that use the system stack to pass arguments 2016-05-31 16:19:43 -07:00
Leonardo de Moura
4e5b8e8d0e fix(library/string): conversion from std::string to lean expr 2016-05-31 16:19:01 -07:00
Leonardo de Moura
3a4a2828d2 chore(library/vm): style 2016-05-26 12:57:34 -07:00
Leonardo de Moura
e89082a97e feat(library/vm,library/init): add builtin timeit primitive for profiling 2016-05-26 12:44:49 -07:00
Leonardo de Moura
93ca755e56 fix(library/vm/vm): vm::execute 2016-05-26 12:41:40 -07:00
Leonardo de Moura
29728c0443 feat(library/init/to_string): add fin.has_to_string 2016-05-26 12:02:47 -07:00
Leonardo de Moura
62b8c24c7a feat(library/init/to_string): add decidable.has_to_string 2016-05-26 11:59:54 -07:00
Leonardo de Moura
c9c08ab833 feat(frontends/lean/builtin_cmds): only display vm_eval runtime if --profile is used 2016-05-26 11:46:48 -07:00
Leonardo de Moura
3806792866 feat(frontends/lean/builtin_cmds): use 'to_string' automatically at vm_eval if type has an instance of has_to_string 2016-05-26 11:41:53 -07:00
Leonardo de Moura
6eb377033b chore(library/system/IO): suppress unnecessary universe 2016-05-26 11:41:41 -07:00
Leonardo de Moura
a5908ad671 feat(library/type_context): process arguments before function in def_eq 2016-05-26 11:15:49 -07:00
Leonardo de Moura
cc4b70e5e5 feat(library/vm/vm_nat): add native support for nat.to_string 2016-05-26 10:55:22 -07:00
Leonardo de Moura
05837a2558 refactor(library/vm): move vm_obj <=> string conversion functions to separate module 2016-05-26 10:47:19 -07:00
Leonardo de Moura
f60d088572 feat(library/init): add 'has_to_string' type class 2016-05-26 10:43:26 -07:00
Leonardo de Moura
53811822d4 chore(*): style 2016-05-25 18:10:15 -07:00
Leonardo de Moura
713c97a3be fix(library/compiler/preprocess): make sure no_confusion is not expanded by expand_aux 2016-05-25 17:57:17 -07:00
Leonardo de Moura
d96b3e0172 chore(library/data/hlist): make sure we can generate code for hlist.get 2016-05-25 17:53:17 -07:00