For 𝐽𝑅𝑋 =(𝑋 →𝑅) →𝑋, the applied binary product is 𝑏𝑞(𝑥)=𝛿(𝜆𝑦.𝑞(𝑥,𝑦)),𝑎𝑞=𝜀(𝜆𝑥.𝑞(𝑥,𝑏𝑞(𝑥))),(𝜀⊗𝛿)(𝑞)=(𝑎𝑞,𝑏𝑞(𝑎𝑞)). The simple explicitly controlled product has the complete equations 𝖾𝗉𝗌,𝑙𝑛(𝜀)(𝑞)={𝟎,𝑙(𝑞(𝟎))<𝑛,𝑐∗𝖾𝗉𝗌,𝑙𝑛+1(𝜀)(𝑞𝑐),𝑙(𝑞(𝟎))≥𝑛, 𝑐=𝜀𝑛(𝜆𝑥.𝑞(𝑥∗𝖾𝗉𝗌,𝑙𝑛+1(𝜀)(𝑞𝑥))),𝑞𝑥(𝛽)=𝑞(𝑥∗𝛽). For history-sensitive selectors, replace 𝑛 by the history 𝑠, use the test 𝑙(𝑞(𝟎)) <|𝑠|, and recurse at 𝑠 ∗𝑐; these are the dependent EPS equations.
Two stream operations must remain distinct. Shifting prefix concatenation is (𝑠∗𝛽)(𝑖)={𝑠(𝑖),𝑖<|𝑠|,𝛽(𝑖−|𝑠|),𝑖≥|𝑠|, whereas prefix-preserving overwrite is 𝗉𝗎𝗍(𝑠,𝛽)(𝑖)={𝑠(𝑖),𝑖<|𝑠|,𝛽(𝑖),𝑖≥|𝑠|, restricted Spector recursion is 𝖲𝖡𝖱𝜔𝑠(𝛿)={𝗉𝗎𝗍(𝑠,𝟎),𝜔(𝗉𝗎𝗍(𝑠,𝟎))<|𝑠|,𝗉𝗎𝗍(𝑠,𝖲𝖡𝖱𝜔𝑠∗𝑐(𝛿)),𝜔(𝗉𝗎𝗍(𝑠,𝟎))≥|𝑠|, 𝑐=𝛿𝑠(𝜆𝑥.𝖲𝖡𝖱𝜔𝑠∗𝑥(𝛿)),𝛿𝑠:(𝑋→𝑋ℕ)→𝑋. The totality theorem assumes the decidable bar-induction principle ∀𝛼∃𝑛.𝐷([𝛼](𝑛))∀𝑠.(𝐷(𝑠)∨¬𝐷(𝑠)),∀𝑠.(𝐷(𝑠)→𝑄(𝑠))∀𝑠.((∀𝑥.𝑄(𝑠∗𝑥))→𝑄(𝑠))𝑄([]). Call this principle BIdec. It is distinct from the relativized scheme BIrel used in the sourced reverse comparison. For the SBR proof, 𝐷(𝑠) is 𝜔(𝗉𝗎𝗍(𝑠,𝟎)) <|𝑠|, and 𝑄(𝑠) states totality of the recursive call.