Research and Papers
Collection
25+ LaTeX papers on mathematical foundations, AI agent architecture, cryptanalysis, entropy theorems, and tournament results. β’ 8 items β’ Updated
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
C++ multiplicity functor for the SnapKitty ecosystem. Rational exponentiation. Overflow detection. Integer nth root.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β MULTIPLICITY FUNCTOR β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Input β β
β β base: uint64 β β
β β exponent: Rational64 (p/q) β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β
β βΌ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Rational Reduction β β
β β gcd(p, q) β simplified p'/q' β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β
β ββββββββββββββββββΌβββββββββββββββββ β
β βΌ βΌ βΌ β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββββββ β
β β Integer Exp β β Nth Root β β Overflow Check β β
β β (q=1 case) β β (binary β β (bit width) β β
β β β β search) β β β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββββββ β
β β β β β
β ββββββββββββββββββΌβββββββββββββββββ β
β βΌ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Output β β
β β result: uint64 β β
β β overflow: bool β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Multiplicity(base, exponent) where exponent β Q
exponent = p/q (Rational64)
Cases:
q = 1: base^p (integer exponent)
q = 2: β(base^p) (square root)
q = 3: β(base^p) (cube root)
q = n: βΏβ(base^p) (nth root)
Negative exponent:
base^(-p/q) = 1 / (base^(p/q))
mkdir build && cd build
cmake ..
make -j$(nproc)
./multiplicity_test
#include "Multiplicity.h"
using namespace pirtm;
int main() {
// Integer exponent
Multiplicity m1(2, Rational64(3, 1));
auto r1 = m1.compute();
// r1.result = 8, r1.overflow = false
// Square root
Multiplicity m2(4, Rational64(1, 2));
auto r2 = m2.compute();
// r2.result = 2, r2.overflow = false
// Cube root
Multiplicity m3(27, Rational64(1, 3));
auto r3 = m3.compute();
// r3.result = 3, r3.overflow = false
// Negative exponent
Multiplicity m4(2, Rational64(-1, 1));
auto r4 = m4.compute();
// r4.result = 0, r4.overflow = false (integer division)
// Overflow detection
Multiplicity m5(UINT64_MAX, Rational64(2, 1));
auto r5 = m5.compute();
// r5.overflow = true
}
# Demo 1: Integer exponent
$ ./multiplicity 2 3/1
2^(3/1) = 8
# Demo 2: Square root
$ ./multiplicity 4 1/2
4^(1/2) = 2
# Demo 3: Cube root
$ ./multiplicity 27 1/3
27^(1/3) = 3
# Demo 4: Overflow detection
$ ./multiplicity 18446744073709551615 2/1
Overflow detected!
| Feature | Implementation |
|---|---|
| Rational Type | Rational64 { p: i64, q: i64 } with automatic reduction |
| GCD | Euclidean algorithm for rational reduction |
| Integer Exponent | Binary exponentiation (O(log n)) |
| Nth Root | Binary search with Newton refinement |
| Overflow Check | Bit width analysis before computation |
| Invariant | Description |
|---|---|
| Deterministic | Same input β same output |
| Overflow-Safe | All operations check for overflow |
| Canonical | Rationals are always in reduced form |
| No Recursion | All algorithms are iterative |
# Run all tests
./multiplicity_test
# Run with verbose output
./multiplicity_test --verbose
Sovereign Source License β see SOVEREIGN.md
SOVEREIGN-MULTIPLICITY-001
Base. Exponent. Reduce. Compute. Verify.
Same input. Same output.
No recursion. No borrowed thesis.
If you use this work, please cite:
@misc{snapkittywest2026sovereigncompute,
title = {SNAPKITTYWEST: Sovereign Compute Architecture with Linear Types, WORM Seals, and Goldilocks Field Arithmetic},
author = {SnapKitty Collective},
year = {2026},
doi = {10.5281/zenodo.21132094},
url = {https://doi.org/10.5281/zenodo.21132094}
}
Paper: https://doi.org/10.5281/zenodo.21132094 ORCID: https://orcid.org/0009-0006-1916-5245