PropertyTable4 model

Requirements.Examples.Elementary.LogicalBlocks.PropertyTable4  · source

Icon of PropertyTable4

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:

LawResultCounterexample
De Morgan, involution, commutativity, associativity, idempotencehold—
Absorption a and (a or b) = afails, 12 of 64 triplesa = 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 triplesa = Satisfied, b = Violated, c = Undefined: left side Satisfied and Violated = Violated, right side Violated or Satisfied = Satisfied
Complements a and not a = Violatedfails (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

NameTypeDescription
V constantPropertyViolated
U constantPropertyUndecided
S constantPropertySatisfied
N constantPropertyUndefined: not applicable, the neutral element
values[…] constantPropertyThe four property values in their Integer order
andTable[…] constantPropertyExpected and4(a, b), row a, column b
orTable[…] constantPropertyExpected or4(a, b), row a, column b
notTable[…] constantPropertyExpected not4(a)

Components and variables

NameTypeDescription
aRequirements.Sources.PropertyTableFirst operand, changing every 4 s
bRequirements.Sources.PropertyTableSecond operand, changing every second
and1Requirements.LogicalBlocks.PropertyAndand of a and b, compared with andTable
or1Requirements.LogicalBlocks.PropertyOror of a and b, compared with orTable
not1Requirements.LogicalBlocks.PropertyNotnot of a, compared with notTable
andEmptyRequirements.LogicalBlocks.PropertyAndnu = 0: the neutral element, Undefined
orEmptyRequirements.LogicalBlocks.PropertyOrnu = 0: the neutral element, Undefined
nAbsorptionIntegerTriples (a,b,c) at which a and (a or b) = a fails: 12 of 64
nDistributivityIntegerTriples (a,b,c) at which a and (b or c) = (a and b) or (a and c) fails: 6 of 64