Commit graph

17 commits

Author SHA1 Message Date
Leonardo de Moura
a3ccbe66cf refactor: Expr fully implemented in Lean
No hidden fields.
2019-11-16 12:10:49 -08:00
Leonardo de Moura
c341486e28 refactor: avoid Expr constructors
Using `mk*` functions instead.
Reason: preparing to remove `src/kernel/expr.cpp` hack.
2019-11-14 16:32:45 -08:00
Leonardo de Moura
83e2796e96 chore: valueOpt ==> value? 2019-11-14 09:52:16 -08:00
Leonardo de Moura
6c635b3a0c chore: add helper functions 2019-11-13 11:43:28 -08:00
Leonardo de Moura
adcb9091ef fix: avoid redundant let-decls 2019-11-09 12:32:31 -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
1d0ecd6c7d chore: Expr.fvarName! ==> Expr.fvarId! 2019-10-28 13:59:31 -07:00
Leonardo de Moura
0f61de712e chore: add helper functions 2019-10-28 13:40:50 -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
3c57c2b5ac feat: dependsOn 2019-10-27 17:40:43 -07:00
Leonardo de Moura
4559bdef7d test: add instantiateMVars tests 2019-10-26 11:16:07 -07:00
Leonardo de Moura
762d31d584 chore: avoid silent bug 2019-10-26 09:57:23 -07:00
Leonardo de Moura
dec24f3410 chore: simplify LocalContext mk functions 2019-10-26 09:48:28 -07:00
Leonardo de Moura
ccfa57d657 chore: rename constructors
Before we start writing a lot of Expr code.

- `Expr.pi` does not make sense anymore.
- `Expr.elet` is weird. `«let»` is too inconvenient to write. So, I
   used `letE` short for `letExpr`. GHC avoids this issue because
   keywords are lowercase and constructors are capitalized.
2019-10-24 13:53:33 -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
Renamed from library/init/lean/localcontext.lean (Browse further)