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.

Imports

  • https://uor.foundation/op/
  • https://uor.foundation/observable/
  • https://uor.foundation/partition/

Classes

NameIRISubclass OfDisjoint WithComment
CarryChainhttps://uor.foundation/carry/CarryChainhttp://www.w3.org/2002/07/owl#ThingThe 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_Δ.
CarryEventhttps://uor.foundation/carry/CarryEventhttp://www.w3.org/2002/07/owl#ThingA 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).
CarryProfilehttps://uor.foundation/carry/CarryProfilehttp://www.w3.org/2002/07/owl#ThingThe complete carry pattern for an addition x + y. Aggregates carry events across all sites into counts and position masks.
EncodingConfigurationhttps://uor.foundation/carry/EncodingConfigurationhttp://www.w3.org/2002/07/owl#ThingA 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.
EncodingQualityhttps://uor.foundation/carry/EncodingQualityhttp://www.w3.org/2002/07/owl#ThingThe d_Δ quality metric for an encoding over observed data. Measures how well an encoding minimizes carry-induced metric incompatibility.

Properties

NameKindFunctionalDomainRangeComment
chainLengthDatatypetruehttps://uor.foundation/carry/CarryChainhttp://www.w3.org/2001/XMLSchema#nonNegativeIntegerThe number of sites in this carry chain.
generateMaskDatatypetruehttps://uor.foundation/carry/CarryChainhttp://www.w3.org/2001/XMLSchema#nonNegativeIntegerBit mask of site positions where carry is generated: and(x_k, y_k) = 1.
propagateMaskDatatypetruehttps://uor.foundation/carry/CarryChainhttp://www.w3.org/2001/XMLSchema#nonNegativeIntegerBit mask of site positions where carry propagates: xor(x_k, y_k) = 1.
killMaskDatatypetruehttps://uor.foundation/carry/CarryChainhttp://www.w3.org/2001/XMLSchema#nonNegativeIntegerBit mask of site positions where carry is killed: neither generated nor propagated.
eventKindDatatypetruehttps://uor.foundation/carry/CarryEventhttp://www.w3.org/2001/XMLSchema#nonNegativeIntegerThe kind of carry event: Generate, Propagate, or Kill.
sitePositionDatatypetruehttps://uor.foundation/carry/CarryEventhttp://www.w3.org/2001/XMLSchema#nonNegativeIntegerThe site index k at which this carry event occurs.
carryCountDatatypetruehttps://uor.foundation/carry/CarryProfilehttp://www.w3.org/2001/XMLSchema#nonNegativeIntegerThe total number of carry events in this profile.
maxPropagationLengthDatatypetruehttps://uor.foundation/carry/CarryProfilehttp://www.w3.org/2001/XMLSchema#nonNegativeIntegerThe longest consecutive propagation run in this profile.
profileChainObjecttruehttps://uor.foundation/carry/CarryProfilehttps://uor.foundation/carry/CarryChainThe carry chain that this profile summarizes.
symbolSetSizeDatatypetruehttps://uor.foundation/carry/EncodingConfigurationhttp://www.w3.org/2001/XMLSchema#positiveIntegerThe cardinality of the symbol set S being encoded.
quantizationBitsDatatypetruehttps://uor.foundation/carry/EncodingConfigurationhttp://www.w3.org/2001/XMLSchema#positiveIntegerThe number of bits k used for encoding (2^k ≥ |S|).
encodingMapObjecttruehttps://uor.foundation/carry/EncodingConfigurationhttps://uor.foundation/schema/TermExpressionString representation of the mapping from symbols to ring elements.
meanDeltaDatatypetruehttps://uor.foundation/carry/EncodingQualityhttp://www.w3.org/2001/XMLSchema#decimalThe mean d_Δ over observed pairs for this encoding.
discriminationRatioDatatypetruehttps://uor.foundation/carry/EncodingQualityhttp://www.w3.org/2001/XMLSchema#decimalThe ratio of distinguishable pairs to total pairs under this encoding.
isOptimalEncodingDatatypetruehttps://uor.foundation/carry/EncodingQualityhttp://www.w3.org/2001/XMLSchema#booleanWhether this encoding minimizes Σ d_Δ over observed pairs.