17 questions
1
vote
1
answer
55
views
Type mismatch error when using domain subtraction on function variable
I have this formal specification and the error seems to be simple to fix. However, I have spent a decent amount of time and still cannot figure out. The error is related to domain subtraction. The ...
1
vote
1
answer
73
views
How to add an element to a total function while making sure no other mapping to this element exists?
I am trying to formally specify a railway interlocking system with the B method in Atelier B. The most basic underlying concept is very simple: trains can be assigned a location and an area. There can ...
0
votes
1
answer
45
views
how to get the set of the two ends of the relation in set theory
Here, I have a relation r ∈ A ↔ B, and if I only know about r, how can I get the set A and B? Is it possible?
Actually, I doubt whether it can be done according to what I know, and if it's impossible ,...
1
vote
1
answer
56
views
how to handle multiple ordered pairs in Event-B
I want to get the last two mapped elements of a deterministic ternary ordered pair in the form of binary ordered pairs, here's an example:
set A = { 1 ↦ 2 ↦ 3,1 ↦ 5 ↦ 6} ,I want to get set B = {2 ...
1
vote
1
answer
83
views
Rodin tool prover - transitivity
So I'm getting to know the event-b specification language and the Rodin tool.
While doing that, I came across some weird behavior of the Rodin tool, and I'd love to get some help here.
I'm on the ...
0
votes
0
answers
77
views
How to model an OIL_TANK
I have this problem below:
That i'am trying to model an Oil-Tank deterministic and i'am using Rodin to simulate this.
The thing is that we have an oil-Tank that is level is going to be between 20 and ...
2
votes
1
answer
122
views
How to populate a relation with an axiom in event b
So, I have a Rodin event-b project and would like to define a known static relation. For examples sake, lets say I have a set {a,b,c} and would like to specify the relation constant which is equal to {...
0
votes
1
answer
315
views
Event-B total function proof obligation
I have question as follows: A set A is defined and total function X with invariant type
X ∈ A --> BOOL
and an event A_setSate:
A_setSate =
WHEN X(A) = TRUE
THEN X(A) := FALSE
the problem is ...
1
vote
1
answer
247
views
How to fix the unknown Configuration org.animb.valuation.valBase in my Rodin Platform Event-B project?
I have import a fully Refined model in my latest version of Rodin Platform and I am trying to use a IUMLB with ProB animator in this project. But since the project already had a preconfigured AnimB ...
1
vote
1
answer
241
views
Event-B Proof Obligations
I have a problem in Event-B to discharge proof obligations. In my work,
I want to formalize the specification of memory protection requirements to check the consistency between them. In order to do ...
1
vote
0
answers
69
views
How to Visualise large number of code in Pro-B
I have a problem with visualising large number of code in ProB.
This graph shows the login section of a server with (using Graphviz' dotty) of ProB, but there is no solution for large number of code ...
1
vote
2
answers
118
views
Getting the prime/next state of a variable
Given some condition, I want to check that a variables next state holds for some proposition. I have not been able to create something that rodin has accepted.
My exact case is the following ...
0
votes
1
answer
353
views
Event-B, formal modelling : How to affect all the elements of a set to a relation
I'm having quite a lot of troubles with Event-B..
I'd like to make a relation from a group of client to a client number each
I have a relation of that type :
cli(PERSON) = NAT1 (Person is ...
0
votes
1
answer
924
views
Event-B Rodin platform, Modelling Sub-Sets relation
I'm a beginner on Event-B and I'm trying to model a machine where the set PERSONNE includes the set CLIENT which includes the set RESIDENT... I've searched on Rodin's documentation but I haven't found ...
1
vote
1
answer
440
views
Event B Total Function
I have a question as follows:
A primary school class contains a number of children and a variety of books. Write a model which keeps track of the books that the children have read. It should maintain ...
2
votes
1
answer
214
views
Modelling Relation in Event-B
I have a question as follows:
A primary school class contains a number of children and a variety of books. Write a model which keeps track of the books that the children have read. It should maintain ...
5
votes
2
answers
545
views
event-b: is it possible generate sequence from ... to ... of prime numbers via lambda in one expression?
I wonder if it's possible to generate a sequence of prime numbers with just one lambda expression in event-b. This is what I have so far:
@axm1 primeSet = {x∣ x ∈ 1‥100 ∧ ¬(∃y·y < x ∧ y > 1 ∧ x ...