Commit graph

573 commits

Author SHA1 Message Date
Leonardo de Moura
483f32edd8 feat: in pure code, do use assume Id monad at do notation
This feature produced counterintuitive behavior and confused users.
See discussion at #770.

As pointed out by @tydeu, it is not too much work to write `Id.run <|`
before the `do` when we want to use the `do` notation in pure code.

closes #770
2021-12-10 12:55:14 -08:00
Sebastian Ullrich
265c18accd doc: faq: bullet points look weird and are not anchors 2021-12-09 11:53:25 +01:00
Sebastian Ullrich
45917f2f90 chore: Nix: simplify package instructions 2021-12-04 12:14:47 +01:00
ammkrn
80c04c562a doc: add/edit macro guide
Incorporate review changes to the doc book suggested by Kha.
2021-11-22 11:02:07 +01:00
ammkrn
7539799976 doc: add macro guide, light reorganizing
Sebastian suggested moving the macro guide from Mathlib4 upstream into the Lean 4 manual (called `macro_overview.md` here). There was some discussion about where to put it; the section on metaprogramming seemed like the most appropriate place. I did a little bit of reorganizing to make some items more discoverable (e.g. the user-defined notation section).
2021-11-22 11:02:07 +01:00
Sebastian Ullrich
dbdb92a411 doc: advise using Developer Mode on Windows 2021-11-19 10:09:26 +01:00
Sebastian Ullrich
c5b6968c86 chore: symlink to source from build dir 2021-11-19 10:09:26 +01:00
Leonardo de Moura
47956b9b9e chore: fix test 2021-11-15 18:47:25 -08:00
Leonardo de Moura
c67541570f fix: fixes #787 2021-11-15 18:31:57 -08:00
Sebastian Ullrich
941b4c21e0 chore: CRLF be gone 2021-11-09 09:49:09 +01:00
Sebastian Ullrich
c29ad9a9b3 doc: ubuntu: specify fewer versions that will become outdated anyway 2021-11-09 09:41:18 +01:00
Sebastian Ullrich
b2f331f502 doc: --load-dynlib 2021-11-04 15:32:07 -07:00
Sebastian Ullrich
571fc66864 doc: ffi: move into dev/ 2021-10-29 08:46:31 -07:00
Sebastian Ullrich
81dca2ceb8 doc: ffi: address review 2021-10-29 08:46:31 -07:00
Sebastian Ullrich
627900ba9f doc: FFI 2021-10-29 08:46:31 -07:00
Sebastian Ullrich
40cf61f67b doc: very important clarification 2021-10-29 07:52:48 -07:00
Sebastian Ullrich
436b31b83c doc: quickstart: updated Windows instructions 2021-10-22 09:57:07 +02:00
Sebastian Ullrich
51a41705cb feat: allow more atoms starting with "`" 2021-10-19 14:10:31 +02:00
Sebastian Ullrich
7a91c494b9 chore: submodule hints 2021-10-15 06:56:02 -07:00
Sebastian Ullrich
74b813fbcd doc: restructure make/index.md
debug builds are not very interesting currently given the state of
debugging Lean code
2021-10-15 06:56:02 -07:00
Siddharth
66fcfcce37
doc: tutorial on parsing the arithmetic grammar using macros
* add arith

* Fixup based on Sebastian's feedback

* style nits

* add explanation about parsing precedence

* add Sebastian's suggest test case

Add the test case into the example to make sure we parse a*b+c as well
as a+b*c correctly.

* grammar pass

* Update doc/tutorial/metaprogramming-arith.md

Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch>

* Update doc/tutorial/metaprogramming-arith.md

Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch>

* use pretty arrows, 2 spaces, [Arith| ... ]

* typo: :+ and :* had sneaked back in

* Update doc/tutorial/metaprogramming-arith.md

Co-authored-by: Wojciech Nawrocki <wjnawrocki+gh@protonmail.com>

* Update doc/tutorial/metaprogramming-arith.md

Co-authored-by: Wojciech Nawrocki <wjnawrocki+gh@protonmail.com>

* Update doc/tutorial/metaprogramming-arith.md

Co-authored-by: Wojciech Nawrocki <wjnawrocki+gh@protonmail.com>

* Update doc/tutorial/metaprogramming-arith.md

Co-authored-by: Gabriel Ebner <gebner@gebner.org>

