Commit graph

33 commits

Author SHA1 Message Date
Sebastian Ullrich
ab42cffad2 refactor: rename all Default.lean files except for Init/Default.lean 2019-11-19 13:52:21 +01:00
Leonardo de Moura
d9ca07fca8 chore: replace DecidableEq Name with HasBeq Name 2019-11-18 12:45:53 -08:00
Leonardo de Moura
a3ccbe66cf refactor: Expr fully implemented in Lean
No hidden fields.
2019-11-16 12:10:49 -08:00
Leonardo de Moura
8697638031 feat: add ExprCachedData
We are preparing for removing the hack from expr.cpp
2019-11-14 18:50:53 -08:00
Leonardo de Moura
7775c7816d chore: add UInt* helper functions 2019-11-14 17:26:33 -08:00
Leonardo de Moura
4989a7a7b6 chore: use camelCase, and add shift/casting operations for UInt64 2019-11-14 14:52:52 -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
79c0833d06 feat: add contains for List and Array 2019-11-14 09:51:50 -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
4cc413e4f6 feat: import HasToString instances for Option and Sum 2019-11-12 12:22:59 -08:00
Leonardo de Moura
20e8086fea feat: add Hashable (Option a) instance 2019-11-10 17:25:32 -08:00
Leonardo de Moura
e5b77d4de8 feat: combine InferType and TypeUtil into Meta 2019-11-08 16:20:11 -08:00
Leonardo de Moura
d9fb5acb22 chore: use same approach we use for HashMap 2019-11-08 08:28:31 -08:00
Leonardo de Moura
583923492c chore: naming conventions 2019-11-07 10:40:26 -08:00
Leonardo de Moura
c3e9ac73e2 refactor: default ==> arbitrary
Make sure it is opaque, and avoid `irreducible`
2019-11-05 14:42:42 -08:00
Leonardo de Moura
a4c2e72f1c feat: helper functions 2019-10-31 20:58:30 -07:00
Leonardo de Moura
4a3eccade7 chore: fix name 2019-10-28 13:39:47 -07:00
Leonardo de Moura
df8bbf5438 chore: remove Init.Control.Combinators
Reason: it contains a bunch of little functions that are supposed to
be defined in other modules.
2019-10-27 18:58:40 -07:00
Leonardo de Moura
34765c97d7 chore: rename mmap, mfoldl, mfor ...
We now use `mapM`, `foldlM`, ... like Haskell.
Motivation: fixes the inconsistent naming convetion. We are already
using the `M` suffix for functions such as `anyM`. We used `anyM`
because `many` is a valid English word.

cc @kha @dselsam
2019-10-27 18:19:34 -07:00
Leonardo de Moura
608be459e7 feat: add anyM, allM, any, and all 2019-10-27 17:27:16 -07:00
Leonardo de Moura
7629baa8ff feat: add PersistentHashSet 2019-10-27 11:39:52 -07:00
Leonardo de Moura
bf1ea58deb feat: add HashSet
It is just a wrapper for `HashMap`
2019-10-27 11:35:36 -07:00
Leonardo de Moura
b9480d6ae2 chore: remove unnecessary c inline 2019-10-23 16:58:07 -07:00
Leonardo de Moura
aa77c0a651 chore: remove unnecessary inline 2019-10-23 15:26:22 -07:00
Leonardo de Moura
447482e489 refactor: use Array instead of List at mkApp and getAppArgs
Preparation for new unifier.

@dselsam: I had to make minor changes at `Synth.Lean`, and add messy
code to `Context.lean`. `Context.lean` will be deleted in the future.
So, it is not a big deal.
2019-10-21 09:12:36 -07:00
Sebastian Ullrich
ba8b3a1733 feat: allow ':' as search path operator on Windows
This reimplements 704e203.
2019-10-19 18:03:55 -07:00
Leonardo de Moura
d1ca45d83a chore: use #[] instead of Array.empty 2019-10-08 16:23:06 -07:00
Leonardo de Moura
bfe4f5e7d3 chore: style 2019-10-08 15:21:42 -07:00
Daniel Selsam
c1bd666bc2 feat: stack wrapper around array 2019-10-08 14:32:50 -07:00
Leonardo de Moura
734d8af3b9 fix: Array HasRepr and HasToString instances 2019-10-07 15:53:47 -07:00
Leonardo de Moura
0714716477 fix: file and import names, tests and stage0
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2019-10-04 17:04:02 -07:00
Leonardo de Moura
a2abbdbf9a chore: fix imports using script
This is just a draft.
```
for f in `find . -name '*.lean'`; do echo $f; gsed "/^import/s/\b\(.\)/\u\1/g" $f > tmp; gsed "/^Import/s/Import/import/g" tmp > $f; done
```
2019-10-04 14:34:58 -07:00
Leonardo de Moura
de4d3152f1 chore: use CamelCase to name files and directories 2019-10-04 14:23:08 -07:00