Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Complexity.PolyTime.Nat.BinaryOrder

Minimum and maximum of computed binary naturals #

These plain rules fix both intermediate number encodings. They extract the local binary-order certificates used by Classes.IP.PSPACE, so other clients can reuse the same arithmetic. Automation registration stays local to clients that require it.

theorem Turing.MultiTapeTM.ComputableInPolyTime.binary_max' {α : Type} {input : α ↪ List Bool} {left right : α → ℕ} (hl : ComputableInPolyTime left input encNat) (hr : ComputableInPolyTime right input encNat) :
ComputableInPolyTime (fun (x : α) => max (left x) (right x)) input encNat

Maximum of two computed binary naturals.

theorem Turing.MultiTapeTM.ComputableInPolyTime.binary_min' {α : Type} {input : α ↪ List Bool} {left right : α → ℕ} (hl : ComputableInPolyTime left input encNat) (hr : ComputableInPolyTime right input encNat) :
ComputableInPolyTime (fun (x : α) => min (left x) (right x)) input encNat

Minimum of two computed binary naturals.