Scalar mathematical theory

Axioms

The scalar profile is a theory of the kernel: declarations and axioms that describe the carrier \(\hat S\) of the carrier page. This page lists them, shows that \(\hat S\) satisfies them (so they are consistent), that \(\hat S\) is their only standard model up to isomorphism (so they say exactly what is true in \(\hat S\)), and that the ACU laws of addition and multiplication are theorems of them, checked by the kernel.

Declarations

In this order (the order matters to the kernel: a declaration may cite only earlier ones, K1.3):

Declaration Type Role
Scalar type constructor, arity 0 the carrier
zero, one Scalar bound to the literal kind's ZERO, ONE
plus, times Scalar → Scalar → Scalar ACU (Theorem A-4), bound to ADD, MUL
neg, inv Scalar → Scalar bound to NEG, INV
pow Scalar → Scalar → Scalar bound to POW
finite, real Scalar → Prop real is the literal kind's domain
lt, le Scalar → Scalar → Prop bound to LT, LE
indet, cinf Scalar the indeterminate value \(I\) and complex infinity \(C_\infty\)
dinf Scalar → Scalar dinf(z) is the directed infinity in direction \(z\)
imag Scalar the imaginary unit
exp, log Scalar → Scalar the analytic primitives
axioms G1–G7 below, with the definitions they mention interleaved: nat0 and integer before G1, re, im, conj, abs2 after G3, pi before G7 (axiom declarations)
definitions rational, ext, positive, sqrt, sin, … (order, powers, exp-log, elementary)
theorems the ACU laws (Theorem A-4), the literal laws (order)
AcuOperator plus with unit zero, times with unit one
LiteralKind EXACT_RATIONAL on Scalar, domain real, exponent predicate integer

pow is a constant with axioms, not a definition, because a constant bound to a literal operation may not be a transparent definition (C1.4).

The axioms

Written with \(+\), \(\cdot\), \(-\), \({}^{-1}\), \(<\), \(\le\) for the constants above, \(0\), \(1\), \(i\) for zero, one, imag, and \(I\), \(C_\infty\), \(D(z)\) for indet, cinf, dinf(z). Each axiom is a closed statement; "for finite \(x\)" abbreviates the guard \(\mathrm{finite}(x) \to\).

G1 (classification).

  • Every element is finite, \(I\), \(C_\infty\), or \(D(z)\) for some finite \(z \ne 0\).
  • \(I\) and \(C_\infty\) are not finite and differ; for finite \(z \ne 0\), \(D(z)\) is not finite and differs from \(I\) and \(C_\infty\).
  • For finite nonzero \(z, w\): \(D(z) = D(w)\) exactly when \(z = c\,w\) for some real \(c\) with \(0 < c\).
  • \(D(x) = I\) when \(x\) is not a finite nonzero element.

G2 (the finite elements form a field). \(0\) and \(1\) are finite and differ; sums, products, and negatives of finite elements are finite; on finite elements, addition and multiplication are associative and commutative with units \(0\) and \(1\), \(x + (-x) = 0\), and multiplication distributes over addition; for finite \(x \ne 0\), \(x^{-1}\) is finite and \(x \cdot x^{-1} = 1\).

G3 (complex structure). Real elements are finite; \(0\) and \(1\) are real; sums, products, and negatives of reals, and inverses of nonzero reals, are real; \(i\) is finite, not real, and \(i \cdot i = -1\); every finite \(z\) is \(a + i\,b\) for some reals \(a\), \(b\).

G4 (the reals are a complete ordered field). On reals, \(<\) is irreflexive, transitive, and total (\(x < y\) or \(x = y\) or \(y < x\)), compatible with addition (\(x < y \to x + w < y + w\)) and with multiplication by positives (\(0 < x \to 0 < y \to 0 < x \cdot y\)), with \(0 < 1\); \(x \le y\) exactly when \(x < y\) or \(x = y\), for reals. Every predicate \(P\) that holds of some element, holds only of reals, and has a real upper bound has a least real upper bound:

