The scalar carrier¶
This page defines the carrier of the scalar profile and its arithmetic,
proves which algebraic laws hold on it and which hold only under
finiteness guards, and derives the transfer principle that justifies
generic answers with explicit guards. It also exhibits the model that makes
the profile consistent (the kernel's Theorem M-4).
The arithmetic specifies the behavior of directed infinities, complex infinity, and the indeterminate value through the operation tables below. The behavior checklist collects the special values and guarded rewrites that follow from these definitions.
The carrier¶
Definition X-1. The carrier is the disjoint union
\(D_\theta\) is the directed infinity in direction \(\theta\)
(\(D_1 = \infty\), \(D_{-1} = -\infty\)), \(C_\infty\) is
the complex infinity (ComplexInfinity), and \(I\) is indeterminate
(Indeterminate). An element is finite when it lies in \(\mathbb C\).
For \(z \in \mathbb C \setminus \{0\}\), \(\operatorname{ph}(z) = z / \lvert z\rvert\)
is its phase.
Addition and multiplication¶
Definition X-2 (addition). Addition is commutative and given by:
| \(a + b\) | \(b = w\) finite | \(b = D_\varphi\) | \(b = C_\infty\) | \(b = I\) |
|---|---|---|---|---|
| \(a = z\) finite | \(z + w\) | \(D_\varphi\) | \(C_\infty\) | \(I\) |
| \(a = D_\theta\) | \(D_\theta\) | \(D_\theta\) if \(\theta = \varphi\), else \(I\) | \(I\) | \(I\) |
| \(a = C_\infty\) | \(C_\infty\) | \(I\) | \(I\) | \(I\) |
| \(a = I\) | \(I\) | \(I\) | \(I\) | \(I\) |
Definition X-3 (multiplication). Multiplication is commutative and given by:
| \(a \cdot b\) | \(b = 0\) | \(b = w \ne 0\) finite | \(b = D_\varphi\) | \(b = C_\infty\) | \(b = I\) |
|---|---|---|---|---|---|
| \(a = 0\) | \(0\) | \(0\) | \(I\) | \(I\) | \(I\) |
| \(a = z \ne 0\) finite | \(0\) | \(zw\) | \(D_{\varphi \operatorname{ph}(z)}\) | \(C_\infty\) | \(I\) |
| \(a = D_\theta\) | \(I\) | \(D_{\theta \operatorname{ph}(w)}\) | \(D_{\theta\varphi}\) | \(C_\infty\) | \(I\) |
| \(a = C_\infty\) | \(I\) | \(C_\infty\) | \(C_\infty\) | \(C_\infty\) | \(I\) |
| \(a = I\) | \(I\) | \(I\) | \(I\) | \(I\) | \(I\) |
Definition X-4 (derived operations). Negation \(-x := (-1) \cdot x\), subtraction \(x - y := x + (-y)\), the inverse
and division \(x / y := x \cdot y^{-1}\). Integer powers, for \(n \in \mathbb Z\):
| \(x^n\) | \(n > 0\) | \(n = 0\) | \(n < 0\) |
|---|---|---|---|
| \(x = z \ne 0\) finite | \(z^n\) | \(1\) | \(z^n\) |
| \(x = 0\) | \(0\) | \(I\) | \(C_\infty\) |
| \(x = D_\theta\) | \(D_{\theta^n}\) | \(I\) | \(0\) |
| \(x = C_\infty\) | \(C_\infty\) | \(I\) | \(0\) |
| \(x = I\) | \(I\) | \(I\) | \(I\) |
For \(n \ge 1\), \(x^n\) equals the \(n\)-fold product \(x \cdots x\), and for \(n \le -1\) it equals \((x^{-1})^{-n}\), as one checks entry by entry.
Examples from the operation tables: \(1/0 = C_\infty\), \(0/0 = 0 \cdot C_\infty = I\), \(0 \cdot \infty = I\), \(\infty - \infty = I\), \(C_\infty + C_\infty = I\), \(C_\infty \cdot C_\infty = C_\infty\), \(\infty \cdot (-\infty) = -\infty\), \(1/\infty = 0\), \(0^0 = \infty^0 = I\), \(\infty + i = \infty\), \(i \cdot \infty = D_i\).
Both operations are commutative monoids¶
Lemma X-0 (multiset presentation). Let \(\Phi\) map finite multisets over a set \(S\) to \(S\), with \(\Phi(\{x\}) = x\) and \(\Phi(A \uplus B) = \Phi(\{\Phi(A), \Phi(B)\})\) for all finite multisets \(A, B\), empty ones included. Then \(a \oplus b := \Phi(\{a, b\})\) is associative and commutative, with identity \(\Phi(\emptyset)\).
Proof. Commutativity: \(\{a, b\} = \{b, a\}\). Identity: \(\Phi(\emptyset) \oplus a = \Phi(\{\Phi(\emptyset), \Phi(\{a\})\}) = \Phi(\emptyset \uplus \{a\}) = a\). Associativity: \((a \oplus b) \oplus c = \Phi(\{\Phi(\{a, b\}), \Phi(\{c\})\}) = \Phi(\{a, b, c\})\), and symmetrically for \(a \oplus (b \oplus c)\). \(\square\)
Theorem X-1. \((\hat S, +, 0)\) is a commutative monoid.
Proof. Define \(\Phi_+(A)\) for a finite multiset \(A\): if \(I \in A\), then \(I\). Otherwise let \(A_\infty\) be the non-finite elements of \(A\). If \(A_\infty = \emptyset\), the complex sum of \(A\) (so \(\Phi_+(\emptyset) = 0\)). If \(A_\infty\) consists of directed infinities all with the same direction \(\theta\), then \(D_\theta\). If \(A_\infty = \{C_\infty\}\) exactly, then \(C_\infty\). Otherwise \(I\). On two-element multisets, \(\Phi_+\) is the table of Definition X-2. For the homomorphism property, compare the classes of \(\Phi_+(A)\) and \(\Phi_+(B)\):
- If either is \(I\): that side contains \(I\), or two incompatible infinities; so does \(A \uplus B\), giving \(I\); and \(I + x = I\).
- If \(\Phi_+(A) = z\) is finite: \(A\) is all finite, so \(A \uplus B\) has the infinities of \(B\) and nothing else non-finite; its value is \(z + \Phi_+(B)\) when \(B\) is all finite and \(\Phi_+(B)\) otherwise, which is \(z + \Phi_+(B)\) by the table.
- \(D_\theta\) and \(D_\varphi\): the union's infinities all have direction \(\theta\) exactly when \(\theta = \varphi\); the table agrees.
- \(D_\theta\) and \(C_\infty\), or \(C_\infty\) and \(C_\infty\): the union has incompatible infinities, giving \(I\); so does the table.
Lemma X-0 concludes. \(\square\)
Theorem X-2. \((\hat S, \cdot, 1)\) is a commutative monoid.
Proof. Define \(\Phi_\times(A)\): if \(I \in A\), then \(I\). Else, if \(0 \in A\) and \(A\) has a non-finite element, then \(I\). Else, if \(0 \in A\), then \(0\). Else, if \(C_\infty \in A\), then \(C_\infty\). Else, if \(A\) contains directed infinities \(D_{\theta_1}, \dots, D_{\theta_m}\) (\(m \ge 1\)) and finite elements \(z_1, \dots, z_r\) (all nonzero), then \(D_\psi\) with \(\psi = \prod_i \theta_i \prod_j \operatorname{ph}(z_j)\). Else the complex product (so \(\Phi_\times(\emptyset) = 1\)). On two-element multisets this is the table of Definition X-3. Homomorphism, by the classes of \(\Phi_\times(A)\) and \(\Phi_\times(B)\):
- \(I\): the side contains \(I\), or \(0\) together with a non-finite element; so does the union.
- \(0\) (so \(A\) is all finite and contains \(0\)): the union contains \(0\); it gives \(I\) if \(B\) has a non-finite element and \(0\) otherwise, as do \(0 \cdot D_\varphi = 0 \cdot C_\infty = I\) and \(0 \cdot w = 0\).
- \(z \ne 0\) finite (\(A\) all finite and nonzero): the union has \(B\)'s non-finite elements and zeros. If \(\Phi_\times(B) = D_\psi\), the union's direction is \(\psi \operatorname{ph}(z)\), since the phase is multiplicative; the other cases are immediate.
- \(D_\theta\) and \(D_\varphi\): directions multiply. \(D_\theta\) and \(C_\infty\), or \(C_\infty\) and \(C_\infty\): the union contains \(C_\infty\) and no \(0\), giving \(C_\infty\).
Lemma X-0 concludes. \(\square\)
These two theorems are the proof obligation that the scalar profile must
discharge before declaring \(+\) and \(\cdot\) ACU with units \(0\) and \(1\)
(the kernel's Definition T-6); in the profile it is a case analysis over the four
classes.
Finiteness¶
Theorem X-3 (finiteness of results). For all \(x, y \in \hat S\):
- \(x + y\) is finite if and only if \(x\) and \(y\) are finite;
- \(x \cdot y\) is finite if and only if \(x\) and \(y\) are finite;
- \(x^{-1}\) is finite if and only if \(x \notin \{0, I\}\);
- \(-x\) is finite if and only if \(x\) is.
Proof. Read off the tables: every entry with a non-finite operand is non-finite (in particular \(0 \cdot D_\varphi = I\)), and the entries for finite operands are complex numbers. For the inverse, \(0^{-1} = C_\infty\), \(I^{-1} = I\), and the inverse of an infinity is \(0\). \(\square\)
Laws that fail, and their guarded forms¶
Theorem X-4 (failures). Each of the following fails in \(\hat S\):
| Law | Counterexample |
|---|---|
| distributivity \(a(b + d) = ab + ad\) | \(C_\infty (1 + 1) = C_\infty\), but \(C_\infty + C_\infty = I\); also \(D_1 (1 + i) = D_{(1+i)/\sqrt 2}\), but \(D_1 + D_i = I\) |
| annihilation \(0 \cdot x = 0\) | \(0 \cdot D_1 = I\) |
| additive inverse \(x - x = 0\) | \(D_1 + D_{-1} = I\) |
| additive cancellation | \(D_1 + 1 = D_1 + 2\), but \(1 \ne 2\) |
| \(x / x = 1\) for \(x \ne 0\) | \(D_1 \cdot D_1^{-1} = D_1 \cdot 0 = I\) |
| \(x^0 = 1\) | \(0^0 = I\) |
Hence none of these may be part of conversion (the kernel's Definition C-1) or an unguarded axiom.
Theorem X-5 (guarded laws). For all \(a, b, d, x \in \hat S\):
- if \(a\) is finite, \(a(b + d) = ab + ad\);
- if \(x\) is finite, \(0 \cdot x = 0\) and \(x - x = 0\);
- if \(x\) is finite and \(x \ne 0\), \(x \cdot x^{-1} = 1\) and \(x^0 = 1\);
- if \(x\) is finite and nonzero, \(x^m x^n = x^{m+n}\) for all integers \(m, n\); if \(x\) is finite, this holds for all \(m, n \ge 1\).
Proof. (1) If \(a = 0\): when \(b\) and \(d\) are finite both sides are \(0\); otherwise \(b + d\) is non-finite (Theorem X-3), so the left side is \(I\), and one of \(0 \cdot b\), \(0 \cdot d\) is \(I\), so the right side is \(I\). If \(a = z \ne 0\): multiplication by \(z\) maps finite numbers linearly, maps \(D_\varphi\) to \(D_{\varphi \operatorname{ph}(z)}\) (a rotation, which preserves equality of directions), and fixes \(C_\infty\) and \(I\); so it maps each case of \(\Phi_+\) to the same case, and \(z \cdot \Phi_+(\{b, d\}) = \Phi_+(\{zb, zd\})\). (2), (3): finite operands make every intermediate result finite (Theorem X-3), and the identities hold in the field \(\mathbb C\). (4) The same argument. \(\square\)
The transfer principle¶
Definition X-5 (rational expressions). A rational expression over variables \(x_1, \dots, x_n\) is built from the variables, rational literals, \(+\), \(\cdot\), \(-\), integer powers, and \((\cdot)^{-1}\). Its denominators are the subexpressions to which \((\cdot)^{-1}\) or a nonpositive power is applied (a zeroth power counts, because \(0^0 = I\)). Each rational expression \(e\) determines a rational function \(\bar e \in \mathbb Q(x_1, \dots, x_n)\), where it is defined.
Theorem X-6 (transfer principle). Let \(e_1, e_2\) be rational expressions with \(\bar e_1 = \bar e_2\) in \(\mathbb Q(\bar x)\). For every assignment of finite values to \(\bar x\) under which every denominator of \(e_1\) and of \(e_2\) evaluates to a nonzero finite number, \(e_1\) and \(e_2\) evaluate to the same element of \(\hat S\), and it is finite.
Proof. Induction on the expression: with finite variables and nonzero finite denominators, every subexpression evaluates to a finite number (Theorem X-3), and the evaluation is the evaluation in the field \(\mathbb C\), which agrees with the value of the rational function wherever the expression's denominators are nonzero. Two rational expressions representing the same element of \(\mathbb Q(\bar x)\) have equal values at every point where both are evaluated this way. \(\square\)
The theorem supplies the mathematical basis for generic
simplification: (x^2 - 1)/(x - 1) and x + 1 represent the same rational
function, so they agree wherever \(x\) is finite and \(x - 1 \ne 0\). The
guards it produces, finiteness of the variables and nonzero denominators,
are exactly the generic guards of the next definition.
Corollary X-7 (no zero divisors among finite values). If \(x\) and \(y\) are finite and \(xy = 0\), then \(x = 0\) or \(y = 0\). (\(\mathbb C\) is a field.)
Generic answers¶
Definition X-6 (generic guards). For an input expression \(e\), a guard is generic when it is a conjunction of conditions \(\mathrm{finite}(x)\) for variables \(x\) of \(e\) and \(q \ne 0\) for subexpressions \(q\) that are denominators of \(e\) or of the candidate answer.
A generic-mode answer is a checked conditional result \(\Gamma \vdash G \Rightarrow e = e'\) with \(G\) generic. By Theorem M-1 it is valid: in every model, under every valuation that satisfies the context and \(G\), \(e\) and \(e'\) have the same value. The CAS shows \(e'\) and keeps \(G\) available for display. A strict-mode answer instead requires \(\Gamma \vdash G\).
The model of the profile¶
Theorem X-8 (the profile is consistent). \(\hat S\) with the operations above, \(\mathrm{finite}\) interpreted as membership in \(\mathbb C\), and each rational literal interpreted as the corresponding element of \(\mathbb Q \subset \mathbb C\), satisfies every equation of Definitions X-2 to X-4, the ACU laws for \(+\) and \(\cdot\) (Theorems X-1 and X-2), the guarded laws of Theorem X-5, and the literal laws of the exact rational kind (the kernel's Definition C-5) for every interpretation of its domain \(D\) and its order in which \(D\) is membership in \(\mathbb R\) ("finite and real") and \(<\) and \(\le\) restrict on \(\mathbb R\) to the usual order; hence it satisfies the literal scheme (the kernel's Theorem C-11). Any set of profile axioms true in this structure is therefore consistent, relative to ZFC.
Proof. \(\hat S\) is a set and the operations are total functions on it;
the cited theorems establish the laws. Every literal law guards each
variable by \(D\), so it constrains \(<\) and \(\le\) only on \(\mathbb R\). The
finite reals \(\mathbb R \subset \hat S\) with the field operations and the
usual order are an ordered field, which is what the literal laws state;
if POW is bound, with \(E\) the integers, the power laws hold by the table
of Definition X-4 on finite reals. The rational literals denote
\(\mathbb Q \subset \mathbb R\), the embedding of the kernel's Theorem C-11. The kernel's Theorem M-1
applied to this model gives consistency. \(\square\)
The order. Theorem X-8 holds for the order the profile adopts, the extended real line (order and domains), because every literal law guards its variables by \(D\), membership in \(\mathbb R\), on which that order is the usual one.