Gabriel Ebner
345aa6f835
chore: put throws in separate function for debugger
2023-01-23 09:27:09 -08:00
Gabriel Ebner
34777c9b90
fix: catch missing exceptions in kernel
2023-01-23 09:27:09 -08:00
Evgenia Karunus
a125a36bcc
doc: Expr docs fix ( #2047 )
...
```
open Lean Meta
-- Docs text:
-- The let-expression `let x : Nat := 2; Nat.succ x` is represented as
def old : Expr :=
Expr.letE `x (.const `Nat []) (.lit (.natVal 2)) (.bvar 0) true
elab "old" : term => return old
#check old -- let x := 2; x : Nat
#reduce old -- 2
def new : Expr :=
Expr.letE `x (.const `Nat []) (.lit (.natVal 2)) (.app (.const `Nat.succ []) (.bvar 0)) true
elab "new" : term => return new
#check new -- let x := 2; Nat.succ x : Nat
#reduce new -- 3
```
2023-01-20 09:51:55 +01:00
Sebastian Ullrich
cbdd76f6b6
test: retire .perf benchmarks, cache misses are not very enlightening
2023-01-19 14:44:20 +01:00
Sebastian Ullrich
d0ca604d89
test: update mlton
2023-01-19 14:44:20 +01:00
Sebastian Ullrich
899b673531
test: add binarytrees.st benchmark
2023-01-19 14:44:20 +01:00
Sebastian Ullrich
83450d4bd9
test: clean up binarytrees.lean
2023-01-19 14:44:20 +01:00
Sebastian Ullrich
46f467db66
test: add single-threaded SML binarytrees
2023-01-19 14:44:20 +01:00
github-actions[bot]
57b9d25d5e
doc: update changelog
2023-01-19 09:10:27 +00:00
Rishikesh Vaishnav
561e404fe4
feat: make go-to-definition on a typeclass projection application go to the instance(s) ( #1767 )
2023-01-19 09:10:01 +00:00
Rishikesh Vaishnav
600758ba49
fix: fuzzy-find bonus for matching last characters of pattern and symbol ( #1917 )
2023-01-19 09:06:53 +01:00
Sebastian Ullrich
e477d41f3f
chore: pin Nix
2023-01-18 11:26:32 +01:00
Sebastian Ullrich
43c5ab802f
fix: show tactic info on canonical by
2023-01-18 10:23:37 +01:00
Sebastian Ullrich
78bc2fd92b
chore: more benchmarking setup
2023-01-17 13:28:05 +01:00
Sebastian Ullrich
223f1073d1
chore: info tree format should not leak hygiene IDs
2023-01-16 08:33:58 -08:00
Sebastian Ullrich
d59f5c2ffa
fix: binop% info tree
2023-01-16 08:33:58 -08:00
Leonardo de Moura
4ec1c10dc0
chore: comments at private function mkAuxMVarType
2023-01-16 07:54:20 -08:00
Rishikesh Vaishnav
cce1b25d60
doc: improve documentation of MetavarContext.lean ( #1625 )
...
Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch>
2023-01-16 16:34:36 +01:00
Siddharth
5349a089e5
feat: add --target flag for LLVM backend to build objects of a different architecture ( #2034 )
...
* feat: add --target flag for LLVM backend to build objects of a different architecture
* chore: remove dead comment
* Update src/Lean/Compiler/IR/EmitLLVM.lean
Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch>
* chore: normalize indentation in src/util/shell.cpp
* chore: strip trailing whitespace
Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch>
2023-01-15 12:00:10 -08:00
Siddharth Bhat
26edfc33f5
chore: remove unused isTaggedPtr from IR.
...
This reduces the surface area of `unimplemented` in the LLVM backend,
and also removes dead code in the compiler.
2023-01-15 09:24:41 -08:00
James Gallicchio
65db25bf49
feat: funext no arg tactic ( #2027 )
...
* feat: `funext` no arg tactic
Description of funext tactic includes behavior that is not implemented. This implements the behavior.
* fix
* feat: test new funext tactic
* use repeat for clarity of intent
2023-01-15 08:53:49 -08:00
Wojciech Nawrocki
ae97ae35e9
chore: remove Inhabited instance
2023-01-13 17:13:02 -08:00
Wojciech Nawrocki
c784031dd7
feat: add GoalLocation type
2023-01-13 17:13:02 -08:00
Wojciech Nawrocki
0960cd0a14
fix: term goal prefix
2023-01-13 17:13:02 -08:00
Wojciech Nawrocki
f5531c2a11
feat: add context and term data to goals
2023-01-13 17:13:02 -08:00
Wojciech Nawrocki
184ca3ddb0
chore: bump server version
2023-01-13 17:13:02 -08:00
Sebastian Ullrich
9b1f5c4df4
test: use OCaml 5 multicore binarytrees implementation
2023-01-12 18:28:41 +01:00
Sebastian Ullrich
f726891baf
test: update benchmark flake
2023-01-12 18:28:41 +01:00
Siddharth Bhat
ae4f2de951
fix: metadata codegen for LLVM
2023-01-12 17:39:56 +01:00
Sebastian Ullrich
67a5846742
chore: Nix: more sanitizing
2023-01-12 15:05:14 +01:00
Sebastian Ullrich
707e762d78
chore: Nix: remove redundant link flags
2023-01-12 13:00:09 +01:00
Sebastian Ullrich
da2ea1fa98
chore: Nix: fix symbol interposition
2023-01-12 12:50:17 +01:00
Sebastian Ullrich
7aebab5e43
chore: CI: do not cancel release job on master push
2023-01-12 10:41:51 +01:00
Siddharth Bhat
0900aa1348
feat: implement unreachable codegen for LLVM
...
Also add a test case that exercises `unreachable` code
generation.
2023-01-12 09:17:41 +01:00
tydeu
e1887fa510
fix: put FFI lib in pkg lib dir in example (for Linux)
2023-01-11 18:24:15 -05:00
tydeu
55fa486ce6
fix: packages dir path and repo url
2023-01-11 18:18:09 -05:00
tydeu
15d656bd9a
fix: Linux still needs augmented library path
2023-01-11 17:32:26 -05:00
tydeu
4f505cd056
fix: use full path when loading dynlibs in the server
...
closes leanprover/lake#146
2023-01-11 16:17:47 -05:00
tydeu
8c793eaae5
chore: bump Lean version
2023-01-11 15:11:26 -05:00
Gabriel Ebner
cee959078d
fix: do not require Environment to be inhabited
2023-01-11 15:01:45 -05:00
Eric Wieser
8cd9ce0684
refactor: redefine Nat.mod such that rfl : 0 % n = 0
...
This property was true in Lean 3, and it was very convenient for working with `Fin n`.
2023-01-11 09:49:58 -08:00
Gabriel Ebner
c21d2f29a2
perf: do not backtrack after eta-defeq
2023-01-09 16:12:02 -08:00
github-actions[bot]
6e5ba6b9e5
doc: update changelog
2023-01-09 23:09:06 +00:00
Sebastian Ullrich
5ffda810dd
feat: include timings in trace when profiler is true
2023-01-09 15:08:42 -08:00
James Gallicchio
37650f9147
fix: add done alternative to decreasing_with ( #2019 )
...
Previously `decreasing_with` failed if `simp_wf` closes the goal on its
own. This can cause undesired regressions when new `simp` lemmas are
introduced.
Closes #2018 .
2023-01-09 09:46:37 -08:00
Bulhwi Cha
99662c1b45
chore: rename le_or_eq_or_le_succ ( #2024 )
...
Rename `le_or_eq_or_le_succ` `le_or_eq_of_le_succ`. We need to change
its name in `Std/Data/Array/Init/Lemmas` and `Std/Data/Array/Lemmas`.
Co-authored-by: Bulhwi Cha <chabulhwi@semmalgil.com>
2023-01-09 09:45:51 -08:00
Chris Hughes
396fcd371b
feat Init.Data.Nat add simp attribute to mod_zero ( #1932 )
2023-01-09 09:43:41 -08:00
François G. Dorais
493a887cfb
fix: remove unnecessary hypothesis
2023-01-09 18:20:41 +01:00
Siddharth
5615ba6606
feat: implement uset for LLVM ( #2025 )
...
Fixes #1958 .
2023-01-09 12:25:37 +00:00
Jeremy Salwen
60f30addc7
doc: add more detail to the split tactic docs ( #1988 )
...
Co-authored-by: Mac <tydeu@hatpress.net>
Co-authored-by: Sebastian Ullrich <sebasti@nullri.ch>
2023-01-09 13:12:39 +01:00