UOR Carry Algebra

IRI
https://uor.foundation/carry/
Prefix
carry:
Space
kernel
Comment
Carry chain algebra: generate/propagate/kill event classification, carry profiles, encoding configurations, and encoding quality metrics for d_Δ optimization.

This is a kernel-space namespace in the Define stage of the PRISM pipeline. It provides the immutable algebraic substrate — ring structure, schema vocabulary, and operation algebra.

Learn more: Pipeline Overview

Class hierarchy
Class hierarchy for UOR Carry Algebra namespace CarryChain CarryEvent CarryProfile EncodingConfig EncodingQualit

Imports

Classes

NameSubclass OfDisjoint WithComment
CarryChainThingThe Boolean function chain c_{k+1} = or(and(x_k, y_k), and(xor(x_k, y_k), c_k)). The carry chain is the algebraic mechanism behind the incompatibility metric d_Δ.
CarryEventThingA single carry event at site k. Three kinds: Generate (and(x_k, y_k) = 1), Propagate (xor(x_k, y_k) = 1 and c_k = 1), Kill (neither generate nor propagate).
CarryProfileThingThe complete carry pattern for an addition x + y. Aggregates carry events across all sites into counts and position masks.
EncodingConfigurationThingA mapping from a finite symbol set S to Z/(2^k)Z where 2^k ≥ |S|. Determines how domain values are represented as ring elements.
EncodingQualityThingThe d_Δ quality metric for an encoding over observed data. Measures how well an encoding minimizes carry-induced metric incompatibility.

Properties

NameKindFunctionalDomainRangeComment
chainLengthDatatypetrueCarryChainnonNegativeIntegerThe number of sites in this carry chain.
generateMaskDatatypetrueCarryChainnonNegativeIntegerBit mask of site positions where carry is generated: and(x_k, y_k) = 1.
propagateMaskDatatypetrueCarryChainnonNegativeIntegerBit mask of site positions where carry propagates: xor(x_k, y_k) = 1.
killMaskDatatypetrueCarryChainnonNegativeIntegerBit mask of site positions where carry is killed: neither generated nor propagated.
eventKindDatatypetrueCarryEventnonNegativeIntegerThe kind of carry event: Generate, Propagate, or Kill.
sitePositionDatatypetrueCarryEventnonNegativeIntegerThe site index k at which this carry event occurs.
carryCountDatatypetrueCarryProfilenonNegativeIntegerThe total number of carry events in this profile.
maxPropagationLengthDatatypetrueCarryProfilenonNegativeIntegerThe longest consecutive propagation run in this profile.
profileChainObjecttrueCarryProfileCarryChainThe carry chain that this profile summarizes.
symbolSetSizeDatatypetrueEncodingConfigurationpositiveIntegerThe cardinality of the symbol set S being encoded.
quantizationBitsDatatypetrueEncodingConfigurationpositiveIntegerThe number of bits k used for encoding (2^k ≥ |S|).
encodingMapObjecttrueEncodingConfigurationTermExpressionString representation of the mapping from symbols to ring elements.
meanDeltaDatatypetrueEncodingQualitydecimalThe mean d_Δ over observed pairs for this encoding.
discriminationRatioDatatypetrueEncodingQualitydecimalThe ratio of distinguishable pairs to total pairs under this encoding.
isOptimalEncodingDatatypetrueEncodingQualitybooleanWhether this encoding minimizes Σ d_Δ over observed pairs.