Experiments

Computational investigations and results

Latest Experiments (2025-12-06)

Experiment 062: p-Adic vs L2 Base Sweep

Experiment 048: Two-Regime Classifier

Experiment 035: 4D Base-Density Resample

Experiment 034: 4D Density Probe

Experiment 025: Base-Factor Curve

Experiment 021: Prime-Weighted Excess Scaling

Experiment 020: Prime Sensitivity of Inversions

Experiment 018 (rerun): Base Sensitivity of Inversions

Experiment 019: 1D Non-Monotonicity Audit

Experiment 001: Regularisation Thresholds in 1D

Date: 2025-12-01

Status: Completed

Objective

Understand how the number of exactly-fitted points changes with regularisation strength in 1-dimensional p-adic linear regression.

Method

Results

λ Intercept Slope Exact Fits Data Loss
0.0000.02.022.00
0.0011.01.022.00
0.1001.01.022.00
0.5003.00.012.25
1.0003.00.012.25
10.003.00.012.25

Threshold Detection

For dataset {(0,1), (1,2), (2,4), (4,5)}:

Threshold between λ=1.2 and λ=1.3:
  3 exact fits → 1 exact fit
            

Conclusions

Experiment 002: Monotonicity and Threshold Analysis

Date: 2025-12-02

Status: Completed

Objective

Test whether k(λ) is monotonically non-increasing and derive analytical formula for threshold values.

Results

Conclusions

H6 (monotonicity) is strongly supported. Threshold locations can be computed analytically from data loss and coefficient values of competing solutions.

Experiment 003: 2D Regression (Fitting Planes)

Date: 2025-12-02

Status: Completed

Objective

Test whether n+1 theorem and monotonicity generalize to 2D regression (fitting planes z = a + bx₁ + cx₂ to 3D points).

Results

Metric 1D (Lines) 2D (Planes)
n+1 theorem at λ=0ValidatedValidated (k(0) ≥ 3)
Monotonicity30/3015/15
Typical thresholds11-2

Example

Dataset: 5 points in 3D
λ=0.00: z = 1 + 0.5x₁ + 1.5x₂ fits 4 points
λ=0.50: z = 2 + x₁ fits 3 points
λ=2.00: z = 5 fits 1 point
            

Conclusions

H8 (higher-dimensional generalization) is validated. The theory extends naturally from 1D to 2D.

Experiment 004: Prime Dependence

Date: 2025-12-02

Status: Completed

Objective

Investigate how the choice of prime p affects threshold structure.

Results

Prime p k(0) Number of Thresholds Threshold Locations
231λ ≈ 1.25
332λ ≈ 0.45, 3.95
532λ ≈ 1.35, 3.95
732λ ≈ 1.35, 3.95

Conclusions

The optimization landscape is prime-dependent. Different primes can lead to different numbers of thresholds and different phase transition points.

Experiment 005: Alternative Base Values (r-sweep)

Date: 2025-12-02

Status: Completed

Objective

Test r-v(t) for r ∈ {1.02, 1.05, 1.1, 1.5, 2, 3, 5, 10} to understand interpolation between binary (r→1) and minimax (r→∞) behavior.

Results

Experiment 006: Exact Threshold Solver

Date: 2025-12-02

Status: Completed

Objective

Compute thresholds analytically (no λ sweep) by intersecting loss lines.

Results

Experiment 007: Asymptotic Threshold Formula (MAJOR)

Date: 2025-12-02 (Evening)

Status: Completed

Objective

Derive and validate exact closed-form formula for threshold dependence on r.

Results

Examples

canonical_threshold: λ* = 1 + 1/r²
  r=2 → 1.25, r=5 → 1.04, r=10 → 1.01 (all exact)

gentle_line: λ* = 1 + 1/r
  r=2 → 1.5, r=5 → 1.2, r=10 → 1.1 (all exact)
            

Conclusions

Major finding: Threshold behavior is entirely determined by p-adic valuations of residuals. The formula is exact, not an approximation.

Planned Experiments

Experiment 008: 2D Exact Threshold Solver

Extend the exact solver to 2D (planes) to test formula generalization.

Experiment 009: p-Adic Regularisation

Systematic comparison of p-adic |β|p vs real L2 regularisation.

Experiment 010: Higher Dimensions (n=3,4,5)

Test n+1 theorem and monotonicity in n=3,4,5 dimensions.

Code Repository

All experiment code is available in the experiments/ directory:

Core library: src/padic.py - p-adic arithmetic, regression, and 2D fitting