- 1 General
- 2 General Tool Usage?
- 3 Modeling
- 3.1 Witness for Xyz missing. Default witness generated
- 3.2 Identifier Xyz should not occur free in a witness
- 3.3 In INITIALISATION, I get Witness Xyz must be a disappearing abstract variable or parameter
- 3.4 I've added a witness for Xyz but it keeps saying "Identifier Xyz has not been defined"
- 3.5 What are type expressions in Event-B?
- 4 Proving
- 5 How to contribute?
- 6 Developer FAQ
- 6.1 How can I get the sources of the Rodin platform?
- 6.2 Installing the source bundle in Eclipse
- 6.3 Installing the sources from Subversion in Eclipse
- 6.4 Using Rodin-SVN from Eclipse consumes too much memory
- 6.5 How do I generate a Rodin product from sources?
- 6.6 How to build Rodin headless?
- 6.7 How do I collect debug information from the Rodin platform?
- 6.8 How do I submit a patch?
- 6.9 How do I track memory leaks?
- 6.10 How do I report a bug.
- 6.11 How do I save the models ?
- 6.12 How do I add a new attribute to existing elements (e.g. Event-B event)?
- 6.13 How do I extend the Event-B structure editor (the Edit Tab of the Event-B editor) for editing an attribute (which I added to the Rodin DB as describe here)?
What is event-B?
Event-B is a formal method for system-level modelling and analysis. Key features of event-B are the use of set theory as a modelling notation, the use of refinement to represent systems at different abstraction levels and the use of mathematical proof to verify consistency between refinement levels. More details are available in http://www.event-b.org/
What is the difference between event-B and the B method?
Event-B is derived from the B method. Both notations have the same inventor, and share many common concepts (set-theory, refinement, proof obligations, ...) However, they are used for quite different purpose. The B method is devoted to the development of correct by construction software, while the purpose of event-B is to model full systems (including hardware, software and environment of operation).
Both notations use a mathematical language which are quite close but do not match exactly (in particular, operator precedences are different).
What is Rodin?
The Rodin Platform is an Eclipse-based IDE for Event-B that provides effective support for refinement and mathematical proof. The platform is open source, contributes to the Eclipse framework and is further extendable with plugins.
Where does the Rodin name come from?
The Rodin platform was initially developed within the European Commission funded Rodin project (IST-511599 ), where Rodin is an acronym for "Rigorous Open Development Environment for Complex Systems” . Rodin is also the name of a famous French sculptor, one of his most famous work being the Thinker.
General Tool Usage?
How do I install external plug-ins without using Eclipse Update Manager?
Although it is preferred to install additional plug-ins into the Rodin platform using the Update Manager of Eclipse, this might not always be practical. In this case, a manner to install these plug-ins is to emulate either manually or using ad-hoc scripts the operations normally performed by the Update Manager.
This manual installation of plug-ins is described in Installing external plug-ins manually.
The builder takes too long
Generally, the builder spends most of its time attempting to prove POs. There are basically two ways to get it out of the way:
- the first one is to disable the automated prover in the Preferences panel.
- the second one is to mark some PO as reviewed when you don't want the auto-prover to attempt them anymore.
Note that if you disable the automated prover, you always can run it later on some files by using the contextual menu in the event-B Explorer.
To disable the automated prover, open Rodin Preferences (menu). In the tree in the left-hand panel, select . Then, in the right-hand panel ensure that the checkbox labelled Enable auto-tactic for proving is disabled.
To review a proof obligation, just open it in the interactive prover, then click on the review button (this is a round blue button with a R in the proof control toolbar). The proof obligation should now labelled with the same icon in the event-B explorer.
What are the ASCII shortcuts for mathematical operators
The ASCII shortcuts that can be used for entering mathematical operators are described in the help of the event-B keyboard plug-in. In the help system, this page has the following path.
This page is also available in the dynamic help system. The advantage of using dynamic help is that it allows to display the help page side-by-side with the other views and editors. To start the dynamic help, click, then click and select the page in the tree.
Rodin (and eclipse) doesn't take into account the MOZILLA_FIVE_HOME environment variableYou have to add a properties by appending the following code to your
Witness for Xyz missing. Default witness generated
A parameter as disappeared during a refinement. If this is intentional, you have to add a witness telling how the abstract parameter is refined.
Identifier Xyz should not occur free in a witness
You refer to
In INITIALISATION, I get Witness Xyz must be a disappearing abstract variable or parameter
The witness is for the after value of the abstract variable, hence you should use the primed variable. The witness label should be
I've added a witness for Xyz but it keeps saying "Identifier Xyz has not been defined"
As specified in the modelling language manual, the witness must be labelled by the name
What are type expressions in Event-B?
The type expressions are defined recursively as follows:
- Built-in types: ℤ, BOOL (Note that ℕ is NOT a type expressions).
- Any carrier set is a type expression.
- If <math>T</math> is a type expression then <math>ℙ(T)</math> is a type expression.
- If <math>S</math> and <math>T</math> are type expressions then <math>S × T</math> is a type expression.
How can I do a Proof by Induction?
This page about proof by induction will give you some starting tips.
Labels of proof tree nodes explained
- ahmeans add hypothesis,
- ehmeans rewrite with equality from hypothesis from left to right,
- hemeans rewrite with equality from hypothesis from right to left,
- rvtell us that this goal as been manually reviewed,
- sl/dsmeans selection/deselection,
- PPmeans discharged by the predicate prover
- MLmeans discharged by the mono lemma prover
How to contribute?
See the How to contribute page.
How can I get the sources of the Rodin platform?
There are two options for getting the sources of the Rodin platform:
- The safe option is to download the source bundle which is made available with each platform release. This ensures that you will get a consistent set of source files, albeit maybe a bit outdated.
- The other option is to fetch the sources from Subversion, which allows to get their latest version. The Rodin developers strive for keeping theses sources usable (i.e. they should always compile and pass unit tests), but breakage can happen.
Installing the source bundle in Eclipse
To install the bundled sources, you first have to download the bundle from SourceForge. It takes the form of a ZIP file named rodin-VERSION-sources.zip. Then, in Eclipse, clickIn the Import popup, select and click . Then tick and enter the path to the source bundle you have just downloaded. Ensure that all projects are ticked and click . Your workspace gets populated with the source projects of the Rodin platform and Eclipse starts building.
Installing the sources from Subversion in Eclipse
To install the sources from Subversion, in Eclipse click https://rodin-b-sharp.svn.sourceforge.net/svnroot/rodin-b-sharp and click . In the tree displaying the subversion repository, select path trunk/RodinCore/org.rodinp.releng and click . Your workspace now contains the project org.rodinp.releng., then select in the Import popup and click twice. In the Url textbox, enter
To install the other source projects, click again, but this time select and click . When asked for a File name, enter the path to file org.rodinp.releng/rodin-core.psf in your workspace and click . Eclipse then fetches the other source projects of the Rodin platform into your workspace (this can take some time).
Using Rodin-SVN from Eclipse consumes too much memory
Running the Rodin platform from Eclipse can consume a lot of RAM and become impractical on a small machine. If you fall in this case, you can generate a product and use it as if it was a normal release.
How do I generate a Rodin product from sources?
In the project org.rodinp.platform, right-click on Rodin.platform and select. Choose and click on type Rodin for the Root directory, and choose the Destination directory. Then click on .
How to build Rodin headless?
When releasing a new version of the Rodin platform, the Rodin team builds the platform headless (i.e. using batch scripts rather than Eclipse GUI). The process used for that is described in Building Rodin Headless. Alternatively, the Rodin team has also set up a CruiseControl server for checking that builds do not break.
How do I collect debug information from the Rodin platform?
You may see the log in the console by appending -consoleLog to the rodin executable:
rodin --debug options.file -consoleLogwhere
org.pluginname/debug = true org.pluginname/debug/optionaldebug = truewhere optionaldebug may be found in the
How do I submit a patch?
Good practises for patch submission are described here.
How do I track memory leaks?
If you suspect that some memory isn't freed, you may find some useful directions on how to track memory leaks here.
How do I report a bug.
How do I save the models ?
After the separation between a file (IRodinFile) and its root (a IInternalElement), that occurred in version 0.9.2, model saving is no more achievable through internal elements. Instead, you have to save the IRodinFile.
IInternalElement element = ... element.getRodinFile().save(...);
How do I add a new attribute to existing elements (e.g. Event-B event)?
You need to extend the following extension point
org.rodinp.core.attributeTypes to declare the new attribute.
Note: There is no constraint on which element type this attribute type associated with. In principle, any attribute type can be attached to the any internal element type.
The detail steps are described in the following page Extending the Rodin Database.
How do I extend the Event-B structure editor (the Edit Tab of the Event-B editor) for editing an attribute (which I added to the Rodin DB as describe here)?
You need to extend the following extension point
org.eventb.ui.editorItems to declare the two different elements:
- How the attribute is going to be displayed/edited. This is done by declaring one of the following elements:
- The relationship between the attribute and an internal element. This is done by declaring a