Commit graph

36377 commits

Author SHA1 Message Date
Sebastian Ullrich
51a41705cb feat: allow more atoms starting with "`" 2021-10-19 14:10:31 +02:00
Gabriel Ebner
d379cd6853 fix: out-of-bounds array access 2021-10-19 12:13:17 +02:00
Sebastian Ullrich
b3c8ee2923 fix: add Lake to built-in search path 2021-10-19 10:57:13 +02:00
Sebastian Ullrich
6a90b30875 fix: prefer user-given search paths 2021-10-19 10:57:13 +02:00
Leonardo de Moura
67c8e76b08 fix: preserve unused let declarations
This commit fixes reported at
https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/unused.20let.20disappears/near/257528105
2021-10-18 17:40:15 -07:00
Leonardo de Moura
c425397b45 feat: Hashable instances for UInt8 and UInt16 2021-10-18 17:19:39 -07:00
Leonardo de Moura
e336ff5f93 feat: indentation sensitiviy for macro and elab commands
This commit fixes issue reported at
https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Command.20terminator/near/257674790
2021-10-18 17:16:09 -07:00
Leonardo de Moura
284177a80a feat: missing instances and getOp for byte/float arrays 2021-10-18 16:54:56 -07:00
Leonardo de Moura
2fd024c26f feat: add support for foldlM, foldl, ForIn instances for byte/float arrays 2021-10-18 16:54:56 -07:00
Leonardo de Moura
d03aaec944 feat: expose new float/byte array primitives 2021-10-18 16:54:56 -07:00
Leonardo de Moura
998bec0dd3 feat: new byte/float array primitives 2021-10-18 16:54:56 -07:00
tydeu
aa3f453ebf refactor: cleanup trace code some 2021-10-18 19:38:32 -04:00
Sebastian Ullrich
675f477f38 chore: disable macOS Nix CI until I get around to updating it 2021-10-19 00:07:27 +02:00
tydeu
ffd5bc0f69 refactor: narrow Lean imports 2021-10-18 18:01:31 -04:00
Leonardo de Moura
499449b66f chore: add ignore = untracked 2021-10-18 14:39:43 -07:00
Leonardo de Moura
6b2303b243 fix: bug at tryLemmaCore when numExtraArgs > 1
Fixes bug reported at
https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Simp.20bug.20-.20produces.60application.20type.20mismatch.60/near/257711901
2021-10-18 13:59:19 -07:00
tydeu
bfedab0f9b feat: build C files in print-paths if facet is not oleans 2021-10-18 15:21:43 -04:00
tydeu
4d66b6e4e2 fix: ci: don't use hombrew for MacOS (for now)
Reason: it is missing `lake` (see https://github.com/Homebrew/homebrew-core/pull/87486)
2021-10-18 13:40:50 -04:00
tydeu
44cc860c82 fix: ci: use elan's lake to build (for now)
Reason: `leanmake` build is broken due to bad dep inference
2021-10-18 13:27:58 -04:00
tydeu
53ad51e984 fix: correct the lake lib location of a co-located lake and lean 2021-10-18 12:39:30 -04:00
tydeu
e9443705d5 feat: include hash of lean in module traces
closes leanprover/lake#23
2021-10-18 12:11:56 -04:00
Leonardo de Moura
30be5801e2 chore: update stage0 2021-10-18 07:35:49 -07:00
Leonardo de Moura
ab3861ff62 chore: remove unnecessary "c"
and avoid compilation warning messages.
2021-10-18 07:34:17 -07:00
Leonardo de Moura
aa0387e070 chore: update stage0 2021-10-18 07:25:25 -07:00
Siddharth
da4ad465d0
feat: un-inline float intrinsics into runtime. (#694)
* outline all intrinsics into the runtime.

This is necessary to support backends such as LLVM which do not emit C.

* fix style
2021-10-18 07:20:04 -07:00
Sebastian Ullrich
4cc9072ec3 chore: update stage0 2021-10-18 13:11:04 +02:00
Sebastian Ullrich
d3cf0b8098 fix: deriving Ord on parameterized types
Fixes #732
2021-10-18 10:08:13 +02:00
tydeu
d9f53dfec9 refactor: replace leanpkg.toml with a lakefile.lean + build reorg 2021-10-17 13:52:01 -04:00
Wojciech Nawrocki
e843fb7ca5 fix: widget messages 2021-10-17 10:01:23 +02:00
tydeu
b1bd3fc304 chore: update Lake 2021-10-15 17:12:29 +02:00
Siddharth Bhat
3374806d0f refactor: eliminate unused ExtractMonadResult.hasBindInst 2021-10-15 06:57:24 -07:00
Sebastian Ullrich
c2c418b651 chore: update Lake 2021-10-15 06:56:02 -07:00
Sebastian Ullrich
08dbf239a6 chore: server: redundant let 2021-10-15 06:56:02 -07:00
Sebastian Ullrich
7fdc208c1f chore: update Lake 2021-10-15 06:56:02 -07:00
Sebastian Ullrich
7372e2f6cd chore: update Lake 2021-10-15 06:56:02 -07: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
Sebastian Ullrich
6296151034 chore: update Lake 2021-10-15 06:56:02 -07:00
Sebastian Ullrich
e67e096086 fix: patch bin/lake 2021-10-15 06:56:02 -07:00
Sebastian Ullrich
674e473c84 feat: server: support LAKE env var 2021-10-15 06:56:02 -07:00
Sebastian Ullrich
e422ce4917 chore: update Lake 2021-10-15 06:56:02 -07:00
Sebastian Ullrich
6a1897302b chore: server: use exit code to communicate absence of package 2021-10-15 06:56:02 -07:00
Sebastian Ullrich
765ed37409 feat: server: support Lake 2021-10-15 06:56:02 -07:00
Sebastian Ullrich
89f9045646 test: add lake tests 2021-10-15 06:56:02 -07:00
Sebastian Ullrich
524be36d23 feat: build & bundle Lake 2021-10-15 06:56:02 -07:00
Chris Lovett
f57e61fead
chore: remove manual shell scripting for compiling libleanrt 2021-10-15 08:08:31 +02:00
tydeu
b558536129 feat: add basic lake server CLI 2021-10-13 15:31:49 -04:00
tydeu
4eec17c876 chore: use return at examples/scripts 2021-10-13 14:47:57 -04: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
Gabriel Ebner
d6ba8e597a feat: add range parameter to getInteractiveDiagnostics 2021-10-11 22:59:47 +02:00