How relational-relativity-corporation/abr-event-analysis works
Purpose and execution surface
This is a Python research-analysis repository for applying V6 relational operators Δ and Σ to simulated and CERN/LHCb hadronic-decay event data before statistical reduction. The primary entry point is reproduce.ps1, which orchestrates generation and analysis; run_phase0_events.py appears to support the phase-0 event workflow. Individual analyze_*.py scripts are independently runnable analysis stages. generate_events.py creates the simulated input corpus.
Observable and relation declaration boundary
The declaration/ package defines the allowed input domain and the event-graph semantics consumed by the kernel. Observable vectors and their Level-2 admissibility are established in declaration/observable.py; directed within-event relations and provenance are declared in declaration/relations.py; predeclared comparison targets reside in declaration/targets.py. declaration/admissibility.py provides the invalid-input boundary. This layer separates directly measured track fields (notably momentum and charge) from derived/theoretical classifications.
Primary operator kernel
operators/primary.py is the central computational kernel. It implements Δ, Σ, rho, and the antisymmetric term over declared observable fields and directed edges. The intended composition is Σ(Δ(x)): operators act per event on graph-structured observables, with no prior aggregation, path accumulation, or persistence. The formal constraints governing this behavior are documented in docs/primary_operators_delta_sigma_v6.md and docs/operators_notation_and_constraint_v6.md.
Event sources and ingestion
Two source modes feed the same conceptual kernel path:
• Synthetic D0-like events produced by generate_events.py, then used by the simulated analyses.
• ROOT files downloaded separately from CERN Open Data: Masterclass D0 data and B→HHH data. Their real-data analysis entry points are analyze_hadronic_phase0b.py and analyze_hadronic_phase0c.py.
Large data and generated result directories are intentionally absent from the tree. Runtime dependencies are installed from requirements.txt; ROOT handling therefore depends on Python packages rather than a checked-in data-access service.
Analysis projections
The analysis/ package converts kernel outputs into declared statistical or structural projections. analysis/rank.py calculates ranks of Δ/Σ images; analysis/admissibility.py checks edge-image directional admissibility; analysis/expression.py evaluates expression conditions and failure modes; analysis/rho_p.py computes the rho-P ratio. These are post-kernel reductions, preserving the architectural rule that event-level operators run before rank, comparison, or summary calculations.
Workflow stages and reports
The top-level analysis scripts form the experiment pipeline: rank contribution and angular analyses (analyze_rank_contributions.py, analyze_angular_structure.py), simulated topology and Sigma studies (analyze_hadronic_phase0a.py, analyze_sigma_constant.py), and real-data validations (analyze_hadronic_phase0b.py, analyze_hadronic_phase0c.py). Additional comparison modules in comparison/ provide QM, QCD, and probability-oriented comparison projections without replacing the primary kernel. Outputs are written to an untracked results/ directory.
Validation and documentation
The executable regression surface is focused on phase-0 generation/processing in tests/test_phase0_events.py, with shared pytest setup in conftest.py. Architecture-level semantics, operator restrictions, and role separation are maintained as versioned documents under docs/, especially docs/role_separation_and_operator_application_v6.md and docs/primary_region_formal_interior_v6.md.
Main entry points: primary.py Δ / Σ operator kernel · analyze_hadronic_phase0a.py Simulated analyses · analyze_hadronic_phase0b.py Real-data analyses · reproduce.ps1 Reproduction runner
Components 19
Event Sources
- Synthetic event generator · Creates simulated D0-like event inputs.
generate_events.py - CERN ROOT data · Separately downloaded Masterclass D0 and B→HHH files.
Declaration & Semantics
- Observable domain · Defines observable vectors and Level-2 admissibility.
declaration/observable.py - Event relations · Defines directed within-event relations and provenance.
declaration/relations.py - Comparison targets
declaration/targets.py - Invalid-input boundary
declaration/admissibility.py - Operator constraints · Specifies event-local Σ(Δ(x)) behavior.
docs/primary_operators_delta_sigma_v6.md - Notation constraints
docs/operators_notation_and_constraint_v6.md
Operator Kernel
- Δ / Σ operator kernel · Applies Δ, Σ, rho, and antisymmetric terms per event.
operators/primary.py
Analysis & Reporting
- Reproduction runner · Orchestrates event generation and analysis.
reproduce.ps1 - Phase-0 workflow
run_phase0_events.py - Rank projection · Calculates ranks of Δ/Σ images.
analysis/rank.py - Edge admissibility · Checks directional admissibility of edge images.
analysis/admissibility.py - Expression evaluation · Evaluates conditions and failure modes.
analysis/expression.py - rho-P ratio
analysis/rho_p.py - Simulated analyses · Rank, angular, topology, and Sigma studies.
analyze_hadronic_phase0a.py - Real-data analyses · Processes Masterclass D0 and B→HHH inputs.
analyze_hadronic_phase0b.py - Comparison projections · QM, QCD, and probability-oriented projections.
comparison/qm_comparison.py - Results · Untracked analysis outputs.
Connections 22
- Reproduction runner → Synthetic event generator: generates
- Reproduction runner → Phase-0 workflow: runs
- Phase-0 workflow → Simulated analyses: drives
- Synthetic event generator → Simulated analyses: simulated events
- CERN ROOT data → Real-data analyses: ROOT inputs
- Observable domain → Δ / Σ operator kernel: observable fields
- Event relations → Δ / Σ operator kernel: directed edges
- Comparison targets → Δ / Σ operator kernel: comparison declarations
- Invalid-input boundary → Δ / Σ operator kernel: rejects invalid inputs
- Operator constraints → Δ / Σ operator kernel: formal semantics
- Notation constraints → Δ / Σ operator kernel: constraints
- Δ / Σ operator kernel → Rank projection: event images
- Δ / Σ operator kernel → Edge admissibility: edge images
- Δ / Σ operator kernel → Expression evaluation: event images
- Δ / Σ operator kernel → rho-P ratio: rho outputs
- Δ / Σ operator kernel → Simulated analyses: per-event computation
- Δ / Σ operator kernel → Real-data analyses: per-event computation
- Rank projection → Simulated analyses: rank reduction
- rho-P ratio → Comparison projections: comparison inputs
- Simulated analyses → Results: writes
- Real-data analyses → Results: writes
- Comparison projections → Results: writes