Questions tagged [z-notation]

Use this tag with the Z notation /ˈzɛd/ which is a formal specification language used for describing and modelling computing systems.

33 questions
1
vote
2 answers

Applications of Objective-Z

What are applications of Objective-Z? I have read about Objective-Z, but I cannot imagine to what it would be applied. This question may be too broad, but I do not think that there are too many answers.
MarkusWillson
  • 411
  • 1
  • 3
  • 11
1
vote
1 answer

Formal Methods (Z-notation) - adding a new multiple relation

We 've got an operation Bus_Arrives that accepts the following A LINE, a BUS_ID and a BUSROAD A bus of a given line arrives at the station and is assigned an empty bus-road, if one is available. Otherwise it enters a…
nmargaritis
  • 859
  • 7
  • 21
1
vote
1 answer

Difference between declarative and model-based specification

I've read definition of these 2 notions on wiki, but the difference is still not clear. Could someone give examples and some easy explanation?
Konstantin Milyutin
  • 11,946
  • 11
  • 59
  • 85
0
votes
1 answer

Z notation specification to modify content of a set

Let's say I have a set: S: Id X Counter Id: \nat Counter: \nat Need help to define an operation filter which takes in two parameters, x:\nat and y:\nat which I can apply to S. This function will match on the first parameter with \exists a \in S @…
stan_plogic
  • 113
  • 8
0
votes
1 answer

Installing Fuzz. Error: exp ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘x_slot’ected

I am installing "Fuzz typechecker Z" in Ubuntu 20.04 https://spivey.oriel.ox.ac.uk/corner/Fuzz_typechecker_for_Z However, when I do make I get the following errors. Any idea where should I start? make -C src all make[1]: Entering directory…
Griselle Z
  • 127
  • 1
  • 9
0
votes
1 answer

Find the image of a given value in a relation

I have a relation R given below: R = {(a,1), (a,2), (b,1)} To get the image set of a, we can write R(|{a}|) = {1,2} in Z notation, using thick brackets symbol (| |). Is there a mathematical symbol to represent this rather than using the Z notation?…
snow
  • 47
  • 3
0
votes
1 answer

Z Notation: sequence of sequences - find sum

Let me just say that this is for a university project. I do not expect an answer but more of a "hint". I have a schema of a Supermarket that holds a sequence of queues: +-- Supermarket------- |queues: seq Queue ---------------------- And here is…
tdranv
  • 1,140
  • 11
  • 38
0
votes
1 answer

object-Z specification of credit card using eclipse

i am currently trying to run an example of object-Z specification for the CreditCard class, but i encountered a problem when declaring the visibility list and INIT schema.Is there any way to fix this ? Thank you for reading visibility list says the…
0
votes
0 answers

Z notation to prolog

I have a Z specification and I have to translate it into Prolog code. I try but it doesn't work so someone can help me? linkedListInit(LinkedList) :- LinkedList = {[linked,L],[size, S]} & list(L) & S is…
0
votes
2 answers

How to represent sequential operation schemas [Z-notation]

I have an operation schema C which consists of two sequential operation schemas A and B. A must be performed before B. I'm stuck on how to represent the sequence of schema activation. Can I use schema conjunction, i.e. C == A ∧ B ? or is there a way…
snow
  • 47
  • 3
0
votes
1 answer

In Z notation, how to define a division operation for integer numbers

I was wondering to know if anyone out here even used the "Z notation" in a professional environment. Just curious to know some commonly-known applications of Z or your application. For those who are not familiar :…
pc70
  • 681
  • 1
  • 14
  • 28
0
votes
1 answer

Return highest or lowest value Z notation , formal method

I am new to Z notation, Lets say I have a function f defined as X |--> Y , where X is string and Y is number. How can I get highest Y value in this function? Does 'loop' exist in formal method so I can solve it using loop? I know there is…
asdzxcyykk
  • 69
  • 2
  • 5
0
votes
1 answer

How do I design a search operation in Z notation whereby the search function requires at least one details?

This is my Z schema for Appointment DB. |--AppointmentDB---------------- |attendees : P Person /** those involved in the appointment **/ | |/** a new TYPE object to store attendees, schedule and purpose **/ |appointments : P…
John Evans Solachuk
  • 1,953
  • 5
  • 31
  • 67
0
votes
1 answer

How do I properly design a Z schema for this scenario?

All of the examples I found had only 2 declarations such as name and date OR members and telephone. However, my scenario is this : I would like to create a Z schema called AppointmentDB. AppointmentDB keeps appointments details such purpose,…
John Evans Solachuk
  • 1,953
  • 5
  • 31
  • 67
0
votes
1 answer

How can i find z-notation compiler or parser or interpreter?

I should find z notation parser or compiler. Please help me if you can.