Leonardo de Moura
68fc9a9115
feat: add dummy mpz implementation for LEAN_USE_GMP=OFF
2021-11-29 11:42:08 -08:00
Leonardo de Moura
0002d8bd04
chore: missing #ifdef LEAN_USE_GMP
2021-11-29 11:35:13 -08:00
Leonardo de Moura
6396f3b2c1
chore: simplify mpz.h
...
Add basic support for `LEAN_USE_GMP=OFF`.
2021-11-29 11:11:49 -08:00
Leonardo de Moura
7435fd5dd4
chore: add USE_GMP cmake option
2021-11-29 10:25:26 -08:00
Sebastian Ullrich
0764967757
fix: getFVarId
2021-11-29 10:06:15 -08:00
Sebastian Ullrich
465913c391
fix: this must be a keyword
2021-11-29 10:06:15 -08:00
Sebastian Ullrich
531eefb7db
chore: adapt syntax
2021-11-29 10:06:15 -08:00
Sebastian Ullrich
d253b2d2a7
chore: update stage0
2021-11-29 10:06:15 -08:00
Sebastian Ullrich
9cca1a57e0
feat: generalize syntax of fvar-accepting tactics
2021-11-29 10:06:15 -08:00
Anders Christiansen Sørby
cfe924e53e
feat: Nix: add nativeSharedLibs option
...
* feat: Add nativeSharedLibs option
Use LD_PRELOAD with staticLibDeps
Add a verbose flag when debug is true
Use shared libs instead
feat: Add recursive nativeSharedLibs
Repair printPaths
Remove -v flag from lean call
feat: Use new load-dynlib option
Remove LD_PRELOAD
fix: Add allNativeSharedLibs to allLinkFlags
Trying to fix native linking
feat: Automatic link flags of nativeSharedLibs
fix: Add gmp to sharedLib buildInputs
* fix: Wrap executable files in a linker group
This is a bit slower but ensures that cycles or bad ordering of the
static lib dependencies is resolved.
* Convert allExternalDeps to a list
Breaking change if you depend on allExternalDeps being a attrset
2021-11-28 17:56:01 +01:00
Joshua Seaton
a9317760e7
chore: update IR interpreter enum hygiene
...
This change addresses -Wreturn type and -Wimplicit-fallthrough
infractions in the IR interpreter. Moreover, default switch cases on
enum classes are removed to leverage compiler complaints of missing
cases, which ensures that all related switch logic gets thoughtfully
extended when the enums are extended themselves.
2021-11-28 10:29:08 +01:00
Sebastian Ullrich
a329896e70
feat: refine declaration ranges at instance & example
2021-11-27 07:25:15 -08:00
Sebastian Ullrich
4f15805787
feat: annotate declarations with term infos
2021-11-27 07:25:15 -08:00
Leonardo de Moura
0aa32d643e
fix: eta struct and proof irrelevance issue
...
see #777
2021-11-27 07:15:57 -08:00
tydeu
a1368df5c9
chore: fix docstring formatting
2021-11-26 23:47:36 -05:00
tydeu
4b062543ec
refactor: simplify trace checking somewhat
2021-11-26 21:53:18 -05:00
tydeu
c830953ded
feat: use Lean bundled ar by default for static libs
...
closes leanprover/lake#35
2021-11-26 18:44:00 -05:00
tydeu
aa524e977c
chore: bump Lean version
2021-11-26 18:20:07 -05:00
Leonardo de Moura
b5afc34391
chore: update stage0
2021-11-26 08:38:34 -08:00
Leonardo de Moura
2d113e83f9
feat: eta struct support for unit-like datatypes
...
For example, given `a b : Unit`, we have that `a` and `b` are
definitionally equal by `etaStruct`.
See #777
2021-11-26 08:36:25 -08:00
Leonardo de Moura
f9a5ac1d8e
fix: missing condition at matchConstStruct
2021-11-26 08:36:25 -08:00
Leonardo de Moura
693a96681a
doc: fix eta struct comment
2021-11-26 08:36:25 -08:00
Sebastian Ullrich
676b5e5ea8
chore: typo
...
Co-authored-by: Gabriel Ebner <gebner@gebner.org>
2021-11-26 17:13:19 +01:00
Sebastian Ullrich
14bc140efe
fix: server: do not show parent node on synthetic sorry
2021-11-26 17:13:19 +01:00
Sebastian Ullrich
4063729b6c
doc: document some built-in term notations
2021-11-26 17:13:19 +01:00
Sebastian Ullrich
093fd48e48
chore: update stage0
2021-11-26 17:13:19 +01:00
Sebastian Ullrich
2a1aee2b7a
feat: record declaration ranges of builtin parsers & elaborators
2021-11-26 17:13:19 +01:00
Sebastian Ullrich
e9f7c88299
feat: record doc strings of builtin parsers & elaborators
2021-11-26 17:13:19 +01:00
Sebastian Ullrich
8176084dcf
refactor: factor out declareBuiltin
2021-11-26 17:13:19 +01:00
larsk21
e641ae4eae
fix: prefix check in set_option completion
2021-11-26 11:42:54 +01:00
ammkrn
a727a3de5c
fix: syntax/mathlib name in dependencies example
...
Mathlib4 changed the package name to just `mathlib`. Trying to build
with a dependency name `mathlib4 will now cause an error.
2021-11-25 19:45:45 -05:00
Leonardo de Moura
3ccd44fafa
fix: proofs after adding eta struct support at recursors
...
see #777
2021-11-25 11:34:31 -08:00
Leonardo de Moura
cec573024c
chore: update stage0
2021-11-25 11:32:53 -08:00
Leonardo de Moura
88b6ad4756
feat: add etaStruct to Meta.Simp.Config
2021-11-25 11:31:00 -08:00
Leonardo de Moura
d806344ee2
fix: set etaStruct := false at MatchEqns
2021-11-25 11:31:00 -08:00
Leonardo de Moura
43217884c0
feat: add Meta.Config.etaStruct
...
It is useful to disable eta for structures for meta programs.
2021-11-25 11:31:00 -08:00
Leonardo de Moura
0fc8c1da77
feat: eta for structures at recursors
...
see #777
2021-11-25 11:31:00 -08:00
Leonardo de Moura
50ac21d0a6
refactor: move is_constructor_app to inductive.cpp
2021-11-25 11:31:00 -08:00
Leonardo de Moura
e22bffa94f
refactor: move is_structure_like to inductive.cpp
2021-11-25 11:31:00 -08:00
Leonardo de Moura
03e346bc66
chore: simplify to_cnstr_when_K
2021-11-25 11:31:00 -08:00
Leonardo de Moura
9e1704f658
chore: simplify toCtorWhenK
2021-11-25 11:31:00 -08:00
Leonardo de Moura
ccc3f99507
chore: use isStructureLike
2021-11-25 11:31:00 -08:00
Leonardo de Moura
0de700fe45
chore: naming convetion
2021-11-25 11:31:00 -08:00
Sebastian Ullrich
91620481a5
fix: adapt to Lean change
2021-11-25 10:01:20 -05:00
Sebastian Ullrich
8f88b1f3f8
feat: bundle llvm-ar with Lean
2021-11-25 15:05:06 +01:00
tydeu
ca6c5b8c5c
feat: add lake env
2021-11-25 06:49:22 -05:00
tydeu
2092850b02
refactor: lake server -> lake serve
2021-11-25 05:29:47 -05:00
tydeu
63bd325b3b
refactor: split build CLI into separate file
2021-11-25 04:58:33 -05:00
tydeu
ec8b351445
refactor: generalize some IO-related code
...
* add `def OptionIO := EIO PUnit`
* add `OptionIOTask` for `OptionIO`
* rename `BuildCoreM` -> `BuildIO`
* rename `Util.LogT` -> `Util.Log`
* generalize `error` to `MonadError`
* generalize` Cli.build`
2021-11-25 03:22:11 -05:00
Sebastian Ullrich
9a939f98ec
chore: update stage0
2021-11-24 15:04:27 +01:00