📌 Note: A newer version of the related article is available:
Version 7.0 – June 2025: https://doi.org/10.5281/zenodo.15713858
Please consider referring to this updated version for the most recent results and clarifications.
This repository contains the code and tools used in the simulation and analysis of cognitive representations under scale-dependent entropy, as described in the Subjective Physics framework.
This project simulates the behavior of a cognitive observer when interacting with a high-dimensional ontological space (\mathcal{H}{\text{ont}} \subseteq \mathbb{R}^N), projected into a cognitive manifold (\mathcal{C}{\text{obs}} \subseteq \mathbb{R}^d) via a lossy functor (F). The central object of study is the entropy function (S(\epsilon)), evaluated at various scales (\epsilon), and its derivative (dS/d\log(\epsilon)), which reveals cognitive phase transitions and distinct perceptual regimes.
- Analyze scale-dependent entropy (S(\epsilon)) of cognitive representations.
- Detect local extrema of (dS/d\log(\epsilon)) as indicators of representational phase transitions.
- Visualize entropy landscapes and their associated cognitive geometries using t-SNE embeddings.
- Construct extremum graphs to explore transitions between distinct observer states.
📂 Repository Structure
├── cognitive_analysis.py # Entropy plotting, extremum detection, t-SNE, graph construction
├── cognitive_functor.py # Functorial projection implementation
├── trajectory_simulation.py # State-space trajectories and perceptual rounding
├── run_experiment.py # Main entry point for data generation and analysis pipeline
├── analysis_utils.py # Auxiliary analytical tools
├── plot_utils.py # General-purpose plotting utilities
├── metrics.py # Entropy and distance metrics
├── config.py # Global configuration parameters
├── requirements.txt # Python dependencies
├── .gitignore # Git ignore rules
├── LICENSE # MIT License
├── CITATION.cff # Citation metadata
├── README.md # This file
└── results/ # Output directory (entropy curves, plots, JSON)
git clone https://github.com/Khomyakov-Vladimir/cognitive-observer-simulation.git
cd cognitive-observer-simulation
python -m venv venv
source venv/bin/activate # or venv\Scripts\activate on Windows
pip install -r requirements.txt
python run_experiment.py
Output will be saved to the results/
directory, including:
entropy_curve.png/.pdf
: Plot of entropy (S(\epsilon)) and its derivative.entropy_maxima.json
: List of extremal points with metadata.projection_heatmap.png
: t-SNE view of entropy extrema.extremum_graph.png
: Graph connecting extrema in projection space.
Requirement | Status |
---|---|
Random seed control | ✅ |
Deterministic t-SNE embeddings | |
Save/load experiment configs | ✅ |
Export of key outputs | ✅ |
No reliance on external APIs | ✅ |
random_state=42
or use PCA instead.
All hyperparameters can be adjusted in config.py
:
NUM_EPSILON_STEPS = 20
EPSILON_MIN = 0.01
EPSILON_MAX = 1.0
SHOW_PLOTS = True
RESULTS_DIR = "./results/"
This project is part of an ongoing investigation into subjective physics, where physical regularities are interpreted as cognitive invariants. Entropy and its scale derivative serve as proxies for an observer's internal differentiation of stimuli under limited resolution.
See related theoretical work:
- Kaminsky, A. (2025). Subjective foundations of quantum mechanics. Zenodo. https://doi.org/10.5281/zenodo.15098840
- Vanchurin, V. (2025). Neural Relativity. ResearchGate. DOI:10.13140/RG.2.2.36422.79689
- Entropy (S(\epsilon)) and its derivative showing critical points.
- Graph of entropy extrema in projection space.
MIT License. See LICENSE
file for details.
For questions, contributions, or collaboration proposals, please contact:
Vladimir Khomyakov
GitHub – @Khomyakov-Vladimir
If you use this codebase in your research, please cite:
@software{vladimir_khomyakov_2025_cognitive_observer,
author = {Vladimir Khomyakov},
title = {Cognitive Observer Simulation: Entropy Scaling and Extremum Structure},
year = 2025,
url = {https://github.com/Khomyakov-Vladimir/cognitive-observer-simulation}
}