Commit graph

5965 commits

Author SHA1 Message Date
Leonardo de Moura
a5fb28ca78 chore(frontends/lean,tests): fix tests and style 2016-07-09 10:29:34 -07:00
Floris van Doorn
e4071639f1 fix(builtin_cmds): metavar_args should be false by default 2016-07-09 10:21:17 -07:00
Sebastian Ullrich
e9a6a532ab fixup! also allow shadowing non-constructor definitions 2016-07-09 10:19:23 -07:00
Sebastian Ullrich
d7789fa58a feat(frontends/lean): support variables shadowing in patterns 2016-07-09 10:19:23 -07:00
Sebastian Ullrich
87c5ba9f52 Revert "fix(library/definitional/equations): add more equation validation to avoid obscure error message"
This reverts commit a3bc1b0cd5.
2016-07-09 10:19:23 -07:00
Sebastian Ullrich
54844e2325 feat(frontends/lean): add parent classes to local context in struct definitions
Fixes #1066
2016-07-05 19:39:57 -07:00
Soonho Kong
3941cc1839 feat(emacs/lean-input.el): add exclude-list to lean-input-export-translations 2016-06-04 05:43:38 -04:00
Soonho Kong
d2b9fd073f feat(CMakeLists.txt): include cpp14_lang/sized_deallocation.cmake
Previously, it downloaded cpp14_lang/sized_deallocation.cmake file from
Github during cmake was running. This worked in most cases but failed in an
environment where network connection was not provided. A particular
example is to build Ubuntu packages. See [1] for details.

This patch is to include cpp14_lang/sized_deallocation.cmake file in the
repository. It also set COMP_CMAKE_PATH to indicate the location of the
pre-downloaded file. 'CACHE INTERNAL ""' is required to set the scope of
COMP_CMAKE_PATH file so that it's visible inside of
'CompBase.cmake'. See [2] for details.

[1]: https://launchpadlibrarian.net/263258156/buildlog_ubuntu-precise-amd64.lean_0.2.0.20160603023524.gitc73b2860d5211187e9aa1039d1a49dcabdca4292~12.04_BUILDING.txt.gz

[2]: https://cmake.org/cmake/help/v2.8.12/cmake.html#command:set
2016-06-03 12:00:43 -04:00
Sebastian Ullrich
c73b2860d5 fix(frontends/lean): uniform handling of declaration compound names
* allow compound names in `namespace` and `structure`
* adjust error messages
2016-06-02 18:07:03 -07:00
Soonho Kong
bf9f3ddb3c fix(CMakeLists.txt): update cmake minimum version to 2.8.12
In #1060, we start using compatibility module which requires cmake version >= 2.8.12.
2016-06-02 15:38:23 -04:00
Lev Nachmanson
08b18804fd dev(lp): fix column_info initialization in lp_solver
Signed-off-by: Lev Nachmanson <levnach@microsoft.com>
2016-06-02 11:33:36 -07:00
Lev Nachmanson
3d818f62a4 dev(lp): refactor the lar_core_solver parameters into a separate struct
Signed-off-by: Lev Nachmanson <levnach@microsoft.com>
2016-06-02 11:33:36 -07:00
Lev Nachmanson
1529eb1e41 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:33:36 -07:00
Lev Nachmanson
0bb21914e6 dev(lp): simplify the design of lar_solver
Signed-off-by: Lev Nachmanson <levnach@microsoft.com>
2016-06-02 11:33:36 -07:00
Lev Nachmanson
1d3c46e712 dev(lp): add a file
Signed-off-by: Lev Nachmanson <levnach@microsoft.com>
2016-06-02 11:33:36 -07:00
Lev Nachmanson
d823349d2e dev(lp): integrate with z3
Signed-off-by: Lev Nachmanson <levnach@microsoft.com>
2016-06-02 11:33:36 -07:00
Sebastian Ullrich
f2200fab65 feat(frontends/lean/pp): add option to hide binder types 2016-06-02 11:28:00 -07:00
Soonho Kong
e44f9a0e62 feat(util/memory.cpp): use COMP_HAS_SIZED_DEALLOCATION macro
To conditionally include sized deallocation definitions.

Related issue #1044
2016-06-02 11:16:17 -07:00
Soonho Kong
5cda399125 feat(CMakeLists.txt): use compatibility module to check sized_deallocation feacture
related issue #1044

