Polynomial-time transfer for greedy pessimistic-estimator and multi-choice derandomization #
PolyTimeGreedyInput packages an input-parameterized instance of
Cslib.PessimisticEstimator.greedy (round list, initial state, binary branch transition, and
pessimistic estimator / conditional expectation) and proves plain multi-tape polynomial-time
computability (Turing.MultiTapeTM.ComputableInPolyTime) whenever:
rounds,init,branch,estimate, and the order comparison(· ≤ ·)onMareComputableInPolyTime; and- taking either branch on any round
r ∈ rounds xgrows the encoded state by at most a polynomially bounded additive budgetgrowth x.
run_polyTime_spec and run_polyTime_spec_of_add_le pair this plain complexity certificate with
the invariant and deterministic objective bound estimate x (run x) ≤ estimate x (init x) from
Cslib.PessimisticEstimator.greedy_spec.
PolyTimeChoiceGreedyInput generalizes the transfer from binary choices to arbitrary finite
per-round candidate lists choices : I → R → List A (such as finite-product coordinate fixing in
Cslib.Algorithms.Lean.PessimisticEstimator.ProductDerandomizer), certifying
ComputableInPolyTime via ComputableInPolyTime.foldlWith and foldlWithInput_of_bounded_growth.
Main definitions #
Cslib.Computability.PolyTimeGreedyInput: input-parameterized binary greedy / pessimistic-estimator specification.Cslib.Computability.PolyTimeGreedyInput.encBranchInput: tuple encoding for binary branch transitions.Cslib.Computability.PolyTimeGreedyInput.run: executeCslib.PessimisticEstimator.greedyon an inputx.Cslib.Computability.PolyTimeChoiceGreedyInput: input-parameterized multi-choice greedy / conditional-expectation specification.Cslib.Computability.PolyTimeChoiceGreedyInput.encChoiceInput: tuple encoding for candidate branch transitions.Cslib.Computability.PolyTimeChoiceGreedyInput.scanStep,Cslib.Computability.PolyTimeChoiceGreedyInput.stepRound,Cslib.Computability.PolyTimeChoiceGreedyInput.run: execute multi-choice greedy rounds on an inputx.
Main results #
Cslib.Computability.PolyTimeGreedyInput.computableInPolyTime_run: plain polynomial-time transfer for general order encodingsencM.Cslib.Computability.PolyTimeGreedyInput.computableInPolyTime_run_nat: specialization to binary natural-number estimators (encNat).Cslib.Computability.PolyTimeGreedyInput.run_polyTime_spec,Cslib.Computability.PolyTimeGreedyInput.run_polyTime_spec_of_add_le: combined polynomial-time and pessimistic-estimator correctness specifications.Cslib.Computability.PolyTimeChoiceGreedyInput.computableInPolyTime_run,Cslib.Computability.PolyTimeChoiceGreedyInput.computableInPolyTime_run_nat: plain polynomial-time transfer for multi-choice candidate scanning.Cslib.Computability.PolyTimeChoiceGreedyInput.run_spec,Cslib.Computability.PolyTimeChoiceGreedyInput.run_polyTime_spec: minimizing invariant and objective guarantee (G.estimate x (G.run x) ≤ G.estimate x (G.init x)), pure and paired withComputableInPolyTime.
Input-parameterized greedy binary-choice derandomization bundle.
- rounds : I → List R
Ordered list of decision rounds extracted from input
x. - init : I → S
Initial state constructed from input
x. - branch : I → R → Bool → S → S
Branch transition for input
x, roundr, choiceb, and states. - estimate : I → S → M
Pessimistic-estimator / conditional-expectation value on state
sunder inputx.
Run Cslib.PessimisticEstimator.greedy on input x.
Plain ComputableInPolyTime transfer for G.run when rounds, init, branch, estimate,
and (· ≤ ·) are polynomial-time and each round increases (encS s).length by at most a
polynomially bounded growth x.
Specialization of computableInPolyTime_run to ℕ-valued estimators encoded in binary
(encNat).
Pairs the plain ComputableInPolyTime certificate for G.run with the terminal invariant and
deterministic bound G.estimate x (G.run x) ≤ G.estimate x (G.init x).
Averaging form of run_polyTime_spec when the two branch estimates sum to at most twice the
current estimate.
Input-parameterized multi-choice greedy / conditional-expectation derandomization bundle:
at each round r ∈ rounds x, evaluates estimate x (branch x r a s) across a ∈ choices x r
and selects a minimizing choice.
- rounds : I → List R
Ordered list of decision rounds extracted from input
x. - choices : I → R → List A
Candidate domain choices tested at round
ron inputx. - init : I → S
Initial state constructed from input
x. - branch : I → R → A → S → S
State transition for input
x, roundr, candidatea, and states. - estimate : I → S → M
Pessimistic-estimator / conditional-expectation value on state
sunder inputx.
Left-associated pair encoding (((I × S) × R) × A) for candidate branch transitions: encodes
(((input, state), round), choice) as
frame (frame (frame (encI input) ++ encS state) ++ encR round) ++ encA choice, framing each
nested left component with Turing.MultiTapeTM.frame followed by the unframed encA choice.
Fold step updating the best (candidate, estimate) pair seen so far at round r.
Execute one multi-choice round r on state s (leaving s unchanged if G.choices x r is
empty).
Execute all rounds in G.rounds x sequentially starting from G.init x.
Plain ComputableInPolyTime transfer for G.run when rounds, choices, init, branch,
estimate, and (· ≤ ·) are polynomial-time and taking any candidate a ∈ G.choices x r on any
round r ∈ G.rounds x increases (encS s).length by at most a polynomially bounded growth x.
Specialization of computableInPolyTime_run to ℕ-valued estimators encoded in binary
(encNat).
Minimizing correctness specification for G.run: if Inv holds initially, is preserved by
taking any candidate a ∈ G.choices x r, and each round admits at least one candidate in
G.choices x r not increasing G.estimate x, then G.run x satisfies Inv x [] and
G.estimate x (G.run x) ≤ G.estimate x (G.init x).
Pairs the plain ComputableInPolyTime certificate for G.run with the terminal invariant and
minimizing bound G.estimate x (G.run x) ≤ G.estimate x (G.init x) from run_spec.