Full System Composition
Hypothesis
The full composed system — combining contraction mappings, cosine-scaled projection, normalised Lyapunov monitoring, interaction matrix adaptation, and convergence diagnostics — converges to the target parameters while satisfying all theorem conditions simultaneously.
Method
Setup: Complete system with all 5 subsystems running together on a 4-parameter optimisation problem with multiple competing objectives.
Parameters:
- Target parameters: \( w^* = [2, -1, 3.5, 0.5] \)
- Initial parameters: random
- Subsystems: GD, EWC, Natural Gradient, Meta-LR, Bayesian
- Monitoring: contraction rate, Lyapunov violations, invariant violations, conflict resolution, belief state
Procedure: Run the full composed system until convergence. Record final parameters, loss, belief confidence, contraction rate, invariant violations, and conflict resolution statistics.
Results
Parameter convergence
| Parameter | Target | Achieved | Error |
|---|---|---|---|
| \(w_1\) | 2.000 | 1.970 | 0.030 |
| \(w_2\) | −1.000 | −0.930 | 0.070 |
| \(w_3\) | 3.500 | 3.480 | 0.020 |
| \(w_4\) | 0.500 | 0.520 | 0.020 |
System diagnostics
| Metric | Value | Status |
|---|---|---|
| Final loss | 0.007 | Pass |
| Belief confidence | 0.81 | Pass |
| Contraction rate \(\beta\) | 0.0016 | Pass |
| Invariant violations | 0 | Pass |
| Conflicts resolved | 1993 / 1993 | Pass |
Analysis
The full system demonstrates all five theorem conditions operating in concert:
- Convergence (Theorem 1): Parameters converge to within 0.07 of target values. The maximum error is on \( w_2 \), consistent with it having the largest magnitude target (\(-1\)), making the relative error small (7%).
- Conflict resolution (Theorem 2): All 1993 gradient conflicts encountered during training were resolved by cosine-scaled projection. Zero residual conflicts.
- Stability (Theorem 3): Zero Lyapunov violations throughout the run. The normalised Lyapunov function decreased monotonically.
- Interaction (Theorem 4): The interaction matrix adapted during training, discovering the coupling structure between objectives.
- Diagnostics (Theorem 5): The convergence score \( S \) decreased to near zero, correctly indicating convergence.
The contraction rate \( \beta = 0.0016 \) is the composed rate of all five subsystems, confirming exponential convergence. The belief confidence of 0.81 indicates the Bayesian subsystem has high but not absolute certainty — appropriate given the multi-objective trade-offs.
Conclusion
Pass — The full composed system converges to the target with loss 0.007, zero invariant violations, 100% conflict resolution (1993/1993), and contraction rate 0.0016. Theorems 1 through 5 are validated in composition.
Reproducibility
../simplex/build/sxc exp_composition.sx -o build/exp_composition.ll
clang -O2 build/exp_composition.ll ../simplex/runtime/standalone_runtime.c \
-o build/exp_composition -lm -lssl -lcrypto -L$(brew --prefix openssl)/lib
./build/exp_composition
Related
- exp-contraction — Contraction mapping (Theorem 1)
- exp-gradient-interference — Gradient projection (Theorem 2)
- exp-lyapunov — Lyapunov stability (Theorem 3)
- exp-interaction-matrix — Interaction matrix (Theorem 4)
- exp-convergence-order — Convergence diagnostics (Theorem 5)
- exp-invariants — Foundational invariants (Prop 3.5)
- exp-timescale — Timescale separation