projects
/
cubicaltt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ed3dcf
)
fixed support for Env
author
Simon Huber
<hubsim@gmail.com>
Thu, 19 Mar 2015 09:35:55 +0000
(10:35 +0100)
committer
Simon Huber
<hubsim@gmail.com>
Thu, 19 Mar 2015 09:35:55 +0000
(10:35 +0100)
Eval.hs
patch
|
blob
|
blame
|
history
diff --git
a/Eval.hs
b/Eval.hs
index 7be6d0013c245602ccbce322f457a267f8268c8e..6d387d1e596b1d3dfb10d8e48869575aaa9a99e3 100644
(file)
--- a/
Eval.hs
+++ b/
Eval.hs
@@
-36,7
+36,11
@@
lookName i (Sub rho (j,phi)) | i == j = phi
-- Nominal instances
instance Nominal Env where
- support = support . formulaOfEnv
+ support Empty = []
+ support (Pair rho (_,u)) = support u `union` support rho
+ support (Sub rho (_,phi)) = support phi `union` support rho
+ support (Def _ rho) = support rho
+
act e iphi = mapEnv (`act` iphi) (`act` iphi) e
swap e ij = mapEnv (`swap` ij) (`swap` ij) e