SymbolicPsych v2.0 is an agent-based Python simulation framework for empirically validating recursive symbolic psychology models. It simulates agents with trauma dynamics, symbolic recursion, belief friction, neuro-symbolic coherence, narrative weaving, uncertainty modulation, leak indices, and adversarial thinning. Integrating Symbolic Field Theory (SFT v5.0), Entropic Recursion Framework (ERF v4.3), and others, it generates CSVs and PNGs mapped to psychometric instruments for analysis.
- Continuum transcendence gating with uncertainty (ERF v4.3).
- Motif bridges for narrative coherence weaving (FCWF v3.0).
- Leak index and adversarial thinning with quarantine (Symbolic Gravity v3.1).
- Narrative branes for geometry (Hyperverse v8.0).
- KPIs: Recovery half-life, ΔW/tick.
- Bounded time dilation under high drift.
- Swarm consensus for gating.
- Multi-substrate shifts (e.g., neural to quantum).
- Python 3.12+
- Libraries: numpy, matplotlib, pandas, torch, transformers, scikit-learn, scipy
Install:
pip install numpy matplotlib pandas torch transformers scikit-learn scipy
- Clone the repo:
git clone <repo-url> cd SymbolicPsych_RecursiveValidator
- Run the script.
Execute:
python SymbolicPsych_RecursiveValidator.py
- Customizes: Edit SimConfig (e.g., STEPS=300 for longer runs).
- Agents: 6 predefined; add more in main.
- Outputs in
./symbolic_psych_v2_output/
.
agent_<id>_log.csv
: Time-series metrics.group_analysis.csv
: All agents combined.validation_mapping.csv/json
: Metric-instrument mappings.adversarial_psych_log.csv
: Adversarial means.agent_<id>_metrics.png
: Multi-panel plots.agent_<id>_sft_tensor.png
: SFT tensor.empirical_validation_comparison.png
: Identity comparison.transcendence_trajectories.png
: Psi_eff with substrates.
Fork, modify, PR. Focus: Refine transcendence/adversarial logic or scale agents.
MIT License
Copyright (c) 2025 Steven Lanier-Egu
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.