\[ \forall P.\; (\exists x.\, P\,x) \to (\forall x.\, P\,x \to \mathrm{real}\,x) \to (\exists b.\, \mathrm{real}\,b \land \forall x.\, P\,x \to x \le b) \to \exists s.\, \mathrm{real}\,s \land (\forall x.\, P\,x \to x \le s) \land (\forall b.\, \mathrm{real}\,b \to (\forall x.\, P\,x \to x \le b) \to s \le b). \]

G5 (the order of the extended reals). Let \(\mathrm{ext}(x)\) be \(\mathrm{real}(x) \lor x = D(1) \lor x = D(-1)\). If \(x < y\) then \(\mathrm{ext}(x)\) and \(\mathrm{ext}(y)\); for real \(x\), \(D(-1) < x < D(1)\); \(D(-1) < D(1)\); \(<\) is irreflexive and transitive on all elements; and \(x \le y\) exactly when \(x < y\), or \(x = y\) and \(\mathrm{ext}(x)\).

The transitivity clause is \(\forall x\,y\,z.\; x < y \to y < z \to x < z\). Together with irreflexivity and the stated comparisons, it excludes reverse comparisons at infinity.

G6 (the tables). The entries of Definitions X-2, X-3, and X-4 with a non-finite operand, written with \(D(\cdot)\): for example \(z + D(w) = D(w)\) for finite \(z\) and finite \(w \ne 0\); \(D(z) + D(w) = D(z)\) when \(D(z) = D(w)\), and \(I\) otherwise; \(z \cdot D(w) = D(z \cdot w)\) for finite nonzero \(z\), \(w\); \(0 \cdot D(w) = 0 \cdot C_\infty = I\); \(0^{-1} = C_\infty\); \(D(z)^{-1} = C_\infty^{-1} = 0\); every operation with an operand \(I\) gives \(I\); \(-x = (-1) \cdot x\) for every \(x\); and the integer-power table of Definition X-4, which we call G6a; and the general power of powers and roots (Definitions W-1 and W-1a), G6b, declared next to G7, the axiom that gives \(\exp\) and \(\log\) their meaning.

G7 (the exponential and the logarithm). For finite \(z\), \(w\): \(\exp(z + w) = \exp(z) \cdot \exp(w)\); \(\exp(z)\) is finite and nonzero; and, writing \(\lvert z\rvert^2 = \mathrm{re}(z)^2 + \mathrm{im}(z)^2\), if \(\lvert z\rvert^2 \le 1\) then \(\lvert \exp(z) - 1 - z\rvert^2 \le \lvert z\rvert^4\). For finite \(z \ne 0\): \(\log(z)\) is finite, \(\exp(\log z) = z\), and \(-\pi < \mathrm{im}(\log z) \le \pi\). The values at non-finite arguments are the tables of exponential and logarithm.

re, im, and pi are definitions that come before G7 in the theory (by choice, from G3 and from the characterizing property of \(\pi\); exp-log), so the axiom can mention them.

Consistency

