Skip to content

nathanoschmidt/tri-quarter-toolbox

Repository files navigation

Tri-Quarter Toolbox: README

Author: Nathan O. Schmidt
Organization: Cold Hammer Research & Development LLC (https://coldhammer.net)
License: MIT
Last Dated: February 27, 2026

License: MIT Python 3.8+


Table of Contents


1. Overview

The Tri-Quarter Toolbox is a public open-source software repository containing scientific research tools, implementations, and experiments regarding Nathan O. Schmidt's Tri-Quarter Framework (TQF)β€”a mathematical and computational framework that upgrades the complex numbers for working with unified 2D coordinates, inversive geometry, Eisenstein integers, radial dual triangular lattice graph (RDTLG), hexagonal symmetries, signal processing, equivariant encodings, and geometric deep learning.

The TQF is based on prior (2007-2017) and current (2025-present) academic research in advanced computer science and mathematics. This TQF toolbox is developed by Cold Hammer Research & Development LLC as an after-hours hobby science project driven by rigorous creativity, a first principles mindset, scientific methodology, and a passion for exploring the intersection of computational/mathematical fields such as data structures, algorithms, parallel computing, graph theory, discrete mathematics, group theory, cryptography, machine learning, and more.

The repository is organized into subdirectories containing various projects and tools, each with their own documentation. All code aims to be cross-platform compatible (Windows/Linux/macOS) with solid practices.

Core Philosophy:

  • πŸ€ Richard Feynman's Quote: "Science is the belief in the ignorance of experts"
  • ⛓️‍πŸ’₯ Freedom and Technical Problem Solving: Ask questions, challenge groupthink/censorship, and seek answers via the Scientific Method
  • 🧬 First Principles Design: Mathematical rigor meets practical implementation
  • πŸ”„ Symmetry-Aware Computing: Exploit geometric structure for efficient elegant solutions
  • πŸ“Š Reproducibility: Fixed seeds, documented environments, and transparent methods
  • πŸ”¬ Open Science: MIT-licensed code and public research artifacts
  • πŸ’‘ Continuous Learning: Experimental projects exploring new ideas
  • πŸ§ͺ Automated Testing: Each time code is deployed to production without automated testing, a child gets a mullet (and yes, some of these tools have contributed to mulletsβ€”it's work in progress 🀣)

Dev and scientist for life. πŸ’ΎπŸ—²πŸš€


2. Repository Structure

tri-quarter-toolbox/
β”œβ”€β”€ README.md                              # This file
β”œβ”€β”€ LICENSE                                # MIT license
β”œβ”€β”€ case_study_bpsk/                       # BPSK signal processing case study
β”œβ”€β”€ machine_learning/                      # Machine learning tools/projects
β”‚   └── tqf-nn_benchmark/                  # TQF neural network benchmark tools
β”œβ”€β”€ radial_dual_triangular_lattice_graph/  # Core RDTLG implementation & tools
└── theorem_animation/                     # Foundational theorem visualization

Each subdirectory contains its own README with detailed information about that specific project or tool.


3. Getting Started

Prerequisites

Most tools and projects in this repository require:

  • Python 3.8+
  • Virtual Environment (strongly recommended)
  • Platform: Windows, Linux, or macOS

Common dependencies across projects include:

  • NumPy, SciPy, Matplotlib (signal processing, visualization)
  • NetworkX, Pygame (graph algorithms, lattice visualization)
  • PyTorch + torchvision (machine learning benchmarks, CUDA 12.6 recommended)

Installation Pattern (all projects)

  1. Navigate to the desired project directory
  2. Create and activate a virtual environment
  3. Install dependencies from the project’s requirements.txt (or requirements-dev.txt for development)

Example (Windows):

cd case_study_bpsk
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt

Example (Linux/macOS):

cd radial_dual_triangular_lattice_graph
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

For the machine learning benchmark (GPU acceleration):

pip install torch torchvision --index-url https://download.pytorch.org/whl/cu126

See each project’s own README for exact installation steps, optional dependencies (e.g., Pygame, CUDA), and verification commands.

Quick Navigation


4. Projects & Tools

Tri-Quarter Theorem Animation

Location: theorem_animation/
Associated Preprint: TechRxiv 1281679

Interactive Matplotlib animation visualizing the core TQF unit-circle theorem: rotating point on the unit circle, real/imaginary vector decomposition, phase angle progression, and labeled zones/boundaries.

Key Features:

  • Real-time vector projection display
  • Play/pause and light/dark theme toggle
  • Exportable to GIF/MP4

Quick Start:

cd theorem_animation
# ... activate venv ...
python tri_quarter.py

Radial Dual Triangular Lattice Graph (RDTLG)

Location: radial_dual_triangular_lattice_graph/
Associated Preprint: TechRxiv 1339304

Reference implementation of the truncated RDTLG β€” the foundational geometric structure of TQF. Uses Eisenstein integers, exact circle-inversion bijection, and full ℀₆/D₆/𝕋₂₄ symmetry support.

Key Features:

  • Graph construction and analytics
  • Circle inversion duality for inner ↔ outer zone mapping
  • Path mirroring benchmarks (standard vs. TQF-optimized)
  • Real-time Pygame visualization
  • Vertex count, boundary, and truncation error tools

Quick Start:

cd radial_dual_triangular_lattice_graph
# ... activate venv ...
python simulation_01_visualize_random_connections.py
python simulation_03_benchmark_triquarter_path_mirroring.py 5

BPSK Signal Processing Case Study

Location: case_study_bpsk/
Associated Preprint: TechRxiv 1311875

Implements and compares three BPSK demodulation strategies in AWGN channels:

  • TQF phase-pair directional encoding (primary contribution)
  • Majority voting ensemble (classical baseline)
  • Gaussian-tuned soft decision decoding (adaptive baseline)

Key Features:

  • Full BPSK modulation/demodulation pipeline
  • BER vs. SNR sweeps (0–12 dB)
  • Reproducible simulations with fixed seeds
  • Pure Python + NumPy/SciPy

Quick Start:

cd case_study_bpsk
# ... activate venv ...
python simulation_01_tri-quarter_framework_ber.py

TQF Neural Network (TQF-NN) Benchmark Tools

Location: machine_learning/tqf-nn_benchmark/
Focus: Rotated MNIST symmetry-aware benchmarking

Implements a first-principles TQF-NN architecture based on truncated radial dual triangular lattice graphs with explicit ℀₆, D₆, and 𝕋₂₄ symmetry exploitation. Compares against parameter-matched (~650k params) baselines: FC-MLP, CNN-L5, scaled ResNet-18.

Key Features:

  • Native symmetry enforcement (equivariance/invariance losses)
  • Z₆-aligned rotated MNIST (60Β° increments)
  • Orbit mixing inference
  • PyTorch + CUDA support, rich CLI

Quick Start:

cd machine_learning/tqf-nn_benchmark
# ... activate venv + install torch (cu126 recommended) ...
python src/main.py

5. The Tri-Quarter Framework

Summary

The TQF is a mathematical and computational framework that unifies complex, Cartesian, and polar coordinate systems on the complex plane β„‚. It centers on truncated radial dual triangular lattice graphs (RDTLGs) constructed over Eisenstein integers (β„€[Ο‰]), while establishing fundamental topological and reflective properties across circles of arbitrary radius.

The foundational contribution, as presented in the unifying preprint, is the Tri-Quarter Topological Duality Theorem, which equips any circle T_r (of radius r > 0) with a novel topological property. This theorem positions T_r as an active boundary zone with intrinsic directional characteristics, enabling consistent separation of the inner zone X_{βˆ’,r} (|z| < r) and outer zone X_{+,,r} (|z| > r) through a phase pair map that encodes additional directional information and unifies the treatment of real and imaginary components across coordinate systems.

Complementing this is the Escher Tri-Quarter Reflective Duality Theorem, which proves reflective duality across T_r via circle inversion. This map preserves phase pairs while bijectively swapping the inner and outer zones, providing an exact topological and reflective correspondence.

Building on these duality principles, TQF provides:

  • Exact bijective duality between inner and outer zones via circle inversion
  • Native support for three symmetry groups:
    • ℀₆ β€” rotational symmetry (order 6, 60Β° increments)
    • D₆ β€” dihedral symmetry (order 12, rotations + reflections)
    • 𝕋₂₄ β€” inversive hexagonal dihedral symmetry (order 24, D₆ extended by circle inversion)
  • Phase-pair directional encoding aligned with 60Β° angular sectors, serving as the unifying mechanism for radial separation and orientation
  • Path mirroring and symmetry-aware algorithms exploiting geometric structure

TQF enables novel approaches in:

  • Geometric deep learning and equivariant neural architectures
  • Signal processing (e.g., BPSK demodulation with hexagonal symmetry)
  • Graph algorithms on dual-zone lattices
  • Visual and algebraic understanding of complex-plane geometry, including streamlined directional mappings and computational efficiency gains (e.g., reduced conditional checks in quadrant-based transformations)

These properties originate from the topological and reflective dualities proven across circles of any radius, forming the theoretical foundation upon which subsequent TQF extensionsβ€”such as lattice graph implementations and symmetry-aware neural networksβ€”are constructed.

References: Preprints/Publications

Project-Specific Documentation

See individual project READMEs and documentation for additional info.


6. License

MIT License

Copyright (c) 2026 Nathan O. Schmidt, Cold Hammer Research & Development LLC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

See LICENSE file for complete license text.


7. Contributing

This is currently a personal research project, but feedback and suggestions are welcome:

  • Issues: Report bugs or suggest features via GitHub Issues
  • Discussions: Reach out via email for collaboration ideas or questions
  • Citations: If you use this work, please cite the relevant publications

All contributions must adhere to the MIT License and maintain the reproducibility standards established in the existing codebase.


QED

For tool-specific questions, please consult the relevant tool's documentation first.

Last Updated: February 24, 2026
Maintainer: Nathan O. Schmidt
Organization: Cold Hammer Research & Development LLC (https://coldhammer.net)

Please remember: this is an experimental after-hours unpaid hobby science project. :)

For issues, please open a GitHub issue or contact: nate.o.schmidt@coldhammer.net

EOF

About

A mathematical/computational framework that upgrades the complex numbers for working with unified 2D coordinates, inversive geometry, Eisenstein integers, radial dual triangular lattice graph (RDTLG), hexagonal symmetries, signal processing, equivariant encodings, and geometric deep learning.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages