Skip to main content

Symbolic audit framework with CZVS, curvature zones, and compliance logic

Project description

#Digamma Prime (digamma-ep)

Sistema simbólico para auditoria de modelos com métricas de divergência estrutural, temporal e algébrica.
Symbolic audit framework for comparing models, tracking divergence, and teaching algebraic structure.


Installation

📦 Installation

# Install from PyPI
pip install digamma-ep

# Install from source
git clone https://github.com/Cerene-Salt/Digamma-Prime-Framework.git
cd digamma-ep
pip install -e .

---

## 🔧 GitHub Patch Instructions

### 1. Edit `README.md`

Open the file and:
- Replace all `digamma_prime` references with `digamma-ep`
- Confirm the install block matches the one above

### 2. Stage and commit

```bash
git add README.md
git commit -m "Update install instructions to use pip install digamma-ep"
git push origin main


#A Quickstart
from epe_maria.metrics import phi, delta_phi, phi_star

f = lambda x: x**2 + 2*x + 1
g = lambda x: x**2 + x + 1

print(phi(f, g))        # Structural divergence
print(delta_phi(f, g))  # Rate divergence
print(phi_star(f, g))   # Fusion metric


#Documentation
Operator fichas: docs/operators.md

Symbolic manifesto: docs/epe_maria_manifesto.md

#Examples in:
python examples/symbolic_mollification_demo.py
python examples/kernel_divergence_trace.py

#Features
Symbolic comparison of models

CLI-ready modules for drift detection

Visualizations for φ and Δφ

Curriculum-ready structure

PyPI + GitHub CI/CD integration

Vision
Digamma Prime aims to become a universal symbolic standard for model auditing, drift detection, and interpretability  rooted in the algebraic legacy of Epe Piancé Maria II.

🤝 Contributing
We welcome contributions in tutorials, metrics, automation, and visualizations. See docs/roadmap.md and docs/style_guide.md to get started.

Tests:;
pytest test_benchmark.py
pytest test_monitor.py

bout
Created by Cerene Rúbio License: MIT Namespace: epe_maria/  honoring the symbolic grammar of Epe Piancé Maria II

Release History
v0.2.0  Symbolic Expansion
Added operator fichas and visual demos

Published examples/ and docs/ to PyPI

Preserved epe_maria/ namespace

Synced GitHub and PyPI

v0.1.7  Initial PyPI Release
Core symbolic audit engine

Modules: benchmark, metrics, monitor, visuals

Python 3.11+ compatible

## 🧠 Conditional Zero-Variance State (CZVS)

Digamma Prime now supports symbolic analysis of CZVS  a rare, optimal system state defined by:
Ω_CZVS = Optimization(Var(ΔS)) = -b₀²

This equation is not always true  it represents a **Conditional State Equation (CSE)** that holds only when:

- `b₀ = 0` (constant term of g(x) is grounded)
- `Var(ΔS) = 0` (perfect structural consistency under weighting W)

Use `Ω_CZVS(f, g, W)` to compute the optimized variance of divergence, and `𝓜_CZVS(f, g, W)` to measure how close the system is to CZVS feasibility.

For full logic, see [`docs/module7.md`](docs/module7.md).




git clone https://github.com/Cerene-Salt/Digamma-Prime-Framework.git
cd digamma-ep
pip install -e .

from epe_maria import phi, Ω_CZVS, 𝓜_CZVS

def f(x): return x**2
def g(x): return x**2 + 0.01
W = np.eye(21)

score = 𝓜_CZVS(f, g, W)
print("Compliance Score:", score)

Testing
cd tests
python test_czvs.py
python test_czvs_extended.py

Thresholds
Symbolic compliance zones based on 𝓜_CZVS:

Zone	Threshold	Interpretation
✅ Robust	𝓜_CZVS < 0.2	Fully compliant
⚠️ Drifting	0.2  𝓜_CZVS < 0.5	Transitional zone
❌ Non-compliant	𝓜_CZVS  0.5	Symbolic instability

Modules
core: kernel logic and symbolic scaffolding

metrics: divergence and fusion operators

monitor: drift, curvature, and alert logic

benchmark: audit traces and symbolic tests

temporal: time-based variation

visuals: plotting utilities

utils: padding, projection, and helpers


---

## ✅ GitHub Patch Instructions

1. Save the above as `README.md` in your repo root
2. Stage and commit all changes:

```bash
git add epe_maria/__init__.py tests/test_czvs.py tests/test_czvs_extended.py README.md
git commit -m "v1.1.0: CZVS module, compliance metric, extended tests, PyPI-ready README"
git push origin main

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

digamma_ep-1.3.1.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

digamma_ep-1.3.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file digamma_ep-1.3.1.tar.gz.

File metadata

  • Download URL: digamma_ep-1.3.1.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for digamma_ep-1.3.1.tar.gz
Algorithm Hash digest
SHA256 52a2e734f64572993749f2044442b506e5288f1327c45fdd54c78e597354cb4a
MD5 3a4d4fc8ef62a6a2eae2b22a2266fd37
BLAKE2b-256 bb2d17c357b8cacf8d7db26e548468e0e4a6a372d28267919c5b39e7069af2b6

See more details on using hashes here.

File details

Details for the file digamma_ep-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: digamma_ep-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for digamma_ep-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ec250a0fd89e0e04050f3ca3dcb427bfcddbf883c6a9b1cbd777dac36af1f3b
MD5 ade0f3967e3863d1a7280d5dadeff11e
BLAKE2b-256 fb5a394491d87b57fea8b83f9c6dfa58cb67c93e5e5d809d2b62b159444919e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page