Commit graph

171 commits

Author SHA1 Message Date
Leonardo de Moura
78ad24a697 feat(frontends/lean/server): add SYNC command, closes #199 2014-09-16 18:42:34 -07:00
Leonardo de Moura
5aa0ef56eb doc(server): add FINDG and FINDP documentation, closes #144
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-06 09:17:15 -07:00
Leonardo de Moura
6632a50015 refactor(library): add namespaces 'or', 'and' and 'iff'
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-04 21:25:21 -07:00
Leonardo de Moura
68d9bef860 refactor(library): add 'eq' and 'ne' namespaces
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-04 18:41:06 -07:00
Leonardo de Moura
2bc6f92d33 refactor(library): add 'and' namespace
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-04 17:44:53 -07:00
Leonardo de Moura
364bba2129 feat(frontends/lean/inductive_cmd): prefix introduction rules with the name of the inductive datatype
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-04 17:26:36 -07:00
Leonardo de Moura
ffc871ea8c feat(frontends/lean/server): only display 'EXTRA_TYPE' info when the column number is provided to the 'INFO' command, closes #133
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-04 14:02:53 -07:00
Leonardo de Moura
e51c4ad2e9 feat(frontends/lean): rename 'using' command to 'open'
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-03 16:00:38 -07:00
Leonardo de Moura
31b1436a88 doc(doc/server): update server documentation
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-03 09:37:10 -07:00
Leonardo de Moura
d7da307f85 feat(frontends/lean/server): add 'OPTIONS' command to 'lean --server'
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-29 12:59:22 -07:00
Leonardo de Moura
6b7e79b62f feat(library/data/nat): mark more arguments implicit
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-28 10:38:58 -07:00
Leonardo de Moura
2d78387541 refactor(library/logic/basic): rename absurd_elim to absurd, delete contrapos and trivial_not_true theorems
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-27 18:34:09 -07:00
Leonardo de Moura
a8d58fdd33 refactor(library): mark absurd_elim argument as implicit
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-26 18:27:39 -07:00
Leonardo de Moura
800d3bd70a fix(doc/lean/tutorial): typos
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-25 11:22:15 -07:00
Leonardo de Moura
4a9e48d249 feat(doc/authors.md): update authors.md page
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-25 11:00:45 -07:00
Leonardo de Moura
dbaf81e16d refactor(library): remove unnecessary 'standard' subdirectory
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-23 18:08:09 -07:00
Leonardo de Moura
8375626cb6 fix(doc/lean/tutorial): adjust tutorial to library changes, fix test
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-20 18:32:53 -07:00
Leonardo de Moura
dcc8f4e4fc feat(frontends/lean/elaborator): generate identifier information for overloaded identifiers
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-17 15:18:51 -07:00
Leonardo de Moura
0073ddf583 feat(frontends/lean): add 'SYMBOL' and 'IDENTIFIER' information to info_manager
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-17 15:06:46 -07:00
Leonardo de Moura
f56a467bfd chore(doc/server): update server mode documentation
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-15 17:53:06 -07:00
Leonardo de Moura
b4775eb017 feat(frontends/lean/server): add EVAL command, closes #40
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-14 16:08:43 -07:00
Leonardo de Moura
9f3f42f6a5 feat(frontends/lean/server): add SET command
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-14 14:40:46 -07:00
Leonardo de Moura
be8ee8b3c0 feat(frontends/lean): add information about synthesized placeholders, closes #39
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-14 10:37:24 -07:00
Leonardo de Moura
faf2795a7b feat(frontends/lean/server): add VISIT and CHECK commands
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-11 10:40:18 -07:00
Leonardo de Moura
34f0dedf46 feat(frontends/lean/server): add 'INSERT' and 'REMOVE' commands to lean 'server', make sure all commands use the same convention for numbering lines, update server.org
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-10 19:57:24 -07:00
Leonardo de Moura
72e4f113b3 doc(server): describe server mode format
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-06 23:16:37 -07:00
Leonardo de Moura
8e6324185a fix(tests/lean): adjust tests to new library structure
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-01 09:37:23 -07:00
Leonardo de Moura
105c29b51e refactor(library/standard): use new coding style, rename bool.b0 and bool.b1 to bool.ff and bool.tt
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-07-28 19:59:38 -07:00
Leonardo de Moura
df8b88dca2 chore(doc/todo): update todo list
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-07-28 12:08:54 -07:00
Leonardo de Moura
2b4bd66081 feat(build): generate tests for all code blocks in org-files, and examples at ./examples/standard
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-07-28 12:06:11 -07:00
Leonardo de Moura
8ad6d7a98b doc(doc/lean): update Lean tutorial to Lean 0.2, and use org-mode
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-07-28 10:52:09 -07:00
Soonho Kong
435a582bb0 doc(make/osx-10.9.md): take out tap, bump up version to 10.9 2014-07-08 09:41:02 -04:00
Leonardo de Moura
cb000eda13 refactor(kernel): store binder_infor in local constants
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-30 11:37:46 -07:00
Leonardo de Moura
60a1ac3192 doc(cmake/osx10.8): add note regarding multi-thread support on OSX
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-07 12:43:40 -07:00
Leonardo de Moura
53ca4bc193 doc(doc/lua): add variable and lambda abstraction API documentation
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-06 11:54:15 -07:00
Leonardo de Moura
54ec66709c doc(doc/lua): add constant and function application API documentation
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-06 11:01:03 -07:00
Leonardo de Moura
38f471b390 doc(doc/lua): add universe polymorphism elimator example
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-04 16:28:07 -07:00
Leonardo de Moura
a522398194 fix(doc/lua): typo
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-04 15:06:44 -07:00
Leonardo de Moura
980eb2fa5c fix(doc/lua): typos in the documentation
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-02 18:14:19 -07:00
Leonardo de Moura
5f3ac6287f fix(doc/lua): markup
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-02 17:47:25 -07:00
Leonardo de Moura
c0b82412db doc(doc/lua): add universe level documentation
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-06-02 17:36:07 -07:00
Leonardo de Moura
045a83153c doc(lua): update Lua API documentation, and reactivate doc tests
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-05-27 08:09:54 -07:00
Leonardo de Moura
7142c0fed3 doc(demo): remove Lean 0.1 demo files
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-05-17 10:43:30 -07:00
Soonho Kong
4fddc5b8bc chore(travis): use lean-build@googlegroups 2014-05-02 17:21:54 -04:00
Leonardo de Moura
69bfc682b4 chore(*): replace leodemoura with leanprover
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-04-29 15:31:29 -07:00
Leonardo de Moura
ec27a70908 doc(*): update documentation and add link to Lean 0.1
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-03-18 11:00:49 -07:00
Leonardo de Moura
bbdf8bb68e doc(todo): update todo
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-03-18 10:49:18 -07:00
Leonardo de Moura
0760b5b53d doc(todo): update todo list 2014-02-08 09:23:56 -08:00
Leonardo de Moura
ded72f94b2 doc(todo): update todo list 2014-02-08 09:23:13 -08:00
Leonardo de Moura
5454e2af32 doc(todo): remove item from todo list
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-02-07 15:04:10 -08:00
Leonardo de Moura
5efc60d1f1 doc(todo): add another item to todo list 2014-02-06 18:07:06 -08:00
Leonardo de Moura
45ef10e2c1 doc(todo): update todo list 2014-02-06 17:01:30 -08:00
Leonardo de Moura
ba9a8f9d98 feat(frontends/lean): add 'show' expression syntax sugar
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-02-06 07:50:22 -08:00
Leonardo de Moura
cbe89ca32e doc(doc/todo): update TODO list
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-02-02 19:19:49 -08:00
Leonardo de Moura
17eb2374ee doc(README): add link to tutorial in the main page
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-02-02 19:14:02 -08:00
Leonardo de Moura
9fa03db42b doc(doc/lean/tutorial): expand the tutorial
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-02-02 19:09:55 -08:00
Leonardo de Moura
759aa61f70 refactor(builtin/kernel): define if-then-else using Hilbert's operator
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-30 19:28:42 -08:00
Leonardo de Moura
b55aee1efd doc(demo): add another example into demo set
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-28 10:11:58 -08:00
Leonardo de Moura
9bdf076342 doc(demo): add files for making demos
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-28 09:59:16 -08:00
Leonardo de Moura
ceff335bb8 doc(doc/lean/tutorial): update tutorial
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-26 22:58:44 -08:00
Leonardo de Moura
a43020b31b refactor(kernel): remove heterogeneous equality
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-16 17:39:12 -08:00
Leonardo de Moura
ccb9faf065 refactor(*): error messages
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-13 16:54:21 -08:00
Leonardo de Moura
d83a13d044 doc(doc/lean/tutorial): update tutorial
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-12 21:56:08 -08:00
Leonardo de Moura
2179e57db3 refactor(builtin): move if_then_else to its own module
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-09 14:08:39 -08:00
Leonardo de Moura
57c0006916 chore(*): cleanup lean builtin symbols, replace :: with _
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-09 08:33:52 -08:00
Leonardo de Moura
e42b616438 fix(kernel/normalizer): equality between semantic attachments
Given a heterogenous equality:  a == b
The normalizer will only reduce it if a and b are objects of the same kind.
Now, 1 == true is not reduced to false anymore.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-08 19:10:30 -08:00
Leonardo de Moura
048151487e feat(kernel): use Pi as forall/implication
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-08 00:38:39 -08:00
Leonardo de Moura
d9c41e7282 doc(lean): add tutorial draft, and fix lexical documentation
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-07 00:06:32 -08:00
Leonardo de Moura
feae89d019 fix(doc/design): reflect changes in Lean syntax
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-06 11:51:15 -08:00
Leonardo de Moura
62bb2ab2f9 fix(builtin/Nat): name convention
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-06 11:41:14 -08:00
Leonardo de Moura
8c956280d9 chore(frontends/lean): rename setoption and setopaque commands to set::option and set::opaque
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-06 11:41:03 -08:00
Leonardo de Moura
935c2a03a3 feat(*): change name conventions for Lean builtin libraries
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-05 19:21:44 -08:00
Leonardo de Moura
9d6bd7501c feat(doc/lean): include lean documentation scripts in the test set
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-05 13:16:47 -08:00
Leonardo de Moura
028a9bd9bd feat(frontends/lean/scanner): use Lua style comments in Lean
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-05 08:53:27 -08:00
Leonardo de Moura
03cf9be8b5 doc(doc/lean/calc.md): link to Nat.lean
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-03 11:59:24 -08:00
Leonardo de Moura
66ec538c63 doc(doc/lean/calc.md): calculational proof documentation
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-03 11:52:21 -08:00
Leonardo de Moura
3874e23a76 doc(doc/lean): expressions
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-12-26 21:29:54 -08:00
Leonardo de Moura
f27105d17f doc(doc/lean): lexical conventions
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-12-23 22:50:13 -08:00
Leonardo de Moura
8d7bd34059 fix(doc/make/split-stack): typo
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-12-09 22:45:13 -08:00
Leonardo de Moura
d06f4fa3d1 fix(doc/make/split-stack): typos
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-12-09 22:41:16 -08:00
Leonardo de Moura
0cd8e3e76b feat(split-stack): add support for split-stacks (no more stackoverflows)
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-12-09 22:30:54 -08:00
Leonardo de Moura
29613e45ad doc(README.md): Boost support
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-12-09 17:45:31 -08:00
Leonardo de Moura
1eeec07713 doc(lua): add options documentation
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-28 11:02:34 -08:00
Leonardo de Moura
6cb8300076 doc(lua): add S-expression documentation
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-28 10:33:32 -08:00
Leonardo de Moura
a98fdd9be6 refactor(shell): combine lean and leanlua executables in a single executable
The main motivation is to allow users to configure/extend Lean using .lua files before loading the actual .lean files.
Example:
        ./lean extension1.lua extension2.lua file.lean

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-19 16:48:21 -08:00
Leonardo de Moura
28ac7f7791 doc(lua): add mpz and mpq Lua API documentation
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-19 13:31:35 -08:00
Leonardo de Moura
3ef04b3e82 fix(doc/lua): extra lines in the automatically generated .md.lua
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-19 13:25:42 -08:00
Leonardo de Moura
70c410eba2 doc(lua): add link to wikipedia splay tree page
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-18 21:29:48 -08:00
Leonardo de Moura
5247d3b16b doc(lua): add sections on Lua tables and splay maps
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-18 21:26:34 -08:00
Leonardo de Moura
87775cbc07 chore(build): include incorrect output in the logs
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-18 15:39:55 -08:00
Soonho Kong
20756c382c test(*): split leantests, leanslowtests, leanluatests, leanluadocs into singletons 2013-11-18 18:27:11 -05:00
Leonardo de Moura
88b2feff6f test(doc/lua): add script for validating examples in the Lua API documentation
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-18 12:49:57 -08:00
Leonardo de Moura
972721006e doc(lua): add main file for Lua API documentation
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-18 12:42:50 -08:00
Soonho Kong
ed4526a4f0 doc(coding_style.md): add section about git pre-push hook
[skip ci]
2013-11-11 20:18:38 -05:00
Leonardo de Moura
4eadd0b7d8 doc(README): add lua
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-08 10:43:52 -08:00
Leonardo de Moura
30d54fa483 chore(todo): update todo list 2013-11-07 15:25:03 -08:00
Leonardo de Moura
a16c41c2c7 chore(todo): update todo list 2013-11-07 15:24:41 -08:00
Leonardo de Moura
9c18439eb2 chore(todo): update todo list 2013-11-07 15:24:09 -08:00
Soonho Kong
7944db2f18 doc(coding_style): add how to organize template source code
[skip ci]
2013-10-28 11:31:46 -04:00
Leonardo de Moura
833c513840 doc(commit_convention): add new category
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-10-25 09:23:14 -07:00