Skip to main content

Module specialized_libs

Module specialized_libs 

Source
Expand description

Specialized Libraries Module

This module contains high-performance specialized mathematical and scientific libraries that leverage Phase 2 architectural enhancements for unprecedented performance and capabilities.

§Cold Domain Decoupling and Module Caller Audit

Cold scientific and hardware domains are staged for opt-in feature gating:

  • chemistry_modeling: Quantum chemistry, DFT, and Roothaan-Hall SCF. Referenced by mcp::mcp_tool_impls::chemistry and poet_host::invoke::science::chem.
  • financial_modeling: Option pricing, Black-Scholes, and portfolio risk. Referenced by poet_host::invoke::econ::{ml_finance, portfolio}.
  • qpu_bridge: Quantum processing unit job scheduler and driver interfaces. Referenced by mcp::mcp_stub_impls.
  • quantum_biology: Biological quantum coherence and state synchronization. A true leaf module with zero external callers across qualia-core-db. Gated cleanly under all(not(target_arch = "wasm32"), not(feature = "minimal-fast-build")).

All public module re-exports are 100% preserved under default/monolith builds. Use active_specialized_lib_mask to query active modules with zero heap allocations.

Re-exports§

pub use shared::FixedArray;
pub use shared::FixedQueue;
pub use shared::FixedStack;
pub use shared::RingBuffer;

Modules§

category_theory
Category Theory Library
chemistry_modeling
Chemistry Modeling Library - Molecular Simulation and Chemical Analysis
computational_economics
Computational economics and finance coordination layer: capability matrices, shared categorical transforms, and native economics kernels. Kept available to WASM because the first layer is metadata + zero-dependency utilities. Native computational economics coordination layer.
computational_geometry
Native computational geometry: robust predicates, topology/graph structures, Q42/10D adapters, and the computational-geometry algorithm families. Unlike the older specialized libraries this module is available to browser/WASM builds. Native computational geometry for QualiaDB.
computer_vision
Computer vision specialized library (MIG-V2).
constructibility
Constructibility — compass-and-straightedge feasibility decisions.
cryptographic_library
Cryptographic Library - Quantum-Resistant Cryptographic Operations
engineering_analysis
Engineering Analysis Library - Structural, Mechanical, and Systems Engineering Analysis
financial_modeling
Financial Modeling Library - Secure Financial Computing and Risk Analysis
linear_algebra
Linear Algebra Library - High-Performance Mathematical Computing
machine_learning
Machine Learning Library - Edge AI and Neural Network Computing
medical_computing
Medical Computing Library - Healthcare Data Processing and Medical Analytics
multivar_calculus
Multivariable symbolic differentiation — gradient, Jacobian, Hessian (Calculus plan §3, the ★★ standout). Built on the CAS’s existing single-variable differentiate, so every partial is a symbolic, provenance-bearing derivative (citable via the CAS’s to_quins/ expr_citation_hash) — honest math, not a black-box autodiff number.
physics_simulation
Physics Simulation Library - High-Performance Physics Computing
polynomial_algebra
Dense univariate polynomial algebra over f64 coefficients.
qpu_bridge
quantum_biology
Quantum Biology Library - Quantum-Enhanced Biological Analysis
shared
Shared utilities for specialized libraries
statistical_computing
Statistical Computing Library - Privacy-Preserving Statistical Analysis
symbolic_algebra
Symbolic algebra — a small computer-algebra system (CAS).
symbolic_assumptions
Simplification under assumptions (Gap analysis §3.3) — CAS simplifications that are only valid when the simplifier knows a variable’s sign / nonzero-ness.
symbolic_integration
Symbolic integration (Calculus plan §4.1) — antiderivatives over the CAS.
symbolic_limits
Limits (Calculus plan §4.2) — limits of CAS expressions, with l’Hôpital’s rule for 0/0 indeterminate forms and a numeric-probe limit at infinity for rational expressions. Fail-closed (None) when still indeterminate after the bounded passes.
symbolic_ode
Symbolic differential equations (Gap analysis §3.4) — closed-form solutions for the standard solvable classes of ODE, plus first-order-linear PDE (method of characteristics) and second-order-linear PDE type classification.
symbolic_series
Taylor / Maclaurin series (Calculus plan §4.2) — the series of a CAS expression about a point, by repeated symbolic differentiation. cₖ = f⁽ᵏ⁾(a)/k!.
symbolic_solve
Equation solving (Gap analysis §3.2) — polynomial roots (any degree), real-root extraction, linear systems, and roots of a CAS polynomial expression.
symbolic_trig
Trigonometric simplification (Gap analysis §3.3) — identity-driven rewrites over the CAS’s Sin/Cos/Tan nodes that plain simplify cannot do (it knows only constant folding and algebraic identities).

Constants§

LIB_CATEGORY_THEORY
LIB_CHEMISTRY_MODELING
LIB_COMPUTATIONAL_ECONOMICS
LIB_COMPUTATIONAL_GEOMETRY
LIB_COMPUTER_VISION
LIB_CONSTRUCTIBILITY
LIB_CRYPTOGRAPHIC_LIBRARY
LIB_ENGINEERING_ANALYSIS
LIB_FINANCIAL_MODELING
LIB_LINEAR_ALGEBRA
LIB_MACHINE_LEARNING
LIB_MEDICAL_COMPUTING
LIB_MULTIVAR_CALCULUS
LIB_PHYSICS_SIMULATION
LIB_POLYNOMIAL_ALGEBRA
LIB_QPU_BRIDGE
LIB_QUANTUM_BIOLOGY
LIB_SHARED
LIB_STATISTICAL_COMPUTING
LIB_SYMBOLIC_ALGEBRA
LIB_SYMBOLIC_ASSUMPTIONS
LIB_SYMBOLIC_INTEGRATION
LIB_SYMBOLIC_LIMITS
LIB_SYMBOLIC_ODE
LIB_SYMBOLIC_SERIES
LIB_SYMBOLIC_SOLVE
LIB_SYMBOLIC_TRIG

Functions§

active_specialized_lib_mask
Returns the 32-bit bitmask of active specialized libraries compiled into this binary.
is_specialized_lib_active
Checks whether a specific specialized library capability bit is active in the current build.
specialized_lib_name
Returns the canonical snake_case name of a specialized library capability bit.