Scalar mathematical theory

Theory

These pages define the scalar profile and prove what the engines and the CAS rely on: the carrier and its arithmetic, the axioms that describe it (true in, and categorical for, the carrier), the order and the domain predicates, powers and roots, the exponential and logarithm, the trigonometric and hyperbolic functions and their inverses with their branch cuts and their values at infinity, polynomials over Scalar, and the numeric semantics behind the numeric filter, and the model in HOL with its bridges. The kernel's theory is cited by result number ("the kernel's Theorem M-5", on the kernel's theory pages).

The labels are those of the kernel's theory: Definition, Theorem, Lemma, Proposition, Theorem (cited), Requirement, and Algorithm. Results are numbered per page, with one counter for definitions and one for the others.

Page Letter Contents
The carrier X \(\hat S\), its addition and multiplication, the laws that hold and fail, the transfer principle, generic answers, the model
Axioms A the profile's declarations and axioms, their model, categoricity, and the in-kernel proof of the ACU laws
Order and domains O the order of the extended reals, real, integer, rational, the literal laws, discreteness
Powers and roots W integer and general powers, the principal square root, real roots surd
Exponential and logarithm E the two analytic primitives: axioms, characterization, values at infinity, identities and their domains, unwinding numbers
Elementary functions F the trigonometric and hyperbolic functions and their inverses: formulas, branch cuts and their closure, values at infinity, guards, real-domain laws
Polynomials over Scalar P the polynomial theory over Scalar: evaluation, its axioms and model, reification (Definitions P-1 and P-2 are on the kernel's pages)
Numeric semantics N ball evaluation of closed expressions, cut-aware; the numeric filter
The HOL model and bridges H Isabelle's conventions; the carrier built inside HOL over judgment_mathlib; the bridge theorems and their exact guards; the carrier in Isabelle's classes; transfer of imported theorems
References

What is trusted

The profile's axioms are admitted axioms: every result that uses them shows them in its label. Theorem A-1 shows they are consistent (true in \(\hat S\)), and Theorem A-2 that \(\hat S\) is their only standard model, so "true in \(\hat S\)" is exactly what the axioms commit to. Every function other than the primitives exp and log is a conservative definition, which adds no axiom (the kernel's Theorem M-5). The polynomial theory over Scalar is a separate theory with its own axioms (Definition P-4: the ring laws of the new type Poly and the evaluation equations), consistent by Theorem P-3.

Specified behavior

The definitions fix the profile's special values, branch conventions, and guarded rewrites. The behavior checklist collects these choices and identifies their mathematical sources and validation scope.

judgment v1.0.0 for Mojo 1.2 · Apache License 2.0 with LLVM Exceptions · Source on GitHub