PropertyTable4 model
Requirements.Examples.Elementary.LogicalBlocks.PropertyTable4
· source
The four-valued (ETL) tables of and4, or4 and not4 asserted entry by entry, and the laws that fail
Extends Modelica.Icons.Example
The four-valued logic of Types.Property,
asserted: the two sources run through all 16 pairs of values in 16 s and the blocks
PropertyAnd,
PropertyOr and
PropertyNot are compared with the
tables of the extended temporal logic (ETL) of EDF's ReqSysPro / CRML at every instant; the functions
and4,
or4 and
not4 are checked against every table entry,
and the laws that hold (commutativity, associativity, involution, De Morgan) and the ones that fail are
asserted with counterexamples. An unconnected PropertyAnd or PropertyOr (nu = 0) gives
Undefined, the neutral element.
The laws that fail
The Modelica 2023 paper on CRML states that the four-valued algebra satisfies all Boolean laws except the complements law. Enumerating all 64 triples over the four values from the paper's own three generating rules (Undefined is neutral; an Undecided operand decides only against Violated for and and Satisfied for or; negation fixes Undecided and Undefined) shows more:
| Law | Result | Counterexample |
|---|---|---|
| De Morgan, involution, commutativity, associativity, idempotence | hold | — |
Absorption a and (a or b) = a | fails, 12 of 64 triples | a = Undefined, b = Satisfied: Undefined or Satisfied = Satisfied,
Undefined and Satisfied = Satisfied ≠ Undefined |
Distributivity a and (b or c) = (a and b) or (a and c) | fails, 6 of 64 triples | a = Satisfied, b = Violated, c = Undefined: left side Satisfied and Violated = Violated,
right side Violated or Satisfied = Satisfied |
Complements a and not a = Violated | fails (acknowledged by the paper) | Undecided, Undefined |
Every absorption and distributivity failure involves Undefined: they are caused by the neutral-element design itself. The structure is therefore not a Boolean algebra and not a lattice (Undefined is the top of the and-order and the bottom of the or-order). Absorption and distributivity are exactly the rewrites an expression simplifier applies, so no Boolean simplification may be applied to an expression over Property values: a diagram of Property blocks is evaluated as drawn.
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Parameters
| Name | Type | Description |
|---|---|---|
V constant | Property | Violated |
U constant | Property | Undecided |
S constant | Property | Satisfied |
N constant | Property | Undefined: not applicable, the neutral element |
values[…] constant | Property | The four property values in their Integer order |
andTable[…] constant | Property | Expected and4(a, b), row a, column b |
orTable[…] constant | Property | Expected or4(a, b), row a, column b |
notTable[…] constant | Property | Expected not4(a) |
Components and variables
| Name | Type | Description |
|---|---|---|
a | Requirements.Sources.PropertyTable | First operand, changing every 4 s |
b | Requirements.Sources.PropertyTable | Second operand, changing every second |
and1 | Requirements.LogicalBlocks.PropertyAnd | and of a and b, compared with andTable |
or1 | Requirements.LogicalBlocks.PropertyOr | or of a and b, compared with orTable |
not1 | Requirements.LogicalBlocks.PropertyNot | not of a, compared with notTable |
andEmpty | Requirements.LogicalBlocks.PropertyAnd | nu = 0: the neutral element, Undefined |
orEmpty | Requirements.LogicalBlocks.PropertyOr | nu = 0: the neutral element, Undefined |
nAbsorption | Integer | Triples (a,b,c) at which a and (a or b) = a fails: 12 of 64 |
nDistributivity | Integer | Triples (a,b,c) at which a and (b or c) = (a and b) or (a and c) fails: 6 of 64 |