Views
User manual/lpsconfcheck
From MCRL2
Mark confluent tau-summands of an LPS.
Contents |
Synopsis
lpsconfcheck [OPTION]... [INFILE [OUTFILE]]
Short description
The lpsconfcheck tool checks which tau-summands of the linear process specification (LPS) in INFILE are confluent and marks them by renaming their tau-actions to ctau. The resulting LPS is written to OUTFILE. If INFILE is not present, stdin is used. If OUTFILE is not present, stdout is used.
Options
OPTION can be any of the following:
- -a, --check-all
- check confluence of the tau-summands regarding all other summands, instead of continuing with the next tau-summand as soon as a summand is encountered that is not confluent with the current tau-summand
- -c, --counter-example
- display a valuation for which the confluence condition does not hold, in case the encountered condition is neither a contradiction nor a tautology
- -g, --generate-invariants
- try to prove that the reduced confluence condition is an invariant of the LPS, in case the confluence condition is not a tautology
- -iINVFILE, --invariant=INVFILE
- use the boolean formula (an mCRL2 data expression of sort Bool) in INVFILE as invariant
- -m, --no-marking
- do not mark the confluent tau-summands; since there are no changes made to the LPS, nothing is written to OUTFILE
- -n, --no-check
- do not check if the invariant holds before checking for confluence
- -o, --induction
- apply induction on lists
- -pPREFIX, --print-dot=PREFIX
- save a .dot file of the resulting BDD in case two summands cannot be proven confluent; PREFIX will be used as prefix of the output files
- -rNAME, --rewrite-strategy=NAME
- use rewrite strategy NAME
- -sNUM, --summand=NUM
- check the summand with number NUM only
- -tLIMIT, --time-limit=LIMIT
- spend at most LIMIT seconds on proving a single formula
- -zSOLVER, --smt-solver=SOLVER
- use SOLVER to remove inconsistent paths from BDDs:
- 'ario' for the SMT solver Ario
- 'cvc' for the SMT solver CVC3
- by default, no path elimination is applied
Standard options:
- -q, --quiet
- do not display warning messages
- -v, --verbose
- display short intermediate messages
- -d, --debug
- display detailed intermediate messages
- -h, --help
- display help information
- --version
- display version information
Detailed description
Given an LPS:
tau-summand j is confluent with summand i if the following condition holds:
where inv() is the invariant specified using the option --invariant. In case ai is also a tau-action, this formula can be weakened to the following:
If the option --invariant is not used, the invariant is equal to true.
The tool will generate these confluence conditions for all tau-summands and tries to prove that they are tautologies using a BDD based prover for propositional formulas. In some cases lpsconfcheck indicates that a tau-summand is not confluent even though it is. The option --verbose gives insight into what the prover is doing and can be used to see if rewrite rules have to be added to the specification in order to enable the prover to determine that certain condition are indeed tautologies.
In some cases it may be useful to use an SMT solver to assist the prover. The SMT solver can further reduce BDDs by removing inconsistent paths. A specific SMT solver can be chosen using the option --smt-solver=SOLVER. Either the SMT solver Ario or CVC3 can be used. To use one of these solvers, the directory containing the corresponding executable must be in the path.
The tool can determine whether two summands are confluent in three ways and will indicate which of the methods was used while proving confluence. The three ways of determining confluence are as follows:
- If summand number 1 has been proven confluent with summand number 2, summand number 2 is also confluent with summand number 1. This method of checking confluence is called checking confluence by symmetry. If two summands are confluent by symmetry, lpsconfcheck indicates this by printing a dot ('.').
- Another way of checking the confluence of two summands is determining whether the two summands are syntactically disjoint. Two summands are syntactically disjoint if the following holds:
- The set of variables used by one summand is disjoint from the set of variables changed by the other summand and vice versa.
- The set of variables changed by one summand is disjoint from the set of variables changed by the other summand.
- If two summands are confluent because of syntactic disjointness, lpsconfcheck indicates this by printing a colon (':').
- The most time consuming way of checking the confluence of two summands is generating the confluence condition and then checking if this condition is a tautology using the prover. If two summands are proven confluent using the prover, lpsconfcheck indicates this by printing a plus sign ('+'). If the option --generate-invariants is used, the lpsconfcheck tool will try to prove that the reduced confluence condition is an invariant of the LPS, in case the confluence condition is not a tautology. If the reduced confluence condition is indeed an invariant, the two summands are proven confluent. lpsconfcheck indicates this by printing an 'i'.
If there already is an action named ctau present in the LPS as found in INFILE, an error will be reported.
Author
Written by Luc Engelen.
Bug reporting
Report bugs at our issue tracking system.
lpsbisim2pbes
| lpsconstelm
|
Copyright © 2005-2012 Technische Universiteit Eindhoven.
