hidden-attractors
v0.1.0 alpha
Docs API ← Fyskode
Chua double-scroll attractor
Research Alpha · Python 3.11+

hidden‑attractors‑fo

Numerical workflows for locating and verifying hidden attractor candidates in fractional-order and integer-order Chua/Lur'e systems.

$ pip install hidden-attractors-fo
Get Started Quick Start GitHub

Quick Start

Run a Chua equilibrium check in 5 lines.

Full Quick Start guide →
quickstart_equilibria.py
from hidden_attractors import chua_nonsmooth_parameters
from hidden_attractors.models import (
    equilibria_nonsmooth, rhs_nonsmooth
)

params = chua_nonsmooth_parameters()
for name, point in equilibria_nonsmooth(params).items():
    residual = rhs_nonsmooth(point, params)
    print(name, point, residual)

Everything you need

From fractional-order integration to basin classification and publication-ready figures.

⚛️
Built-in Chua (non-smooth and arctan), Lorenz, Rössler. Extensible registry for custom chaotic systems.
⚙️
EFORK (Extended Fractional-Order Runge-Kutta), ABM predictor-corrector, and RK4 for integer-order. Native C backends with OpenMP.
📊
Trajectory cloud metrics, FFT spectral analysis, Poincaré sections, Lyapunov exponents via Rosenstein, recurrence analysis.
🗺️
Classify trajectories as self-excited, hidden candidate, divergent, or inconclusive. Geometry-based refinement and sphere controls.
Unified Chua pipeline, robustness overlay, sphere controls, strict target refinement, and the generic Lur'e protocol.
🌱
Classical uniform seeds, directionally biased seeds, and Machado describing-function branch seeds for systematic initial condition sweeps.
🎨
3D/2D trajectory overlays, basin classification grids, bifurcation diagrams, Poincaré plots, and reusable figure helpers.
🔗
Adapters for nolds (Lyapunov, Hurst), antropy (sample entropy, permutation entropy), and PyDSTool for numerical continuation.

Built-in Systems

Register your own systems with register_system().

System Type Dim Description Docs
chua-nonsmooth Integer & Fractional 3 Non-smooth Chua circuit with a linear-by-pieces characteristic Docs →
chua-arctan Integer & Fractional 3 Chua variant with arctangent nonlinearity Docs →
lorenz Integer 3 Classic Lorenz '63 — reference self-excited system Docs →
rossler Integer 3 Rössler attractor — simple spiral chaos Docs →
custom Any Any User-defined via register_system() — provide RHS, Jacobian, equilibria Docs →

Scientific Validation Status

To guarantee numerical validity and prevent computational artifacts, the library implements an automated 8-stage verification contract.

CLOSED
01

Algebraic Evidence

Regional vector field residuals, equilibria locations, analytic Regional Jacobians, and eigenvalues mapped onto the complex Matignon plane at q = 0.9998. Mapped across Python, MATLAB, and Wolfram.

python tools/validation/validate_chua_fractional_nonsmooth_algebra.py
CLOSED
02

Lur'e Describing-Function

Analytical Lur'e decomposition vector splits, Machado describing-function limit cycles, transfer function sign conventions (W_code = -W_report), and harmonic continuation branch matching.

Verified via Stage 01 Package
CLOSED
03

Caputo Solver Convergence

Extended Fractional Runge-Kutta (EFORK-3) convergence. Verifies analytical Mittag-Leffler convergence to 6 × 10-9 tolerance, Runge-Kutta q = 1 stage orders, and ABM cross-comparisons.

python tools/validation/validate_efork_integrator.py
PENDING
04

Candidate Selection

Locating viable, non-collapsing initial attractor seeds outside the immediate neighborhood of regional stable/unstable manifolds.

PENDING
05

Dynamical Analysis

Computing ROSENSTEIN Lyapunov exponent spectra, trajectory clouds, Poincaré sections, and sample/permutation entropy metrics.

PENDING
06

Hiddenness Probes

Thorough spherical coordinate grids swept systematically from equilibria neighborhoods to confirm strict mathematical hiddenness.

PENDING
07

Robustness Sweep

Perturbing system parameters (alpha, beta) to guarantee structural stability and ensure attractors don't collapse into a stable limit cycle.

PENDING
08

Literature Verification

Formal alignment, cross-comparisons, and coordinate centroid matchings against original publications (e.g., Danca 2017).

🤖 Automated Validation Contract Auditor

The installable command line interface contains a validation contract checker that verifies your local files comply with the machine-readable schema definition in configs/validation_contract.json.

Verify local candidate validation directory:
hidden-attractors-check-validation --dir validation/ --strict
Validate Integer Chua baseline case:
hidden-attractors-check-validation --contract configs/validation_chua_integer_q1.json --validation-root validation/reference_cases/chua_integer_q1
Verify EFORK-3 published math tables:
hidden-attractors-check-validation --contract configs/validation_efork3_ghoreishi_ghaffari.json --validation-root validation/reference_cases/efork3_ghoreishi_ghaffari

Local Library Examples

Run any of the included user-facing examples from the root of the project to test systems, solvers, and seed generators.

🐍

quickstart_equilibria.py

Evaluates all three equilibria points and prints non-smooth vector field RHS residuals to machine precision.

python examples/quickstart_equilibria.py
🐍

minimal_chua_protocol.py

Runs a fast trajectory integration of the fractional Chua system using compiled C-accelerated EFORK-3 solver.

python examples/minimal_chua_protocol.py
🐍

list_final_candidates.py

Queries the internal system candidate records and details all verified bounding boxes and centroids.

python examples/list_final_candidates.py
🐍

custom_system_definition.py

Registers a custom fractional-order chaotic attractor, defines its vector equations, and initiates solver loops.

python examples/custom_system_definition.py
🐍

create_robustness_overlay_config.py

Configures and coordinates the parameters for sweeping system parameter maps and plotting overlap maps.

python examples/create_robustness_overlay_config.py

CLI Commands

After editable installation, all workflows are available as terminal commands.

Terminal
$ hidden-attractors-list-candidates
$ hidden-attractors-systems
$ hidden-attractors-unified-chua --help
$ hidden-attractors-robustness-overlay --config overlay.json
$ hidden-attractors-sphere-controls
$ hidden-attractors-refined-basin
$ hidden-attractors-integer-chua
$ hidden-attractors-check-validation --help
Full CLI Reference →

Documentation

📦 Installation 🚀 Quick Start 📚 API Reference ⚛️ Systems Workflows 💡 Examples 🔬 Research Notes 🤝 Contributing 📖 Citation FAQ

Cite this library

If you use hidden-attractors-fo in academic work, please cite the repository.

@software{hidden_attractors_fo,
  author = {Xerkkun},
  title = {hidden-attractors-fo},
  url = {https://github.com/Xerkkun/Hidden-Attractors-Localization},
  year = {2024}
}
Full citation details →