* move all #print to #check

Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch>
Co-authored-by: Wojciech Nawrocki <wjnawrocki+gh@protonmail.com>
Co-authored-by: Gabriel Ebner <gebner@gebner.org>
2021-10-12 08:51:17 +02:00
Chris Lovett
2860ba96f5
doc: fix some syntax and link in the docs, and more 2021-10-10 11:36:43 +02:00
Sebastian Ullrich
db755b6081 doc: temp fix
/cc @leodemoura
2021-10-07 12:59:14 +02:00
Sebastian Ullrich
762304f8b7 doc: fix 2021-10-03 21:19:45 +02:00
Siddharth
4b1b76ae51 doc: add metaprogramming docs of Dyck grammar parsing.
* LEAN4 -> Lean 4; directive -> command

* directive -> command everywhere
2021-10-02 11:08:26 -07:00
Sebastian Ullrich
ee73ad9f23 chore: update mdBook fork 2021-09-30 13:02:39 +02:00
Chris Lovett
2ca4188fc3 doc: somehow wsl2.md was created so the page on https://leanprover.github.io/lean4/doc/make/wsl2.html is empty. This fixes that. 2021-09-23 23:26:35 +02:00
Chris Lovett
3a20b6be8a
doc: add wsl setup docs and reorganize a new "dev" folder 2021-09-23 09:21:39 +02:00
Chris Lovett
ad7c5b26a7
fix: UTF-8 file path support for lean on Windows
* fix msys2 windows build so the windows apps support utf-8 file paths.

* use windres to compile default-manifest.o

* windres is in binutils.

* stop modifying default-manifest.o

* copy to stage0

* fix semicolon joining of lists in add_custom_target

* undo changes to stage0 as per CR feedback.

* fix makefile

* fix: revert cmakelists.txt COMMAND_EXPAND_LISTS  change

* fix: msys2 dependencies

* add unit test for decoding UTF-8 chars to prove "lean.exe" can read utf-8 encoded files where utf-8 is also used in the file name.

* fix: utf-8 test by using windows-2022

* fix: do we really need cmake 3.11 or will 3.10 do?

* nope, really does require cmake 11.
2021-09-22 12:21:52 +02:00
Leonardo de Moura
fe66523e43 chore: fix doc 2021-09-16 10:32:00 -07:00
Chris Lovett
1591bb1640 doc: fix msys text based on code review feedback 2021-09-10 10:07:57 +02:00
Chris Lovett
bc3900cbb9 doc: small fixes 2021-09-07 19:19:58 -07:00
Leonardo de Moura
65509c5617 doc: add basic perf documentation 2021-09-06 07:12:36 -07:00
Leonardo de Moura
acfa2d7e78 doc: start porting reference manual 2021-08-27 19:30:08 -07:00
Sebastian Ullrich
5f4b1b1d44 Revert "Revert "feat: reintroduce libleanshared, link lean & leanpkg against it""
This reverts commit ccbc9d00db.
2021-08-20 09:42:05 -07:00
Sebastian Ullrich
ccbc9d00db Revert "feat: reintroduce libleanshared, link lean & leanpkg against it" 2021-08-20 15:39:00 +02:00
Sebastian Ullrich
440abd4bd1 chore: CI: switch to GCC on Windows for now
See discussion at https://github.com/leanprover/lean4/pull/555
2021-08-18 13:54:52 +02:00
Sebastian Ullrich
917eb4d081 chore: collect stdlib compilation flags in new header 2021-08-12 07:51:50 -07:00
Sebastian Ullrich
7e78de978d doc: further bootstrapping complications 2021-08-12 07:51:50 -07:00
Sebastian Ullrich
119f685cda
doc: fix link 2021-08-08 18:39:28 +02:00
Sebastian Ullrich
40274e487f chore: fix docs 2021-08-08 13:26:46 +02:00
Sebastian Ullrich
341b4ac652 doc: link to some macro documentation 2021-08-08 12:41:59 +02:00
Sebastian Ullrich
2c3067e91b doc: bundle updated lean4.py Pygments file and lstlean.tex 2021-07-12 11:33:13 -07:00
WojciechKarpiel
deb9c9410d doc: fix typo in the manual
Fix for a simple typo (`it behave` -> `it behaves`, `continue` -> `break`)
2021-07-10 10:35:51 +02:00
Hunter Monroe
67bffa7de0
doc: correct typo “command instruct” ->”command instructs” 2021-07-03 11:22:04 +02:00
Leonardo de Moura
d55c069172 fix: docs 2021-06-29 22:14:16 -07:00
Sebastian Ullrich
10cf219213 doc: clarify RFC issues 2021-06-04 14:12:59 +02:00
Sebastian Ullrich
7839f2c99b doc: direct link & instructions for elan on Windows 2021-06-01 16:38:03 +02:00
Sebastian Ullrich
812c8d0d6e doc: clarify Windows limitations 2021-06-01 16:12:16 +02:00
Sebastian Ullrich
a02c6fd3eb chore: adapt stdlib & tests 2021-05-20 15:17:36 -07:00