Prime chains #
These are sequences of primes where the next prime is at least twice the last.
primeChain s is the lexicographically earliest sequence of primes
with primeChain s 0 > s and each succeeding element more than twice the last.
Equations
- primeChain s 0 = Nat.find ⋯
- primeChain s n.succ = Nat.find ⋯
Instances For
theorem
chainTup_induction_compl
{n : ℕ}
:
{Fin.natAdd n 0, Fin.natAdd n 2}ᶜ = insert (Fin.natAdd n 1) (Finset.map (Fin.castAddEmb 3) Finset.univ)
theorem
isSubsumBlock_chainTup
{n m s : ℕ}
(h : m ≤ s)
:
IsSubsumBlock (chainTup (n + 1) m s) {Fin.natAdd n 0, Fin.natAdd n 2}
theorem
tupReduce_chainTup
{n m s : ℕ}
{c : n + 1 = n + 1 + 2 - {Fin.natAdd n 0, Fin.natAdd n 2}.card}
: