Gabriel Ebner
3776e3c925
feat: generalize unsafeCast to Sort
2022-07-11 12:26:53 -07:00
Leonardo de Moura
c568f11ddf
feat: use default transparency at isDefEqProofIrrel
...
closes #1302
2022-07-11 12:11:10 -07:00
Leonardo de Moura
2fcd406f99
chore: remove sorry
2022-07-10 20:04:06 -07:00
Leonardo de Moura
ee0735760a
feat: add instance : GetElem (List α) Nat α fun as i => i < as.length
2022-07-10 17:38:59 -07:00
Leonardo de Moura
0c5dfd78d7
chore: style
2022-07-10 15:26:26 -07:00
Leonardo de Moura
475c7e18cd
chore: missing GetElem instances
2022-07-10 14:53:22 -07:00
Sebastian Ullrich
fe5d95e7e3
fix: flake.nix
2022-07-10 22:57:44 +02:00
Leonardo de Moura
fd0e9e1c52
chore: fix typo
2022-07-10 10:15:29 -07:00
Leonardo de Moura
351fc6ea04
chore: update release notes
2022-07-10 09:43:25 -07:00
Leonardo de Moura
4173a863d8
chore: cleanup
2022-07-10 09:43:12 -07:00
Leonardo de Moura
c82f74d094
chore: update stage0
2022-07-10 09:17:43 -07:00
Leonardo de Moura
451abdf79d
fix: Level.update* functions
...
see #1291
2022-07-10 09:16:02 -07:00
Leonardo de Moura
ef4bf93315
chore: update stage0
2022-07-10 08:39:39 -07:00
Leonardo de Moura
ba606debf7
fix: Expr.update* issue
...
See #1291
2022-07-10 08:33:14 -07:00
Leonardo de Moura
f1d84a5096
perf: use dsimp := false in split tactic and while proving equation theorems
...
It is just a waste in these two cases.
It now takes 0.78 secs to process example on issue #1287 .
closes #1287
2022-07-10 08:03:42 -07:00
Leonardo de Moura
4b543d5edd
feat: add option for disabling dsimp during simp
2022-07-10 07:57:41 -07:00
Leonardo de Moura
7553dc12c0
chore: fix tests
2022-07-10 07:43:01 -07:00
Leonardo de Moura
394d49da58
perf: Expr.hasSorry and similar functions
...
Functions were ignoring sharing while traversing `Expr`.
Addresses performance problem exposed by #1287
2022-07-10 07:39:38 -07:00
Leonardo de Moura
2f1b80721e
chore: avoid a[i]' h notation
2022-07-10 07:20:07 -07:00
Leonardo de Moura
35018dbea2
feat: unexpanders for a[i], a[i]' h, a[i]!, and a[i]?
2022-07-10 06:47:23 -07:00
Leonardo de Moura
23bae264fd
perf: add cache for check (e : Expr) : MetaM Unit
...
Address one of the performance problems exposed by #1287
2022-07-09 20:09:15 -07:00
Leonardo de Moura
20d6b9c4aa
doc: add new example
2022-07-09 17:04:08 -07:00
Leonardo de Moura
49951b87b9
chore: update release notes
2022-07-09 17:02:15 -07:00
Leonardo de Moura
6797e846d7
chore: update stage0
2022-07-09 16:46:00 -07:00
Leonardo de Moura
881589fc46
chore: remove parser workarounds
2022-07-09 16:42:39 -07:00
Leonardo de Moura
63067b896a
chore: update stage0
2022-07-09 16:19:10 -07:00
Leonardo de Moura
aa52eebcdc
feat: add instance GetElem (Array α) USize α fun xs i => LT.lt i.toNat xs.size where
2022-07-09 16:18:29 -07:00
Leonardo de Moura
1caff852fb
chore: remove getOp functions
2022-07-09 16:09:28 -07:00
Leonardo de Moura
e55684b0c0
chore: update stage0
2022-07-09 16:04:54 -07:00
Leonardo de Moura
fd371ea812
chore: remove getOp builtin support
2022-07-09 16:04:17 -07:00
Leonardo de Moura
36ebccb822
chore: fix tests
2022-07-09 15:59:44 -07:00
Leonardo de Moura
e4b358a01e
refactor: prepare to elaborate a[i] notation using typeclasses
2022-07-09 15:24:22 -07:00
Leonardo de Moura
e30ac86bd5
chore: update stage0
2022-07-09 14:44:47 -07:00
Leonardo de Moura
4c707d3b3c
feat: use binop% to elaborate %-applications
...
Motivation: make sure the behavior is consistent with other arithmetic
operators.
This commit also removes the instance
```
instance : HMod (Fin n) Nat (Fin n) where
hMod := Fin.modn
```
because we have a coercion from `Fin n` to `Nat`.
Thus, given `a : Fin n` and `b : Nat`, `a % b` is ambiguous.
2022-07-09 14:38:35 -07:00
Leonardo de Moura
305630cc23
fix: ElabAppArgs.finalize bug
2022-07-09 13:53:15 -07:00
Leonardo de Moura
a6151a9708
chore: update stage0
2022-07-09 12:20:35 -07:00
Leonardo de Moura
0074038405
fix: missing term info
2022-07-09 12:19:10 -07:00
tydeu
62bdde1548
chore: update Lean version
2022-07-09 15:08:09 -04:00
Leonardo de Moura
2f6eb84ace
chore: cleanup
2022-07-09 12:06:29 -07:00
Sebastian Ullrich
03da79a603
fix: restore script arg syntax
2022-07-09 15:05:19 -04:00
Sebastian Ullrich
1ea2a52448
chore: adapt to simpleBinder removal
2022-07-09 15:05:18 -04:00
Leonardo de Moura
b33aa09384
chore: the for in elaborator now propagates the element type to the body
2022-07-09 14:54:40 -04:00
Leonardo de Moura
2873a1b250
chore: unused variable warningns
2022-07-09 07:52:59 -07:00
Leonardo de Moura
defff00787
chore: remove workaround
2022-07-09 07:47:05 -07:00
Sebastian Ullrich
61b01ea3b3
Revert "chore: work around for type inference"
...
This reverts commit 6c64b1b20b .
2022-07-09 10:47:38 +02:00
tydeu
25d3860823
feat: lake exe CLI to run workspace exes
...
closes leanprover/lake#82
2022-07-09 02:47:01 -04:00
Sebastian Ullrich
b57ca74794
chore: skip elan test if no elan found
2022-07-08 23:05:12 -04:00
Sebastian Ullrich
49a025889a
chore: remove redundant declaration in .envrc
2022-07-08 23:05:12 -04:00
Sebastian Ullrich
a45d86cb96
chore: update flake.nix
2022-07-08 23:05:12 -04:00
tydeu
958e3fc4da
feat: add shorthands for lake script run/list
...
closes leanprover/lake#88
2022-07-08 23:03:42 -04:00