forall: Universally bind a variable in a formula

View source: R/core.R

forallR Documentation

Universally bind a variable in a formula

Description

Universally bind a variable in a formula.

Usage

forall(bound, body)

Arguments

bound

The variable expression bound by the quantifier.

body

A formula expression.

Details

Expressions are sorted syntactic trees. Normalization changes bound names only, not logical content. Substitution avoids capture. A theory context is a declaration. Integers beyond 2^53-1 must use canonical decimal strings in ordinal terms. Serialization accepts bounded finite JSON data and never evaluates code. Typed deserialization validates against the current catalogue where applicable.

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

Value

A universally quantified formula expression with an explicit bound variable.

Examples

forall(variable("x"), predicate("P", variable("x")))

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