Expand description
O(1) coherence approximation via EML (exp(x) - ln(y)) master formula.
Predicts algebraic connectivity (lambda_2) from graph statistics without running the expensive O(k*m) Lanczos eigenvalue iteration. Based on: Odrzywolel 2026, “All elementary functions from a single operator”
§Two-Tier Coherence Pattern (DEMOCRITUS)
The intended usage follows a two-tier pattern:
- Every tick:
coherence_fast()via the EML model (~0.1 us) - When drift exceeds threshold:
spectral_analysis()via Lanczos (~500 us), thenmodel.record()to feed the training buffer - Every 1000 exact samples:
model.train()to refine parameters
This module does NOT modify the cognitive tick loop. Callers are responsible for implementing the two-tier cadence.
§Architecture
Delegates to eml_core::EmlModel for the generic EML machinery.
This module provides the WeftOS-specific wrappers:
GraphFeatures— extracts features from aCausalGraphCoherencePrediction— domain-specific prediction outputEmlCoherenceModel— thin wrapper aroundeml_core::EmlModel
Structs§
- Coherence
Prediction - Multi-output coherence prediction.
- EmlCoherence
Model - Depth-4 multi-head EML master formula for O(1) coherence prediction.
- Graph
Features - Cheap-to-extract graph statistics used as input features for the EML coherence model.
Enums§
- EmlEvent
- An event emitted by an EML model during its lifecycle.