Leonardo de Moura
51e7f45af2
refactor: cases
...
remove dead `induction/cases` code
2021-03-07 12:37:02 -08:00
Leonardo de Moura
e5f1bd2eb9
chore: fix Core.lean
2021-03-07 12:08:37 -08:00
Leonardo de Moura
55115a4a1b
feat: add inferInstance tactic
2021-03-07 12:08:25 -08:00
Leonardo de Moura
a70323c9e8
chore: update stage0
2021-03-07 12:05:59 -08:00
Leonardo de Moura
19899d087e
refactor: induction
2021-03-07 12:04:36 -08:00
Leonardo de Moura
5f5cc55d6a
feat: add helper method
2021-03-07 12:04:14 -08:00
Leonardo de Moura
dfa5cf9282
chore: add optional preprocessing tactic
2021-03-07 12:03:54 -08:00
Leonardo de Moura
5d56e18811
chore: update stage0
2021-03-07 10:22:59 -08:00
Leonardo de Moura
1e13c26de3
chore: prepare to change inductionAlts
2021-03-07 10:22:27 -08:00
Leonardo de Moura
08fc25217d
chore: cleanup, fix docs
2021-03-07 09:01:54 -08:00
Leonardo de Moura
b7019d913e
chore: remove unnecessary lifts and implicits
...
Use autobound and autolift features
2021-03-07 09:01:54 -08:00
Leonardo de Moura
6d236fbf2e
chore: fix docstring
2021-03-07 09:01:54 -08:00
Jan Hrcek
2753822fe7
doc: fix typos
2021-03-07 15:06:02 +01:00
Leonardo de Moura
6ec5c1de54
chore: fix test
...
`set_option` command after `by` tactic block is ambiguous.
We need to indent or use `{ ... }`.
cc @Kha
2021-03-06 16:46:18 -08:00
Leonardo de Moura
061b9bf60f
feat: set_option in terms and tactics
...
closes #330
2021-03-06 16:43:10 -08:00
Leonardo de Moura
ac6f854b72
chore: update stage0
2021-03-06 15:45:32 -08:00
Leonardo de Moura
b3d83aa199
feat: set_option parser for terms and tactics
2021-03-06 15:38:02 -08:00
Leonardo de Moura
ad68c5cbaa
refactor: polymorphic elabSetOption
2021-03-06 15:33:01 -08:00
Leonardo de Moura
66fc994822
chore: update stage0
2021-03-06 15:33:01 -08:00
Leonardo de Moura
4a39201d55
fix: ambiguity
...
```
def f (x : Nat) : IO Unit := do
IO.println x
open Nat in
def g (x : Nat) := succ x
```
cc @Kha
2021-03-06 15:33:00 -08:00
Leonardo de Moura
0ed3f08c1b
feat: open in terms and tatics
...
See #330
2021-03-06 15:33:00 -08:00
Leonardo de Moura
5787fc5ce4
chore: update stage0
2021-03-06 15:33:00 -08:00
Leonardo de Moura
4bcfc5f9a6
feat: open parser for terms and tactics
2021-03-06 15:32:59 -08:00
Leonardo de Moura
8249620c9e
refactor: add polymorphic elabOpenDecl method
2021-03-06 15:32:59 -08:00
Leonardo de Moura
d75c4e2101
chore: cleanup
2021-03-06 15:32:59 -08:00
Leonardo de Moura
b6c388780f
chore: cleanup
2021-03-06 15:32:59 -08:00
zygi
6a0a4fd71c
feat: Nix: depend on static libraries and plugins ( #322 )
...
Co-authored-by: Zygimantas Straznickas <hi@zygi.me>
2021-03-06 22:57:24 +01:00
Sebastian Ullrich
6664f58a0e
chore: link lean using leanc
2021-03-06 10:17:50 +01:00
Leonardo de Moura
7a79ef62d1
fix: bug at hasSyntheticSorry
...
It was missing a constructor, and not taking assigned metavariables
into account.
Fixes a problem reported by @JasonGross at Zulip
2021-03-05 19:08:10 -08:00
Leonardo de Moura
8d743fc2a7
feat: add MessageData.instantiateMVars
2021-03-05 19:07:08 -08:00
Leonardo de Moura
9b02a80416
fix: fixes #335
2021-03-05 18:16:49 -08:00
Leonardo de Moura
fc79b794ba
fix: missing error messages
...
Issue reported by @JasonGross
2021-03-05 17:20:04 -08:00
Leonardo de Moura
0fa6e733c1
chore: add helper instances
2021-03-05 16:58:50 -08:00
Leonardo de Moura
be4cf605fd
feat: improve error message
...
closes #331
2021-03-05 13:42:54 -08:00
Leonardo de Moura
5e9ccf19d7
fix: fixes #329
2021-03-05 13:42:54 -08:00
Leonardo de Moura
f080389c3f
chore: use double-backtick
2021-03-05 13:42:54 -08:00
Leonardo de Moura
210e2ba3bc
chore: cleanup
2021-03-05 13:42:54 -08:00
Sebastian Ullrich
116c4b20a0
chore: lean4-mode: remove uses of obsolete package
2021-03-05 18:02:48 +01:00
Sebastian Ullrich
edf4a2be72
chore: lean4-mode: remove obsolete dependency
2021-03-05 18:02:48 +01:00
Sebastian Ullrich
f40e5411ac
chore: lean4-mode: remove obsolete code
2021-03-05 18:02:48 +01:00
Sebastian Ullrich
d9702aa1c4
chore: Nix: unnecessary require in emacs-dev
2021-03-05 18:02:48 +01:00
Leonardo de Moura
e228ca38b8
test: add set example
2021-03-04 19:16:12 -08:00
Leonardo de Moura
54c44d2a6f
feat: generate error message if term does not reduce to true
2021-03-04 19:15:09 -08:00
Leonardo de Moura
66f1a88f2c
feat: simp [-decl]
2021-03-04 17:50:44 -08:00
Leonardo de Moura
b26c7087fe
chore: increase test size
2021-03-04 17:27:24 -08:00
Leonardo de Moura
db499a646f
chore: add profileitM for simp
2021-03-04 17:27:01 -08:00
Leonardo de Moura
a81c628a12
chore: update stage0
2021-03-04 16:43:38 -08:00
Leonardo de Moura
cf11adfce3
chore: workaround to fix build
...
@Kha This is a hack to try to fix the build.
It seems it is the circular dependency issue again.
Remarks:
- The problem doesn't happen on my Mac.
- I managed to reproduce the Linux error on a virtual machine.
/usr/bin/ld: ../lib/lean/libStd.a(ShareCommon.o): in function `l_Std_ShareCommonT_monadShareCommon___rarg':
ShareCommon.c:(.text+0xc9): undefined reference to `lean_state_sharecommon'
/usr/bin/ld: ../lib/lean/libStd.a(ShareCommon.o): in function `l_Std_PShareCommonT_monadShareCommon___rarg':
ShareCommon.c:(.text+0x259): undefined reference to `lean_persistent_state_sharecommon'
/usr/bin/ld: ../lib/lean/libStd.a(ShareCommon.o): in function `l_Std_ShareCommon_Object_hash___boxed':
ShareCommon.c:(.text+0x59a): undefined reference to `lean_sharecommon_hash'
/usr/bin/ld: ../lib/lean/libStd.a(ShareCommon.o): in function `l_Std_shareCommon___rarg':
ShareCommon.c:(.text+0x6cf): undefined reference to `lean_state_sharecommon'
/usr/bin/ld: ../lib/lean/libStd.a(ShareCommon.o): in function `l_Std_ShareCommon_Object_eq___boxed':
ShareCommon.c:(.text+0x82d): undefined reference to `lean_sharecommon_eq'
/usr/bin/ld: ../lib/lean/libStd.a(ShareCommon.o): in function `l_Std_PShareCommonT_withShareCommon___rarg':
ShareCommon.c:(.text+0x956): undefined reference to `lean_persistent_state_sharecommon'
/usr/bin/ld: ../lib/lean/libStd.a(ShareCommon.o): in function `l_Std_ShareCommonT_withShareCommon___rarg':
ShareCommon.c:(.text+0xae6): undefined reference to `lean_state_sharecommon'
/
2021-03-04 16:38:20 -08:00
Leonardo de Moura
b6d86fdd57
chore: update stage0
2021-03-04 15:49:56 -08:00
Leonardo de Moura
709eaf6873
chore: use lean_internal_panic
2021-03-04 15:46:33 -08:00