reality-core
The Mobius-dynamics engine behind the Reality game and darmiyan-fs — zero dependencies, usable as a library, a terminal game, or a verifier.
A "law" is a Mobius transformation x -> (a*x + b) / (c*x + d), classified by
the scale-invariant discriminant Delta = trace^2 - 4*det:
| Delta | sector | fate |
|---|---|---|
> 0 |
hyperbolic ("boost") | settled — closes, has an arrow |
= 0 |
parabolic ("null") | drifting — the seam |
< 0 |
elliptic ("rotation") | unresolved — cycles or never repeats |
A Mobius law has exactly 3 degrees of freedom, so it takes exactly 4
observed states to pin one down with certainty — not a game-design choice,
an exact result (darmiyan-fs/instants.py, self-referential-seed).
Install
pip install reality-core
Play
reality play # a fresh puzzle
reality play --seed 42 # reproducible — share the seed, share the puzzle
reality play --save run.json # save a transcript
You get exactly 4 looks at a hidden law, then name its sector:
hyperbolic, parabolic, or elliptic.
Verify, trust-free
reality verify run.json
Re-derives the result from the raw readings — no server, no trust required,
just the same math run again. This is the honest version of "provably fair":
it tells you whether the transcript is internally consistent, not that it's
the one true history (a valid run from a different seed in the same
conjugacy class passes identically — see darmiyan-fs/chain/verify.py for
why that limit is real and exact, not a missing feature).
As a library
from reality_core import Law, random_law, v_local, v_delta
law = Law(1, 1, 1, 0) # x -> 1 + 1/x, the golden-ratio map
law.sector() # 'hyperbolic'
law.step(1.0) # 2.0
License
MIT — see LICENSE.
Metadata
Release files for reality-core 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| reality_core-0.1.0.tar.gz | 6.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| reality_core-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.2 kB
Release files / reality_core-0.1.0.tar.gz
| Download URL | reality_core-0.1.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bbe462655cc500a3c0c266bda00a45ef1bba9f2e80d6313795b0024c8755ec36
|
|
BLAKE2b-256 checksum How to use checksums |
f0d3992a300bef2911b889fb05b187467478078443157b1d4c031a1f157157af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / reality_core-0.1.0-py3-none-any.whl
| Download URL | reality_core-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c6b04c5a80eab71c20a39ad701f5aac4b9212352eb1f66df08d5e66cde0ba83f
|
|
BLAKE2b-256 checksum How to use checksums |
b9e35729c80209d6dd410221073b09cd9c0d3a551c9850485ddcfbfb3cf51a71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for reality-core 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.