boolean_truth: Evaluate a propositional formula in the finite Boolean...

View source: R/finite.R

boolean_truthR Documentation

Evaluate a propositional formula in the finite Boolean algebra P(atoms)

Description

Evaluate a propositional formula in the finite Boolean algebra P(atoms).

Usage

boolean_truth(expr, atoms, valuation)

Arguments

expr

A typed expression built by the public syntax constructors.

atoms

Finite labels for atoms of the Boolean algebra.

valuation

Named subsets of atoms interpreting zero-arity propositions.

Details

All conclusions are restricted to the supplied finite data. They do not witness infinite cardinals, genericity over a full infinite model or infinite determinacy. Invalid domains, missing interpretations and exhausted budgets raise classified errors. Tree depth is at most 100. Relation analysis uses at most 100 domain labels. Exhaustive partition queries are intentionally restricted.

Input errors inherit from largecardinals_error and expose a code. No function publishes data or accesses the network.

Value

A FINITE_EXACT query_result whose witness is the subset of Boolean atoms on which the propositional formula holds.

Examples

boolean_truth(implication(predicate("P"), predicate("Q")), c("a", 
    "b"), list(P = "a", Q = c("a", "b")))

largecardinals documentation built on Nov. 25, 2026, 5:09 p.m.