UNPKG

mcard-js

Version:

MCard - Content-addressable storage with cryptographic hashing, handle resolution, and vector search for Node.js and browsers

34 lines 1.37 kB
/** * Lambda Calculus Module for PTR * * Implements α-β-η conversions on MCard-stored Lambda terms. * * This module provides: * - LambdaTerm ADT: Var, Abs, App stored as MCard content * - Alpha Conversion: Variable renaming * - Beta Reduction: Function application * - Eta Conversion: Extensional equivalence * - LambdaRuntime: PTR-compatible runtime for CLM execution * * @module mcard-js/ptr/lambda */ export { // Smart Constructors mkVar, mkAbs, mkApp, // Serialization serializeTerm, deserializeTerm, termToMCard, mcardToTerm, // Storage storeTerm, loadTerm, termExists, // Pretty Printing prettyPrintShallow, prettyPrintDeep, // Type Guards isVar, isAbs, isApp } from './LambdaTerm'; // Free Variables export { freeVariables, boundVariables, isFreeIn, isClosed, generateFresh, generateFreshFor, difference, intersection } from './FreeVariables'; // Alpha Conversion export { alphaRename, alphaEquivalent, alphaNormalize } from './AlphaConversion'; export { isRedex, findLeftmostRedex, findInnermostRedex, betaReduce, reduceStep, normalize, isNormalForm, hasNormalForm } from './BetaReduction'; // Eta Conversion export { isEtaRedex, etaReduce, etaReduceE, etaExpand, etaEquivalent, etaNormalize, findEtaRedexes } from './EtaConversion'; export { LambdaRuntime, parseLambdaExpression } from './LambdaRuntime'; //# sourceMappingURL=index.js.map