Skip to content

About

Standalone GFG Core v3 and frozen GF-S01, GF-P01, and GF-P02 structural experiments

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

GFG Core and Structural Experiments

This standalone repository contains the Generation-Fact Graph (GFG) Core v3 implementation and three frozen structural experiments:

ID Experiment Frozen scientific role
GF-S01 Four-stage real-signal formation Traces a real ECG signal through FIR filtering, downsampling, sliding FFT and SVG rendering using one fixed five-coordinate generation-fact structure.
GF-P01 Five-profile unified projection proof Tests exact strict projection to database lineage, Source Maps, OpenTelemetry, W3C PROV and PyTorch Autograd under the frozen profiles.
GF-P02 Provenance-semiring projection Tests exact strict projection from complete Core v3 facts to canonical N[X] and the frozen lower algebraic/task projections.

The scientific definitions, frozen profiles, protocols, fixtures, result criteria and experiment implementations were extracted from the complete frozen research-evidence repository at commit 36dab5ce347dbbdac157ef23205f556606d18294. That repository remains the complete authority for the wider research evidence. This repository is a focused, independently installable distribution of GFG Core and GF-S01, GF-P01 and GF-P02 only.

The Core test fixture and its four support-space predicate implementations are copied byte-for-byte from the Core commit declared by GF-P01, 6b34906d7b6e4fa15f6c7d6e3013daa35a308b5e; the public research-evidence snapshot references that commit but omits those test-only fixture files.

What was and was not changed

Scientific code and data definitions are retained from the frozen source. Small portability-only changes replace checks that required inaccessible Git history objects with checks against frozen file hashes, Git tree identities and copied baseline artifacts. They do not change any experiment workload, projection, intervention, oracle, validator threshold, success predicate or reported scientific result. See PORTABILITY_NOTES.md and provenance/UPSTREAM_FILE_MANIFEST.json.

Third-party source packages, binary wheels, downloaded standards material, the MIT-BIH source bytes and literature PDFs are not vendored. They remain under their own licences and are installed or downloaded separately. See LICENSE_AUDIT.md and THIRD_PARTY_NOTICES.md.

Requirements

  • CPython 3.12
  • Node.js 24.x and pnpm 11.x for the Source Map reference path
  • Internet access for the one-time retrieval of the frozen public ECG input, Source Map authorities and W3C reference material

Create an environment and install the Python dependencies:

python -m venv .venv
.venv\Scripts\python.exe -m pip install -e .
.venv\Scripts\python.exe -m pip install -r requirements-validation.txt
.venv\Scripts\python.exe -m pip install --index-url https://download.pytorch.org/whl/cpu "torch==2.13.0+cpu"

On POSIX systems, replace .venv\Scripts\python.exe with .venv/bin/python.

Prepare GF-P01's frozen Source Map dependency, ignored standards material and the deterministic TPC-H SF0.01 database:

.venv\Scripts\python.exe -m tools.prepare_gf_p01

The preparation command verifies every downloaded file hash and both pinned Git commits. If an official web page has changed since the frozen retrieval, pass a previously retrieved authority directory with --source-map-cache PATH; a mismatched object is rejected rather than substituted.

Verify the extraction

.venv\Scripts\python.exe -m tools.verify_upstream_identity
.venv\Scripts\python.exe -m pytest tests/core -q

Run GF-S01

.venv\Scripts\python.exe -m experiments.signal_multistage_generated_origin_v1.run_experiment

Success requires the frozen status MULTISTAGE_SIGNAL_GENERATION_FACTS_SUPPORTED; the runner also performs the independent numeric/path comparison and all negative controls.

Run GF-P01

.venv\Scripts\python.exe -m experiments.five_profile_unified_projection_proof.scripts.run_all --artifacts results/gf-p01

The fail-closed runner executes all five mechanisms twice and runs the complete validator suite. Success requires FIVE_PROFILE_EXACT_STRICT_PROJECTION_SUPPORTED with no failed, skipped or unavailable mechanism.

Run GF-P02

.venv\Scripts\python.exe -m tools.run_gf_p02

This executes the frozen GF-P02 computation chain, two complete scientific runs, the independent isolation checks, negative controls, report consistency checks, all experiment tests and the final artifact rehash.

Licence

Repository-authored source code, protocols, tests and documentation in this focused distribution are licensed under Apache License 2.0. Third-party dependencies and externally downloaded materials are excluded from that grant and remain subject to their own terms.

About

Standalone GFG Core v3 and frozen GF-S01, GF-P01, and GF-P02 structural experiments

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages