Derivation Height and Worst-Case Complexity of Reduction Relations #
This module extends Cslib.Foundations.Relation.RelatesInSteps and
Cslib.Foundations.Relation.Termination with ℕ∞-valued derivation height and size-indexed
worst-case complexity functions for abstract binary reduction relations r : α → α → Prop,
including the dynamic-programming Bellman equation, König's lemma for finitely branching
strongly normalizing relations, and quantitative upper bounds from ℕ-valued step measures.
Main definitions #
Relation.derivationHeight: supremum inℕ∞ofn : ℕsuch that∃ b, Relation.RelatesInSteps r a b n.Relation.complexity: supremum inℕ∞ofderivationHeight r sovers ∈ Twithsize s ≤ n.
Main results #
Relation.exists_relatesInSteps_of_derivationHeight_eq_coe: every finite derivation height(m : ℕ∞)is attained by an explicitm-step walk.Relation.derivationHeight_eq_zero_iff:derivationHeight r a = 0 ↔ Relation.Normal r a.Relation.derivationHeight_eq_iSup_succ: Bellman equationderivationHeight r a = ⨆ b ∈ Relation.successors r a, (derivationHeight r b + 1).Relation.derivationHeight_lt_top_iff_sn: König's lemma for finitely branching reduction relations (derivationHeight r a < ⊤ ↔ Relation.SN r a).Relation.derivationHeight_le_of_step_measureandRelation.complexity_le_of_step_measure: quantitative step-measure bounds.
The derivation height of a : α with respect to a reduction relation r : α → α → Prop,
valued in ℕ∞: the supremum of all step counts n : ℕ for which there exists b : α with
_root_.Relation.RelatesInSteps r a b n.
Any n-step walk from a to b witnesses (n : ℕ∞) ≤ derivationHeight r a.
Upper-bound characterization of derivationHeight.
Every finite value (m : ℕ∞) of derivationHeight r a is attained by an explicit m-step
reduction sequence starting at a.
If a is a normal form of r, then derivationHeight r a = 0.
derivationHeight r a = 0 if and only if a is a normal form of r.
A single reduction step r a b satisfies derivationHeight r b + 1 ≤ derivationHeight r a.
Dynamic-programming recurrence for derivationHeight.
König's lemma (forward direction) for finitely branching relations.
Finite derivation height implies strong normalization.
König's lemma for finitely branching reduction relations:
derivationHeight r a < ⊤ ↔ Relation.SN r a.
Quantitative step-measure bound on derivationHeight.
Upper-bound characterization of complexity.
Quantitative ℕ upper bound on complexity from a strictly decreasing reachable step
measure Φ : α → ℕ.