Chapter 3 — Assumptions
Guarantee g1 of chapter 2, “when someone presses the button, the light switches on”, presupposes a
behaviour of the person on the stairs: that the button is actually pressed, and not merely brushed. A
contact of a few milliseconds may be indistinguishable from electrical noise, and the installation is not
required to recognise it. The chapter describes how to write what a guarantee presupposes.
The assumption
An assumption is a condition on the behaviour of whoever is on the other side of the boundary, a condition on which a guarantee depends. For the staircase light the assumption is: whoever presses the button holds it down for at least a tenth of a second.
The guarantee depends on the assumption. If the button is held down for a tenth of a second or more, the light must switch on; if it is only brushed, the light may not switch on, and in that case the guarantee is not violated, because the assumption on which it rests is not satisfied.
An assumption is written only if a guarantee depends on it. A behaviour of the other side on which no guarantee depends is not an assumption and is not written in this CSC.
The ASSUME line
The file UsoLuce.csc with the assumption:
-- The staircase light, as seen by the person on the stairs.
CSC UsoLuce VERSION 0.1
PURPOSE "The person on the stairs presses a button and has light to go up or down"
EVENT IN premuto
STATE accesa : Boolean INITIAL false
GUARANTEE g1: VERBAL "When someone presses the button, the light switches on"
VERIFY BY JUDGEMENT "a person who presses the button and watches"
GUARANTEE g2: VERBAL "The light switches off by itself after a while"
VERIFY BY JUDGEMENT "a person with a watch"
ASSUME a1: VERBAL "Whoever presses the button holds it down for at least a tenth of a second"
VERIFY BY JUDGEMENT "a person who observes how the button is pressed"
END
ASSUME means “assumes”. The line has the same form as a guarantee: a short name (a1), the text in
words introduced by VERBAL and, normally on the following line, the verification. The verification of an assumption states who checks
that the other side behaves as expected, and how.
Guarantees and assumptions together are the contractual lines of the CSC: they enter the contract when they are approved. The short names of guarantees and assumptions belong to the same set, so an assumption cannot have the same name as a guarantee.
The file does not state which guarantee an assumption depends on: the link is derived from the text. In the example,
a1 concerns the pressing of the button, so g1 depends on it.
The report
$ bcdd check --strict UsoLuce.csc
bcdd check --strict UsoLuce.csc
lines: 15 (recognised 11, comments 1, blank 3, unrecognised 0)
blocks: 1
line 3: CSC UsoLuce VERSION 0.1, without STATUS
1. ERRORS: 0
2. DEGREE OF THE CONTRACTUAL LINES
verbal: 3
formal: 0
declared extension: 0
unrecognised: 0
line 9: GUARANTEE g1 verbal
line 11: GUARANTEE g2 verbal
line 13: ASSUME a1 verbal
3. UNDECIDED: 0
4. PENDING APPROVAL, NOT CONTRACT: 3
line 9: GUARANTEE g1
line 11: GUARANTEE g2
line 13: ASSUME a1
5. UNRECOGNISED LINES: 0
6. UNDECLARED TYPES: 0
7. CSCs NAMED BUT NOT CHECKED: 0
outcome: no errors
The assumption appears in sections 2 and 4 next to the guarantees: it is a contractual line written in words and, like the guarantees, it is still pending approval.
When an assumption is not satisfied
If an assumption is not satisfied, the guarantee that depends on it is not violated: the outcome indicates that the other side did not behave as expected. In the verification of a real installation this outcome is called assumption not satisfied and is distinct from a violated guarantee (chapter 24).
For this reason an assumption must be written with the same care as a guarantee. An assumption that is too broad, for example “whoever presses the button uses it correctly”, in effect cancels the guarantee: any failure of the installation could be attributed to incorrect use.
Summary
- An assumption (
ASSUME) is a condition on whoever is on the other side of the boundary, a condition on which a guarantee depends. - It is written only if a guarantee depends on it, with the same form as a guarantee: short name, text and verification.
- If the assumption is not satisfied, the guarantee that depends on it is not violated.
- Guarantees and assumptions are the contractual lines of the CSC and share the same set of short names.
Special cases
Assumption without verification. If the VERIFY line below a1 is removed, the report shows the same
error as for a guarantee without verification:
1. ERRORS: 1
line 13: [E13] VERBAL without VERIFY: VERIFY BY JUDGEMENT or INSPECTION and a string are needed
Short name already used by a guarantee. If the assumption is called g1, like the first guarantee:
1. ERRORS: 1
line 13: [E01] name already used at line 9: g1
Obligation of the other side with no guarantee depending on it. “The person on the stairs switches the light off on leaving” is not
an assumption of this CSC: no guarantee of the light depends on it. bcdd cannot
detect this, because it does not interpret the text in quotation marks; the assessment is up to whoever writes the CSC.

