mirror of
https://github.com/Jaxan/nominal-lstar.git
synced 2025-04-27 14:47:45 +02:00
Optimization of incompleteness function.
This commit is contained in:
parent
c3c6645039
commit
fbcba8c580
1 changed files with 2 additions and 1 deletions
|
@ -19,8 +19,9 @@ import Prelude hiding (and, curry, filter, lookup, map, not,
|
|||
incompleteness :: NominalType i => State i -> Set [i]
|
||||
incompleteness State{..} = filter (not . hasEqRow) ssa
|
||||
where
|
||||
sss = map (row t) ss
|
||||
-- true if the sequence sa has an equivalent row in ss
|
||||
hasEqRow sa = exists (\s2 -> eq (row t sa) (row t s2)) ss
|
||||
hasEqRow = contains sss . row t
|
||||
|
||||
-- We can determine its consistency with the following
|
||||
-- Returns equivalent rows (fst) with all inequivalent extensions (snd)
|
||||
|
|
Loading…
Add table
Reference in a new issue