see https://github.com/foonathan/compatibility
2016-06-02 11:16:17 -07:00
Sebastian Ullrich
cfc5a20b4a fix(util/memory): add C++14 sized delete operators
Fixes #1044
2016-06-02 11:16:17 -07:00
Sebastian Ullrich
057935d844 fix(emacs): set pp.width to column width instead of buffer width of flycheck error list 2016-05-29 23:09:25 -04:00
Sebastian Ullrich
9fa30e3f7d chore(emacs): remove Lua support 2016-05-12 01:44:06 -04:00
Jeremy Avigad
ef95a04d21 chore(README.md): add link to Emacs mode information. Closes #1046. 2016-05-06 14:15:51 -07:00
Jeremy Avigad
b02009fcb9 feat(src/emacs/README.md): add more information about key bindings and commands 2016-05-06 14:15:51 -07:00
Soonho Kong
2ef22fceca fix(util/lp/lp_solver.h): get_max_iterations_per_stage returns unsigned
related issue #1051
2016-05-06 11:36:40 -04:00
Daniel Selsam
eeee7d51cf chore(kernel/error_msgs): show inferred type when function expected 2016-04-11 09:47:14 -07:00
Sebastian Ullrich
5810a4de8f fix(emacs/lean-server.el): invoke lean --server from project root if existent 2016-04-11 09:42:34 -07:00
Sebastian Ullrich
08c55754a9 fix(emacs/lean-mode.el): invoke lean from project root if existent 2016-04-11 09:42:34 -07:00
Sebastian Ullrich
543d7702f0 fix(shell/lean): fix documentation of some cmdline options 2016-04-11 09:42:34 -07:00
Leonardo de Moura
226f8bafeb fix(library/tactic/rewrite_tactic): do not allow projections to be unfolded
fixes #1032

This is just a workaround. A better fix has been implemented in the
lean3 branch.
2016-03-28 13:02:57 -07:00
Leonardo de Moura
a07ad6df62 fix(library/tmp_type_context): fixes #1033
This is just a workaround.
tmp_type_context is dead code in lean3.
2016-03-28 09:38:22 -07:00
Leonardo de Moura
6f74f65220 fix(library/type_context): instantiate was not replacing all assigned metavars 2016-03-23 13:37:33 -07:00
Daniel Selsam
8f0a0d2b32 feat(library/export, doc/export_format): remove support for mutually inductive types 2016-03-10 20:22:47 -08:00
Leonardo de Moura
d4f0ce0eab fix(library/local_context): typo 2016-03-09 13:59:21 -08:00
Soonho Kong
c50ab524a5 fix(emacs/lean-project.el): update prompt message, have standard as a defualt
close #1017
2016-03-04 15:18:45 -05:00
Soonho Kong
7e64405f5e fix(emacs/lean-project.el): check project-type argument
close #1017
2016-03-04 12:11:36 -05:00
Floris van Doorn
e5d5ef9d55 feat(hott/library): various changes and additions.
Most notably:
Give le.refl the attribute [refl]. This simplifies tactic proofs in various places.
Redefine the order of trunc_index, and instantiate it as weak order.
Add more about pointed equivalences.
2016-03-03 10:13:20 -08:00
Leonardo de Moura
d84a20d68b remove(frontends/lean/server): FINDG command 2016-03-03 10:12:24 -08:00
Leonardo de Moura
22f3efc5be remove(frontends/lean): begin_end pre-tactics
This was never used
2016-03-03 10:02:09 -08:00
Leonardo de Moura
d54a67cf2e fix(library): compilation warnings on OSX 2016-03-03 10:02:00 -08:00
Leonardo de Moura
6f766dd33e chore(library/blast): cleanup 2016-03-03 10:01:50 -08:00
Leonardo de Moura
5194df5e97 feat(library/local_context): encode order using a tree instead of a list
Motivations:
- It will be faster to delete local declarations.
- It is faster to find all local declarations that were created after a
give local declaration.
2016-03-01 16:23:51 -08:00
Leonardo de Moura
82fb38b440 feat(util/rb_tree): add for_each_greater 2016-03-01 15:42:27 -08:00
Leonardo de Moura
2a4b3b75bd refactor(library/blast/state): simplify blast state 2016-03-01 14:27:58 -08:00
Leonardo de Moura
16dc021736 fix(library/proof_irrel_expr_manager): add missing Let case 2016-03-01 14:27:37 -08:00
Leonardo de Moura
4e67a35179 feat(library/blast/blast): add missing Let case, and comment to indicate
performance problem
2016-03-01 13:47:43 -08:00
Daniel Selsam
c23528b5d8 feat(library/blast/blast): use defeq_simplifier to normalize 2016-03-01 13:44:33 -08:00
Daniel Selsam
20e7ff39cc feat(library/proof_irrel_expr_manager): eq and hash modulo proof irrelevance 2016-03-01 13:44:33 -08:00
Daniel Selsam
a9c6bce7cc feat(library/defeq_simplifier): some generic normalization 2016-03-01 13:43:50 -08:00
Leonardo de Moura
2982db6f80 feat(library/local_context): add new local context type 2016-03-01 13:40:37 -08:00