UNPKG

@uor-foundation/operators

Version:

Layer 3: Arithmetic operators - operations as chemical reactions between numbers

49 lines 1.51 kB
import { type FieldSubstrate, type FieldPattern } from '@uor-foundation/field-substrate'; /** * Carry operator 𝒞(m,n) - encodes all interference effects during multiplication * This is the quantum mechanism where the universe creates/destroys information */ export declare class CarryOperator { private substrate; constructor(substrate: FieldSubstrate); /** * Compute the carry operator 𝒞(m,n) for multiplication m × n * This encodes which fields vanish and which emerge during the operation */ compute(m: bigint, n: bigint): FieldPattern; /** * Compute partial products for binary multiplication * This is used in the full carry computation algorithm */ private computePartialProducts; /** * Propagate carries through the partial products */ private propagateCarries; /** * Convert bigint to binary array (LSB first) */ private toBinary; /** * Analyze denormalization artifacts from multiplication */ analyzeArtifacts(m: bigint, n: bigint): DenormalizationArtifact[]; } /** * Denormalization artifact - records field creation/destruction during multiplication */ export interface DenormalizationArtifact { type: 'vanishing' | 'emergent'; field: number; factors: number[]; product: number; interferencePattern: Complex; } /** * Complex number for interference patterns */ export interface Complex { real: number; imag: number; } //# sourceMappingURL=carry.d.ts.map