Systems
A system binds a schema and agent instances together for analysis.
system Name {
schema: SchemaName ;
agents {
AgentType(args) ;
AgentType(args) * count ;
}
init {
<expression> ;
}
sync {
AgentA.transitionA <-> AgentB.transitionB ;
}
properties {
propName : <expression> ;
}
}Parts#
The sections must appear in this order; every one but schema: is optional.
schema:— the name of a declared schema.agents { }— agent instances, one per line.* countcreatescountcopies.init { }— a single Boolean expression constraining the initial state, followed by;. Combine conditions with&&.sync { }— synchronisation rules, eachA.t <-> B.u ;, pairing transitiontof agentAwith transitionuof agentB.properties { }— named Boolean formulas to verify, eachname : expression ;.
Known limitation
sync rules are parsed and checked for syntax, but the analyzer does not use them today.
Example#
type PhilState = { THINKING, HUNGRY, EATING } ;
schema DiningTable {
attributes {
numPhil : Int = 5 ;
phil : Array(PhilState, 5) ;
}
}
system DiningPhilosophers {
schema: DiningTable ;
agents {
Philosopher(i) * 5 ;
Fork(i) * 5 ;
}
init {
numPhil == 5 ;
}
sync {
Philosopher.pickLeft <-> Fork.take ;
}
properties {
mutualExclusion : forall (i : Int) in [0..numPhil) .
!(phil[i] == EATING && phil[(i + 1) % numPhil] == EATING) ;
}
}