[Z/EVES] A Relation domain checking problem (but FuzZ is ok)
- From: xrenault <xrenault@xxxxxxxxx>
- Date: Mon, 22 Oct 2007 14:06:52 -0000
Hi all !
I'm back again with some questions :)
I have the following (simplified) schemas:
\begin{syntax}
[A,B]
\end{syntax}
\begin{schema}{Entry}
a: A
\also
b: B
\end{schema}
\begin{schema}{MainComponent}
Map: \bag Entry
\also
Relation: A \rel B
\where
(\forall e: Entry | e \inbag Map @ Map \bcount e \leq 1)
\also
(\forall e1,e2 : Entry | e1 \neq e2 \land e1 \inbag Map \land e2
\inbag Map
@ \\
e1.a \neq e2.a \land e1.b \neq e2.b)
\also
Relation = \{e: Entry | e \in \dom Map @ (e.a, e.b)\}
\end{schema}
In the main component, I want to explicitly say that an Entry must not
be registered twice (this is the goal of the two first predicates),
and then build a relation upon the map (for convenience)
Then, in order to make a robust operation, I declare the following
operator schema:
\begin{schema}{UseRelation\_OK}
\Xi MainComponent
\also
x? : A
\also
ret! : B
\where
x? \in \dom Relation \land \\
ret! =
Relation(x?)
\end{schema}
I do not put here the UseRelation\_ERR and the final UseRelation
operator (there is no problem with)
The point: Z/EVES fails on the domain checking of UseRelation\_OK, and
ends with:
<many assertions>
\implies
\{ e\_\_5: Entry | e\_\_5 \in \dom Map @ (e\_\_5.a, e\_\_5.b) \}
applies\$to x?
Having a look into the Z Reference Manual and toolkit, I saw that
there was a disabled rule "appliesToDef[X,Y]"
I tried to use it as
=> use appliesToDef[A,B][Relation/R, x?/x];
But i only reach complicated goals, and couldn't really go further.
Does anyone have an idea to domain check this schema operator ? Or at
least what could be the problem ?
I will post any informations if needed.
Any suggestions / remarks / questions are welcome :-)
Thanks very much,
Xavier.
ps : I tried to domain check this with FuzZ, but there is no messages
nor errors...
.
- Prev by Date: Call for Papers: ICA3PP-2008
- Next by Date: QAPL 2008 Call for Papers
- Previous by thread: Call for Papers: ICA3PP-2008
- Next by thread: QAPL 2008 Call for Papers
- Index(es):
Relevant Pages
|