Documentation

LeanPool.Redhill.Common.PrimeChain

Prime chains #

These are sequences of primes where the next prime is at least twice the last.

def primeChain (s : ) :

primeChain s is the lexicographically earliest sequence of primes with primeChain s 0 > s and each succeeding element more than twice the last.

Equations
Instances For
    theorem primeChain_succ_gt {s n : } :
    2 * primeChain s n < primeChain s (n + 1)
    theorem primeChain_gt {s n : } :
    def chainTup (n m s : ) (i : Fin (n + 2)) :

    An (n + 2)-tuple that satisfies the strong subsum condition if 0 < m ≤ s.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem chainTup_zero {m s : } :
      chainTup 0 m s = fun (x : Fin (0 + 2)) => match x with | 0 => m | 1 => -m
      theorem add_sum_lt_primeChain {n m s : } (h : m s) :
      m + iFinset.range n, primeChain s i < primeChain s n
      theorem isSubsumBlock_chainTup {n m s : } (h : m s) :
      theorem tupReduce_chainTup {n m s : } {c : n + 1 = n + 1 + 2 - {Fin.natAdd n 0, Fin.natAdd n 2}.card} :
      tupReduce (chainTup (n + 1) m s) {Fin.natAdd n 0, Fin.natAdd n 2} c = chainTup n m s
      theorem strongSSC_chainTup {n m s : } (hm : 0 < m) (hs : m s) :