Skip to content

Formal Derivation

Context: An algebraic derivation showing how the system’s state space supports the high-level intuition Color = f(Context, Intent).

The Axiomatic Color system posits that a resolved color is a pure function of two independent variables: Context (the environment) and Intent (the semantic role).

Color=f(Context,Intent)\text{Color} = f(\text{Context}, \text{Intent})

This document derives this property from the definitions in The Algebra of Color Design.

Let the system state S\mathcal{S} be defined as the Configuration Space of two subspaces: Context (Γ\Gamma) and Intent (ι\iota).

S=Γ×ι\mathcal{S} = \Gamma \times \iota

  1. Context Space (Γ\Gamma): The environmental variables. Γ=Hue×Chroma×Polarity\Gamma = \text{Hue} \times \text{Chroma} \times \text{Polarity} γ∈Γ=⟨H,C,ρ⟩\gamma \in \Gamma = \langle H, C, \rho \rangle

  2. Intent Space (ι\iota): The semantic variables. ι=Tokens\iota = \text{Tokens} i∈ι=⟨Lsrc⟩i \in \iota = \langle L_{src} \rangle

Thus, any state σ∈S\sigma \in \mathcal{S} is an ordered pair: σ=(γ,i)\sigma = (\gamma, i)

The CSS Engine’s resolution function Φ\Phi maps the state S\mathcal{S} to a color space (OKLCH).

Φ:(Γ×ι)→Color\Phi: (\Gamma \times \iota) \rightarrow \text{Color}

Φ(⟨H,C,ρ⟩,⟨Lsrc⟩)=oklch(eval(Lsrc,ρ),C,H)\Phi(\langle H, C, \rho \rangle, \langle L_{src} \rangle) = \text{oklch}(\text{eval}(L_{src}, \rho), C, H)

Observation: The function Φ\Phi accepts γ\gamma and ii as distinct arguments. The evaluation of lightness eval(Lsrc,ρ)\text{eval}(L_{src}, \rho) is the only interaction term, representing the “Late Binding” of Intent to Context.

4. Derivation of Independence (Orthogonality)

Section titled “4. Derivation of Independence (Orthogonality)”

We define the system operators as transformations on S\mathcal{S}. To prove independence, we must show that Modifiers (MM) and Intents (II) operate on disjoint subspaces.

Let MM be a modifier function acting on Γ\Gamma, and II be an intent function acting on ι\iota.

M(γ,i)=(m(γ),i)M(\gamma, i) = (m(\gamma), i) I(γ,i)=(γ,k(i))I(\gamma, i) = (\gamma, k(i))

Where m:Γ→Γm: \Gamma \rightarrow \Gamma and k:ι→ιk: \iota \rightarrow \iota are the specific transformations (e.g., “Set Hue to Brand”, “Set Token to Subtle”).

We examine the composition of these operators in both orders for Neutral Intents.

Case 1: Intent then Modifier (M∘IM \circ I) M(I(γ,i))=M(γ,k(i))=(m(γ),k(i))M(I(\gamma, i)) = M(\gamma, k(i)) = (m(\gamma), k(i))

Case 2: Modifier then Intent (I∘MI \circ M) I(M(γ,i))=I(m(γ),i)=(m(γ),k(i))I(M(\gamma, i)) = I(m(\gamma), i) = (m(\gamma), k(i))

Result: M∘I≡I∘MM \circ I \equiv I \circ M

Conclusion: For Neutral Intents, the operators commute, and the subspaces Γ\Gamma and ι\iota are orthogonal.

For Chromatic Intents (e.g., Error), the Intent function IchromaticI_{chromatic} acts on both subspaces to enforce semantic meaning.

Ichromatic(γ,i)=(γoverride,k(i))I_{chromatic}(\gamma, i) = (\gamma_{override}, k(i))

In this case, commutativity is broken (M∘I≠I∘MM \circ I \neq I \circ M), and the Intent dominates the Context.

The Surface Operator (SS) is a special transformation that acts on both subspaces.

Preserves Context, Resets Intent. Sglass(γ,i)=(γ,ireset)S_{glass}(\gamma, i) = (\gamma, i_{reset})

Resets Context, Resets Intent. Ssolid(γ,i)=(γneutral,ireset)S_{solid}(\gamma, i) = (\gamma_{neutral}, i_{reset})

By modeling the state S\mathcal{S} as the product Γ×ι\Gamma \times \iota, we have derived that:

  1. Separability: The resolution function Φ\Phi is defined over the pair \gamma,i.
  2. Independence: Operations on Γ\Gamma and ι\iota are commutative (except for Semantic Dominance).
  3. Scoping: Surfaces act as filters that reset ι\iota, and optionally reset Γ\Gamma (if Solid).

This confirms that Color = f(Context, Intent) is structurally enforced by the algebra.