Theorem A-1 (the axioms hold in \(\hat S\)). Interpreting Scalar as \(\hat S\), the constants as the operations and elements of the carrier page, finite and real as membership in \(\mathbb C\) and \(\mathbb R\), \(<\) as the order of the extended reals, dinf as \(z \mapsto D_{z/\lvert z\rvert}\) (and \(I\) off the finite nonzero elements), exp and log as the complex exponential and principal logarithm extended by the tables, satisfies G1 to G7. Hence the profile is consistent relative to ZFC (the kernel's Theorem M-4).

Proof. G1: Definition X-1, with \(D(z) = D(w)\) iff \(z/\lvert z\rvert = w/\lvert w\rvert\) iff \(z\) is a positive real multiple of \(w\). G2, G3: \(\mathbb C\) is a field containing \(\mathbb R\), with \(i^2 = -1\). G4: \(\mathbb R\) is a complete ordered field. G5: the extended real line. G6: Definitions X-2 to X-4. G7: the exponential is a homomorphism from \((\mathbb C, +)\) to \((\mathbb C^*, \cdot)\), and \(\lvert e^z - 1 - z\rvert \le \sum_{k \ge 2} \lvert z\rvert^k / k! \le \lvert z\rvert^2 (e - 2) \le \lvert z\rvert^2\) for \(\lvert z\rvert \le 1\); the principal logarithm inverts it with imaginary part in \((-\pi, \pi]\); the tables are those of the exp-log page. \(\square\)

Categoricity

Theorem A-2 (the axioms determine \(\hat S\)). In the kernel's standard semantics (its Definition M-2, where predicates range over all subsets), any two models of G1 to G7 are isomorphic.

Proof. (1) The reals of each model form a complete ordered field (G4); any two complete ordered fields are isomorphic, by the unique order-preserving field isomorphism [Spivak 2008, ch. 30]. Completeness here quantifies over all predicates, which is why the standard semantics, not a Henkin semantics, is needed. (2) By G2 and G3, the finite elements are a field generated by the reals and \(i\) with \(i^2 = -1\), so the isomorphism of reals extends uniquely to the finite elements (each \(a + ib\) to \(a' + i'b'\); uniqueness of the decomposition follows from \(i\) not being real). The comparisons involving real infinities are fixed by G5: its required comparisons, transitivity, and irreflexivity exclude every reverse comparison. (3) By G1, the non-finite elements are \(I\), \(C_\infty\), and the \(D(z)\), with \(D(z) = D(w)\) exactly for positive multiples, so the map extends to them, \(D(z) \mapsto D'(\varphi(z))\), bijectively. (4) The operations are determined by G2 on finite elements and by G6 elsewhere; the order by G4 and G5. (5) The exponential is determined on finite elements by G7: a function \(f\) with \(f(z + w) = f(z) f(w)\) and \(\lvert f(z) - 1 - z\rvert \le \lvert z\rvert^2\) near \(0\) is differentiable at \(0\) with \(f'(0) = 1\), hence everywhere with \(f' = f\) and \(f(0) = 1\), so it is the exponential. The logarithm is then the unique inverse with imaginary part in \((-\pi, \pi]\), and \(\pi\) the unique number with the property that defines it. The tables fix the non-finite values. \(\square\)

Corollary A-3 (the admission criterion). A sentence of the profile's language holds in every standard model of the axioms exactly when it holds in \(\hat S\). "True in \(\hat S\)" is therefore exactly what the profile commits to. A statement is used only once it is proved, in the kernel or from judgment_mathlib's theorems, imported from Isabelle2025-2, through the bridges, never on numeric evidence; the numeric filter refutes false candidates before anyone tries.

The ACU laws are theorems

Theorem A-4. The ACU laws of plus and times (associativity, commutativity, and the units zero and one), stated in the concrete form the kernel compares (K1.3), are derivable from G1, G2, G3 and G6.

Proof. By case analysis on the class of each variable (G1: finite, \(I\), \(C_\infty\), or \(D(z)\)), closing each case with the table equations of G6 and, when all variables are finite, with G2. Directed infinities are compared through G1's third clause: \(D(z) = D(w)\) exactly for positive multiples, so, for instance, \((D(z) + D(w)) + D(v)\) and \(D(z) + (D(w) + D(v))\) both reduce to \(D(z)\) when the three directions are equal, and to \(I\) otherwise. The cases mirror the proofs of Theorems X-1 and X-2 (the multiset presentation), case by case: associativity of addition has \(4^3 = 64\) cases before symmetry, multiplication more, because \(0\) is a distinguished finite element. \(\square\)

The proof is generated as a recipe by the profile builder and checked by the kernel; the resulting Proven theorems are what the AcuOperator declarations cite. The ACU laws are kernel-checked theorems derived from the profile axioms.

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