Leonardo de Moura
51ce321c7e
feat: whnf skeleton
2019-10-31 17:40:05 -07:00
Leonardo de Moura
1b541219c9
chore: add helper function
2019-10-31 17:38:16 -07:00
Leonardo de Moura
665e8b3f4b
chore: style
2019-10-31 11:34:34 -07:00
Leonardo de Moura
952a707732
chore: cleanup
2019-10-31 11:00:05 -07:00
Leonardo de Moura
2df2f6cf62
feat: add processPostponed
2019-10-31 10:52:41 -07:00
Leonardo de Moura
216e87e9a9
feat: add LBool
2019-10-30 19:30:08 -07:00
Leonardo de Moura
136b2c5171
fix: save updateLhs and updateRhs when postponing constraints
2019-10-30 19:29:21 -07:00
Leonardo de Moura
a7921e7013
feat: isDefEq for universe levels
2019-10-30 19:14:44 -07:00
Leonardo de Moura
e32402513d
feat: add hasAssignableLevelMVar
2019-10-30 18:23:30 -07:00
Leonardo de Moura
a9f3aa086d
feat: add Level.dec
2019-10-30 18:23:12 -07:00
Leonardo de Moura
ab88c312b5
chore: TypeContext => TypeInference
2019-10-30 15:51:37 -07:00
Leonardo de Moura
31767d025d
feat: improve AbstractMetavarContext interface
2019-10-30 15:02:33 -07:00
Leonardo de Moura
5f41cb69e4
feat: TmpMetavarContext
2019-10-30 14:56:01 -07:00
Leonardo de Moura
875d7657d9
feat: implement isEquiv in Lean
2019-10-30 14:55:40 -07:00
Leonardo de Moura
4d5d3133bd
feat: universe level helper functions
2019-10-30 13:19:08 -07:00
Leonardo de Moura
7ab79b8729
chore: missing instance
2019-10-28 19:48:27 -07:00
Leonardo de Moura
5878aa0471
fix: mkForallAux modifies mctx
2019-10-28 19:47:56 -07:00
Leonardo de Moura
6c252a3f08
doc: add extra comments
2019-10-28 19:05:50 -07:00
Leonardo de Moura
57c9fb7f91
feat: add AbstractMetavarContext.mkForall and AbstractMetavarContext.mkLambda
2019-10-28 17:25:46 -07:00
Leonardo de Moura
0895a16a49
fead: add MonadCache helper class
2019-10-28 17:25:46 -07: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
f4eb95cefb
chore: add BinderInfo.isAuxDecl
2019-10-28 13:39:58 -07:00
Leonardo de Moura
4a3eccade7
chore: fix name
2019-10-28 13:39:47 -07:00
Leonardo de Moura
52f26022da
chore: enforce naming convention
2019-10-28 11:10:25 -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
3c57c2b5ac
feat: dependsOn
2019-10-27 17:40:43 -07:00
Leonardo de Moura
99e420ed45
feat: add ExprSet and PersistentExprSet
2019-10-27 17:27:46 -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
b0755d18ad
feat: add synthetic field
2019-10-26 16:35:03 -07:00
Leonardo de Moura
9a48b25172
chore: simplify signatures
2019-10-26 16:28:57 -07:00
Leonardo de Moura
5c11c0b0e8
doc: document metavariables
2019-10-26 16:25:59 -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
b896069246
refactor: add AbstractMetavarContext module
2019-10-26 07:50:25 -07:00
Leonardo de Moura
308743bf15
feat: finish Expr.app case at instantiateExprMVars
2019-10-25 17:37:49 -07:00
Leonardo de Moura
f46db3cc01
feat: add Expr helper functions
2019-10-25 16:47:07 -07:00
Leonardo de Moura
336caaea63
feat: add instantiateDelayed
2019-10-25 14:31:30 -07:00
Leonardo de Moura
423b0fed3a
refactor: use Array Expr at DelayedMVarAssignment
2019-10-25 12:03:09 -07:00
Leonardo de Moura
b86e3b901c
chore: DelayedMetavarAssignment => `DelayedMVarAssignment
2019-10-25 11:34:48 -07:00
Leonardo de Moura
30c585e280
feat: metavariable instantiation functions
2019-10-25 11:29:47 -07:00
Leonardo de Moura
966882b85c
feat: add Expr.updateMData
2019-10-25 10:57:17 -07:00
Leonardo de Moura
920bdead01
chore: add helper functions
2019-10-25 10:45:26 -07:00
Leonardo de Moura
2eeeab68b3
chore: missing inline
2019-10-25 10:45:09 -07:00
Leonardo de Moura
14afe50384
chore: fix extern Level primitive names
2019-10-24 19:09:37 -07:00
Leonardo de Moura
025e9d32ef
feat: update functions for universe levels, use C version of Level.hasParam and Level.hasMVar
2019-10-24 19:04:01 -07:00