Commit graph

26011 commits

Author SHA1 Message Date
Leonardo de Moura
1f7c27672b feat: add processAssignment 2019-11-14 12:14:46 -08:00
Leonardo de Moura
e7fc90877e feat: add anyRange, allRange, anyRangeM, allRangeM, and modify anyFrom parameter order 2019-11-14 11:25:57 -08:00
Leonardo de Moura
f31fcbba24 chore: remove unnecessary approximation that just complicates the code 2019-11-14 10:57:34 -08:00
Leonardo de Moura
6b94d3fba9 chore: use contains 2019-11-14 09:55:20 -08:00
Leonardo de Moura
238c2b3d17 chore: add helper method 2019-11-14 09:52:41 -08:00
Leonardo de Moura
83e2796e96 chore: valueOpt ==> value? 2019-11-14 09:52:16 -08:00
Leonardo de Moura
79c0833d06 feat: add contains for List and Array 2019-11-14 09:51:50 -08:00
Leonardo de Moura
bbe44a79f2 feat: add tests for compiling stdlib with stage1
@Kha It seems to work. Not sure how robust it is. CMake is still very
mysterious to me :D
It is a partial test since I don't try to compile the files into .c.
I am not touching the compiler right now. So, it should be fine for now.

The command `ctest -j8 -R stdlib` also works.
2019-11-13 20:55:08 -08:00
Leonardo de Moura
ed43f4a901 doc: document problems with the variable and variables commands 2019-11-13 20:25:04 -08:00
Leonardo de Moura
a735778ae0 chore: update stage0 2019-11-13 15:46:55 -08:00
Leonardo de Moura
e8cee6c56f chore: update stage0 2019-11-13 15:44:48 -08:00
Leonardo de Moura
af3b465760 feat: apply [specialize] before elaboration
This is a workaround. See new comment.
We need it for making aa9080e9e more effective.
2019-11-13 15:41:27 -08:00
Leonardo de Moura
c4d974eb89 feat: allow attributes to be applied before elaboration
This is useful when the attribute may influence the elaboration of the declaration.
2019-11-13 15:40:19 -08:00
Leonardo de Moura
92316dff89 chore: remove unnecessary inline 2019-11-13 14:28:56 -08:00
Leonardo de Moura
770e7fc350 chore: update stage0 2019-11-13 13:50:03 -08:00
Leonardo de Moura
aa079f06c6 chore: update stage0 2019-11-13 13:47:53 -08:00
Leonardo de Moura
aa9080e9e7 feat: do not specialize functions inside functions marked with @[specialize] 2019-11-13 13:32:52 -08:00
Leonardo de Moura
53b1128491 chore: minimize amount of inlined code 2019-11-13 12:54:56 -08:00
Leonardo de Moura
fb621af338 chore: move code after relevant comment 2019-11-13 12:46:10 -08:00
Leonardo de Moura
46d817135e feat: save checkAssignment failures as trace messages 2019-11-13 12:42:01 -08:00
Leonardo de Moura
cace9304ec feat: add checkAssignment 2019-11-13 11:43:28 -08:00
Leonardo de Moura
6c635b3a0c chore: add helper functions 2019-11-13 11:43:28 -08:00
Leonardo de Moura
745b05be4a feat: add isWellFormed 2019-11-13 11:43:28 -08:00
Sebastian Ullrich
7a04982ada chore: over-engineered build log 2019-11-13 19:01:49 +01:00
Sebastian Ullrich
04d5501eb2 chore: use proper nested make calls by hard-coding make as the build system 2019-11-13 08:13:21 -08:00
Sebastian Ullrich
72fb123fad chore: remove old src/stage0 2019-11-13 16:01:02 +01:00
Leonardo de Moura
a9b8702e8d doc: add processAssignment documentation 2019-11-12 17:45:48 -08:00
Leonardo de Moura
d38ce191ec feat: add processAssignmentFOApprox 2019-11-12 17:17:04 -08:00
Leonardo de Moura
fd3e038a36 feat: add isDefEqBinding 2019-11-12 16:11:25 -08:00
Leonardo de Moura
37b2e7bf8b feat: use Monad instead of Application
If the `Applicative` version is needed in the future, we should name
it using the `A` suffix instead of `M`.
2019-11-12 15:29:27 -08:00
Leonardo de Moura
476ce17779 feat: add isDefEqArgs 2019-11-12 14:47:10 -08:00
Leonardo de Moura
ae26e54458 feat: add unlessM 2019-11-12 14:13:40 -08:00
Leonardo de Moura
0193ead596 test: add corner case 2019-11-12 13:59:24 -08:00
Leonardo de Moura
ad9466028a feat: add isDefEqEta 2019-11-12 12:25:24 -08:00
Leonardo de Moura
28d7fe3f49 test: add etaExpanded? tests 2019-11-12 12:24:31 -08:00
Leonardo de Moura
4cc413e4f6 feat: import HasToString instances for Option and Sum 2019-11-12 12:22:59 -08:00
Leonardo de Moura
e1b2816745 feat: add try combinator
It replaces `restoreIfFalse`.
2019-11-12 12:07:21 -08:00
Leonardo de Moura
b778236628 feat: add etaExpanded? 2019-11-12 12:05:28 -08:00
Leonardo de Moura
8508647738 chore: remove WHNF cache
Remark: tried a few Lean3 stdlib and mathlib files without WHNF cache,
and did not observe any significant impact.
2019-11-12 10:07:55 -08:00
Leonardo de Moura
e12b129014 chore: add usingDefault 2019-11-12 09:46:53 -08:00
Leonardo de Moura
21968cfc8a chore: split DefEq.lean 2019-11-12 09:46:31 -08:00
Sebastian Ullrich
ae3b3bb825 chore: remove cygwin support 2019-11-12 08:28:58 -08:00
Sebastian Ullrich
60620360fc fix: Windows build 2019-11-12 13:07:12 +01:00
Leonardo de Moura
d3ad70d936 chore: isProp return Bool
We have no application for `LBool.undef`.
2019-11-11 22:10:52 -08:00
Leonardo de Moura
3af65381bd feat: add isPropQuick
It is used to speedup `isProp`.
2019-11-11 20:25:29 -08:00
Leonardo de Moura
eb9cf55301 chore: update stage0 2019-11-11 17:27:10 -08:00
Leonardo de Moura
017554fbb6 chore: minor optimization 2019-11-11 17:23:59 -08:00
Leonardo de Moura
37e63f48cb chore: do not leak constraints 2019-11-11 15:45:15 -08:00
Leonardo de Moura
54868f2622 chore: SubsingletonParamInfo is not used in MetaM 2019-11-11 15:44:47 -08:00
Leonardo de Moura
6f2a43bd3f chore: update stage0 2019-11-11 15:09:13 -08:00