Skip to main content

SemantifyrSemantifyr

Semantifyr is a framework to support the declarative definition of engineering model semantics: the meaning of a modelling language is written once, as a semantic library, and the models written in it are then verified by established model checkers, within the part of the language the library covers and the checkers accept. SysML v2 and Gamma are its currently implemented frontends: a model in either is verified as it is written, and the trace of a case comes back in the language of the model.

doc
/*
* Two traffic lights at a crossroads, cycled by one controller and interrupted by the police.
* On a timer, the controller toggles each light from yellow to red, to green and back to yellow, so that the two roads get green in turn.
* A police signal from outside interrupts the cycle and both lights blink yellow, until a second signal restarts it.
* The cases ask whether the police can interrupt, whether the lights blink, whether road B gets green, and whether both roads can be green at once.
*/

private import SI::s;

item def Police;
item def Toggle;
item def RedL;
item def YellowL;
item def GreenL;
item def NoneL;

port def CentralControl {
out item police : Police;
out item toggle : Toggle;
}
port def LightControl {

The crossroads, a SysML v2 model of two traffic lights and their controller. Open shows it in Live here, where Verify all checks its cases.

How it works

ModelFrontendSemantifyr modelSemantic libraryFormal modelBackendTheta, nuXmv,Spin, UppaalFormal traceSemantifyr traceTracerefinesrefinesrefinesrefinesModelFrontendSemantifyrmodelSemanticlibraryFormal modelBackendTheta, nuXmv, Spin, UppaalFormal traceSemantifyrtraceTracerefinesrefinesrefinesrefines

Learn

From a first verification in the browser to the full specification of the Semantifyr Language.

Go to Learn

Semantifyr Live

Edit and verify SysML v2, Gamma and Semantifyr models in the browser, with nothing to install.

Open Live

Publications

The papers on Semantifyr and its approach of semantic libraries.

See the publications