and4All function

Requirements.LogicalFunctions.and4All  · source

Icon of and4All

4-valued logic 'and' over a Property vector (the empty vector gives Undefined, the neutral element)

Extends Requirements.Interfaces.PropertyFunction

Syntax

result = and4All(p);

Description

The four-valued and4 folded over the elements of Property vector p, seeded with Undefined, the neutral element: the result is Violated if at least one element is Violated; else Undecided if at least one element is Undecided; else Satisfied if at least one element is Satisfied; else Undefined (every element Undefined, or the empty vector). Elements that are Undefined (not applicable: the component's requirement was outside its scope, or the component is absent) do not affect the result, which is what a requirement quantified over a set of components needs. Supersedes forall3.

Revisions

DateDescription
Sept. 15, 2026Added with the fourth value Undefined (H. Tummescheit, Model Based Innovation LLC)

Inputs

NameTypeDescription
p[…] inputPropertyProperty vector

Outputs

NameTypeDescription
result outputProperty= p[1] and4 p[2] and4 ... and4 p[size(p,1)]; Undefined for the empty vector