Brock Algebra using k-values

BrockAlgebra with Difference Map for cos_xs + cos_ys.png

z = cos(x)+ cos(y)

Shown regularly and then under Brock Algebra(k₁)
Followed by a difference map

Brock Algebra - Sign preservation using k-values

A clarification from revisiting this notebook: the earlier version claimed distributivity for the rules below. That calculation counted one history term twice on one side. These are experimental tagged operations, and the displayed addition and multiplication do not form a ring. I have corrected the calculation and separated cyclic memory from a saturating flag.

What I wanted the extra coordinate to remember

Squaring forgets the sign of a real input. That was one of the questions behind my k-value experiments: could an extra coordinate remember something the ordinary numerical result forgets?

It can—but we have to say exactly what is being remembered. A sign, a count modulo n, an “ever happened” flag, and a complete operation history are different amounts of information. They should not share a definition just because their pictures look related.

A precise cyclic tag

For an integer n ≥ 2, write a tagged magnitude as (a, k), where a ≥ 0 and k belongs to ℤ/nℤ. Encode a positive input x as (x, 0) and a negative input x as (|x|, 1).

One multiplication rule is

(a, k) ⊗ₙ (b, ℓ) = (ab, k + ℓ mod n).

For n = 2, the projection π(a, k) = (−1)ᵏa recovers ordinary real multiplication. For example, (2, 1) ⊗₂ (3, 1) = (6, 0), which projects to +6. With n = 4, the result is (6, 2): the numerical sign is again positive, but the tag still distinguishes two negative factors from none. Parity gives a well-defined projection from a cyclic tag when n is even; it does not descend to ℤ/nℤ when n is odd.

The cyclic tag remembers a count modulo n. It does not remember the entire expression that produced the number.

The addition experiment does not distribute

The old addition rule was

(a, k) ⊕ₙ (b, ℓ) = (a + b, k + ℓ mod n).

Together with ⊗ₙ, this gives

A ⊗ₙ (B ⊕ₙ C) = (a(b + c), kₐ + kᵦ + k꜀ mod n),

while

(A ⊗ₙ B) ⊕ₙ (A ⊗ₙ C) = (ab + ac, 2kₐ + kᵦ + k꜀ mod n).

The magnitudes agree; the tags generally do not. Take n = 3, A = (1, 1), and B = C = (1, 0). The two sides are (2, 1) and (2, 2). That is a counterexample, not a distributive law.

Also, ⊕₂ is not ordinary signed addition under π: (1, 1) ⊕₂ (1, 0) = (2, 1), projecting to −2 instead of −1 + 1 = 0. Recovering ordinary multiplication does not automatically recover ordinary arithmetic.

This does not make the experiment useless. It tells me which algebraic promises I cannot make about it. If I want a ring-like structure, addition needs a different definition, with its laws checked from the start.

A flag is different from a cycle

A separate model can use a Boolean history flag h ∈ {0, 1}:

(a, h) ⊗sat (b, j) = (ab, max(h, j)).

Here the flag means “at least one marked factor occurred.” It stays set after two marked factors. This is a saturating flag, not arithmetic modulo one: modulo one has only the residue 0. The flag alone also cannot tell us the ordinary sign of the product. Keeping both sign parity and an “ever marked” flag requires two separate pieces of state.

A no-memory version simply discards the tag. It should be described as a projection, not as a modulo-zero operation.

What reversibility actually requires

With positive magnitudes and a known positive factor, cyclic tagged multiplication can be reversed by division of magnitudes and subtraction of tags. Multiplication by zero loses the other magnitude. Resetting the tag at zero discards still more information; it cannot be used as evidence that the operation is reversible.

A saturating flag also loses distinctions: one marked factor and several marked factors can leave the same flag. To reverse a general many-to-one computation, the extra state must distinguish the inputs within each output's preimage. That question is explored concretely in What a computation forgets.

How to read the pictures below

These are exploratory visualizations of chosen rules. A sign-preserving power, a cyclic count, and a Boolean flag can generate different patterns, so each rendering needs its recurrence and projection stated explicitly. The older gallery is retained as an exploration record; the pictures by themselves do not establish distributivity, invertibility, or a unique general “Brock Algebra.”

The useful next step is to rebuild a small comparison with the exact rule beside each plot: ordinary arithmetic, cyclic tagged multiplication, and a saturating flag. I am still interested in what extra coordinates reveal. Being precise about what each one remembers makes that question much more interesting.

Double-click to edit...

Previous
Previous

2D Tessellations & Tilings

Next
Next

A light history and intro to Brock Algebra