evaluate_formula: Evaluate a first-order formula on the specified finite...

View source: R/finite.R

evaluate_formulaR Documentation

Evaluate a first-order formula on the specified finite structure only

Description

Evaluate a first-order formula on the specified finite structure only.

Usage

evaluate_formula(expr, structure, assignment = list(), max_steps = 100000L)

Arguments

expr

A typed expression built by the public syntax constructors.

structure

A finite_structure record. No claim that it satisfies ZF is made.

assignment

Named assignments of all free variables to members of the finite domain.

max_steps

A positive operation budget. Finite algorithms accept at most 10000000; exhaustion raises RESOURCE_LIMIT.

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 with ESTABLISHED or REFUTED and witness fields truth, assignment and domain.

Examples

evaluate_formula(forall(variable("x"), predicate("P", variable("x"))), 
    finite_structure(list("a", "b"), list(P = list(arity = 1, tuples = list(list("a"))))))

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