constant: Declare a named term, without asserting that it has an...

View source: R/core.R

constantR Documentation

Declare a named term, without asserting that it has an interpretation

Description

Declare a named term, without asserting that it has an interpretation.

Usage

constant(name, sort = "set")

Arguments

name

A mathematical identifier. Formula identifiers use ASCII letters, digits, underscores and dots, starting with a letter or underscore.

sort

One of set, ordinal, cardinal, class, real or natural. The finite evaluator accepts only set-sorted terms.

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 typed constant expression with the supplied name and sort.

Examples

constant("a")

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