modeling - Event-B, formal modelling : How to affect all the elements of a set to a relation -


i'm having quite lot of troubles event-b..

i'd make relation group of client client number each

i have relation of type :

cli(person) = nat1 (person finite set)

and in event have subset of person

where group <: person 

and i'd affect cli relation i'd write intuitively :

! x . x : group | cli(x) = numcli 

am modelling right way? there method affectation i'd get?

i'm little bit guessing want achieve: cli maps person number:

variables   cli invariants   cli : person +-> nat1 

you want event (let's call ev) assigns group of persons (called group) same number:

ev =   group, numcli   group <: person   numcli : nat1   cli := cli <+ (group**{numcli}) end 

group ** {numcli} set of pairs (a relation) first element element of group , second numcli. operator <+ (relational override) removes elements cli first element if 1 of right operand , adds right operand. i.e. mappings of group in cli replaced or added mapping numcli.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -