TauLib · API Book I

TauLib.BookI.Coordinates.ChebyshevBias

TauLib.Coordinates.ChebyshevBias

Chebyshev bias (prime races) on the primorial tower: primes in arithmetic progressions, race tracking, and bias quantification.

Registry Cross-References

  • [I.D97] Prime Counting in Progressions — prime_count_mod, prime_race_check

  • [I.D98] Chebyshev Bias Measure — chebyshev_bias, bias_quantification_check

  • [I.T50] Bias at Primorial Levels — bias_primorial_check

Mathematical Content

I.D97 (Prime Counting in Progressions): π(x; q, a) counts primes p ≤ x with p ≡ a (mod q). For q = 4: π(x;4,3) typically exceeds π(x;4,1) (Chebyshev’s observation). For q = 3: π(x;3,2) typically exceeds π(x;3,1). These biases reflect the quadratic residue structure.

I.D98 (Chebyshev Bias Measure): The bias B(x; q, a₁, a₂) counts how often π(n; q, a₁) > π(n; q, a₂) for n ≤ x. The bias ratio B/x → δ ∈ (0.5, 1) quantifies the strength of the race advantage.

I.T50 (Bias at Primorial Levels): At each primorial level M_k, the Chebyshev bias for (q=4, a=3 vs a=1) is positive. The bias connects to the B/C sector asymmetry in the spectral decomposition: non-residues (3 mod 4) bias reflects the C-sector dominance at small primorial levels.


Tau.Coordinates.prime_count_mod

source def Tau.Coordinates.prime_count_mod (x q a : Nat) :Nat

[I.D97] Count primes p ≤ x with p ≡ a (mod q). Equations

  • Tau.Coordinates.prime_count_mod x q a = if (q == 0) = true then 0 else Tau.Coordinates.prime_count_mod.go x q a 2 0 (x + 1) Instances For

Tau.Coordinates.prime_count_mod.go

source@[irreducible]

def Tau.Coordinates.prime_count_mod.go (x q a p acc fuel : Nat) :Nat

Equations

  • One or more equations did not get rendered due to their size. Instances For

Tau.Coordinates.prime_race_check

source def Tau.Coordinates.prime_race_check (bound q a1 a2 : Nat) :Bool

[I.D97] Prime race: compare π(x; q, a₁) vs π(x; q, a₂). Equations

  • Tau.Coordinates.prime_race_check bound q a1 a2 = Tau.Coordinates.prime_race_check.go bound q a1 a2 2 (bound + 1) Instances For

Tau.Coordinates.prime_race_check.go

source@[irreducible]

def Tau.Coordinates.prime_race_check.go (bound q a1 a2 x fuel : Nat) :Bool

Equations

  • One or more equations did not get rendered due to their size. Instances For

Tau.Coordinates.chebyshev_bias

source def Tau.Coordinates.chebyshev_bias (x q a1 a2 : Nat) :Nat

[I.D98] Chebyshev bias: count how often π(n;q,a₁) > π(n;q,a₂) for n from 2 to x. Returns the count of “winning” values. Equations

  • Tau.Coordinates.chebyshev_bias x q a1 a2 = if (q == 0) = true then 0 else Tau.Coordinates.chebyshev_bias.go x 2 0 (x + 1) q a1 a2 Instances For

Tau.Coordinates.chebyshev_bias.go

source@[irreducible]

def Tau.Coordinates.chebyshev_bias.go (x n acc fuel q a1 a2 : Nat) :Nat

Equations

  • One or more equations did not get rendered due to their size. Instances For

Tau.Coordinates.bias_quantification_check

source def Tau.Coordinates.bias_quantification_check (bound : Nat) :Bool

[I.D98] Bias quantification: the bias for (q=4, a=3 vs a=1) is positive up to x. That is, π(n;4,3) > π(n;4,1) more often than not. Equations

  • Tau.Coordinates.bias_quantification_check bound = decide (Tau.Coordinates.chebyshev_bias bound 4 3 1 > Tau.Coordinates.chebyshev_bias bound 4 1 3) Instances For

Tau.Coordinates.bias_mod3_check

source def Tau.Coordinates.bias_mod3_check (bound : Nat) :Bool

[I.D98] Bias for q=3: π(x;3,2) vs π(x;3,1). Equations

  • Tau.Coordinates.bias_mod3_check bound = decide (Tau.Coordinates.chebyshev_bias bound 3 2 1 ≥ Tau.Coordinates.chebyshev_bias bound 3 1 2) Instances For

Tau.Coordinates.bias_primorial_check

source def Tau.Coordinates.bias_primorial_check (db : Nat) :Bool

[I.T50] Bias at primorial levels: at each M_k (capped at 50), the Chebyshev bias (q=4, 3 vs 1) is positive. Equations

  • Tau.Coordinates.bias_primorial_check db = Tau.Coordinates.bias_primorial_check.go db 2 (db + 1) Instances For

Tau.Coordinates.bias_primorial_check.go

source@[irreducible]

def Tau.Coordinates.bias_primorial_check.go (db k fuel : Nat) :Bool

Equations

  • One or more equations did not get rendered due to their size. Instances For

Tau.Coordinates.bias_primorial_check.go_primorial

source def Tau.Coordinates.bias_primorial_check.go_primorial (k : Nat) :Nat

Equations

  • Tau.Coordinates.bias_primorial_check.go_primorial k = Tau.Coordinates.bias_primorial_check.go_p 1 k 1 (k + 1) Instances For

Tau.Coordinates.bias_primorial_check.go_p

source@[irreducible]

def Tau.Coordinates.bias_primorial_check.go_p (i bound acc fuel : Nat) :Nat

Equations

  • One or more equations did not get rendered due to their size. Instances For

Tau.Coordinates.bias_primorial_check.go_nth_prime

source def Tau.Coordinates.bias_primorial_check.go_nth_prime (k : Nat) :Nat

Equations

  • Tau.Coordinates.bias_primorial_check.go_nth_prime k = Tau.Coordinates.bias_primorial_check.go_np 2 k (100 * (k + 1)) Instances For

Tau.Coordinates.bias_primorial_check.go_np

source@[irreducible]

def Tau.Coordinates.bias_primorial_check.go_np (n count fuel : Nat) :Nat

Equations

  • One or more equations did not get rendered due to their size. Instances For

Tau.Coordinates.prime_race_4_50

source theorem Tau.Coordinates.prime_race_4_50 :prime_race_check 50 4 3 1 = true

[I.D97] Prime race (q=4) is well-defined up to 50.


Tau.Coordinates.bias_positive_50

source theorem Tau.Coordinates.bias_positive_50 :bias_quantification_check 50 = true

[I.D98] Chebyshev bias (q=4, 3 vs 1) is positive up to 50.


Tau.Coordinates.bias_mod3_50

source theorem Tau.Coordinates.bias_mod3_50 :bias_mod3_check 50 = true

[I.D98] Bias mod 3 check up to 50.


Tau.Coordinates.bias_primorial_3

source theorem Tau.Coordinates.bias_primorial_3 :bias_primorial_check 3 = true

[I.T50] Bias at primorial levels up to depth 3.