boolactual
Boolactual is a theoretical construct in programming languages that augments the boolean type with provenance information about how its value was computed. In languages that implement boolactual, a boolean value is modeled as a tagged pair consisting of the actual boolean value (true or false) and a provenance tag describing its origin. Provenance can indicate literals, comparison results, outcomes of logical or arithmetic operations, or type conversions. The primary aim is to provide visibility into the derivation of truth values for debugging, verification, and data provenance.
Semantics: Operators on boolactual values propagate provenance tags according to defined rules. Negation inverts the boolean
Usage: Boolactual supports static analysis and debugging by enabling checks such as whether a boolean originated
Limitations: The approach adds runtime or compile-time overhead and increases type complexity. Adoption requires language or
See also: boolean type, data provenance, refinement types, dependent types.