Documentation

Mathlib.NumberTheory.Primorial

Primorial #

This file defines the primorial function (the product of primes less than or equal to some bound), and proves that primorial n ≤ 4 ^ n.

Notation #

We use the local notation n# for the primorial of n: that is, the product of the primes less than or equal to n.

def primorial (n : ) :

The primorial n# of n is the product of the primes less than or equal to n.

Equations
Instances For
    @[simp]
    @[simp]
    @[simp]
    theorem primorial_pos (n : ) :
    theorem primorial_mono {m n : } (h : m n) :
    theorem primorial_succ {n : } (hn1 : n 1) (hn : Odd n) :
    theorem primorial_add (m n : ) :
    primorial (m + n) = primorial m * pFinset.Ico (m + 1) (m + n + 1) with Nat.Prime p, p
    theorem primorial_add_dvd {m n : } (h : n m) :
    primorial (m + n) primorial m * (m + n).choose m
    theorem primorial_add_le {m n : } (h : n m) :
    primorial (m + n) primorial m * (m + n).choose m
    theorem Nat.Prime.dvd_primorial_iff {p n : } (hp : Prime p) :
    theorem lt_primorial_self {n : } (hn : 2 < n) :
    theorem primorial_lt_four_pow (n : ) (hn : n 0) :
    primorial n < 4 ^ n
    @[deprecated primorial_le_four_pow (since := "2026-03-21")]
    theorem primorial_le_4_pow (n : ) :

    Alias of primorial_le_four_pow.