Commit graph

24072 commits

Author SHA1 Message Date
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
Joe Hendrix
9bd60c7519 feat: Nat/Fin/UInt instances of bitwise classes 2021-03-04 15:42:43 -08:00
Joe Hendrix
2831dd6872 feat: Bitwise classes using F# notation. 2021-03-04 15:40:12 -08:00
Leonardo de Moura
92a87ce3a4 perf: remove performace bottleneck
@Kha This is a performance bottleneck in a several benchmarks that
create huge proofs. It may negatively affect other files.
I will keep an eye at the speedcenter.
2021-03-04 15:31:01 -08:00
Leonardo de Moura
2b78de650a test: experiment 2021-03-04 14:48:49 -08:00
Leonardo de Moura
fe94731779 perf: do not use decide for rewriting True/False 2021-03-04 13:50:17 -08:00
Leonardo de Moura
30287836b0 test: OfNatSound 2021-03-04 13:48:01 -08:00
Leonardo de Moura
9baee4354c chore: add trace.Debug.Meta.Tactic.simp
It is an attempt to distinguish trace messages that are relevant only
for developers.

@Kha I am considering using the prefix `trace.Debug` for (debugging) messages that
are just for us.
2021-03-04 12:27:10 -08:00
Leonardo de Moura
1fedbfb9a3 feat: simp only 2021-03-04 11:58:34 -08:00
Leonardo de Moura
23597e19e1 chore: update stage0 2021-03-04 11:48:35 -08:00
Leonardo de Moura
c58b0dd53c chore: prepare for adding simp only 2021-03-04 11:47:38 -08:00
Leonardo de Moura
960e964b71 feat: allow user to "erase" [simp] lemmas 2021-03-04 11:36:12 -08:00
Leonardo de Moura
130a087ecf feat: Lean 3 french single quote notation 2021-03-04 09:43:59 -08:00
Leonardo de Moura
3d51779d38 chore: update stage0 2021-03-04 07:56:05 -08:00
Leonardo de Moura
bbed4aed50 chore: remove old code 2021-03-04 07:54:21 -08:00
Leonardo de Moura
32a317c152 chore: update stage0 2021-03-04 07:47:54 -08:00
Leonardo de Moura
176c7df05c chore: update stage0 2021-03-04 07:42:09 -08:00
Leonardo de Moura
51200c916e chore: make explicit user and internal panics 2021-03-04 07:37:33 -08:00
Leonardo de Moura
328c1bd9c2 chore: cleanup 2021-03-04 07:08:18 -08:00
Leonardo de Moura
152a84c468 perf: reject rewrites that produce same expr 2021-03-03 20:20:22 -08:00
Leonardo de Moura
e841f16738 fix: typo in theorem
`()` is `Unit`
2021-03-03 19:50:11 -08:00
Leonardo de Moura
3107473c9f feat: add rename tactic
cc @Kha
2021-03-03 18:32:25 -08:00
Leonardo de Moura
1ecc50f809 test: contradiction 2021-03-03 17:13:25 -08:00
Leonardo de Moura
1d98edfeea chore: update stage0 2021-03-03 17:01:31 -08:00
Leonardo de Moura
6cdc6cb1d0 feat: add contradiction 2021-03-03 17:00:54 -08:00
Leonardo de Moura
40c340d1a0 feat: helper match methods 2021-03-03 16:16:34 -08:00
Leonardo de Moura
4a095a7da6 feat: helper methods 2021-03-03 16:16:17 -08:00
Leonardo de Moura
7df503c4e4 refactor: add findLocalDeclWithType? 2021-03-03 15:44:32 -08:00
Leonardo de Moura
728418aa9d feat: add ForIn instance for LocalContext 2021-03-03 15:43:48 -08:00
Leonardo de Moura
4aec7579db test: add do equivalence examples 2021-03-03 13:44:30 -08:00
Leonardo de Moura
f1245f9dc7 fix: bug at isDefEqOffset
fixes #326
2021-03-02 17:28:40 -08:00
Leonardo de Moura
12e9d1f7d2 chore: use double backticks 2021-03-02 17:28:40 -08:00
Sebastian Ullrich
6d00fcf1d6 chore: revert release bit 2021-03-02 19:16:35 +01:00
Sebastian Ullrich
26dda3f63d feat: release 4.0.0-m2 2021-03-02 18:37:05 +01:00