Documentation

CslibFrontier.Foundations.Relation.SubDiamond

Strong One-Step Sub-Diamond Reduction Relations #

This module defines the strong one-step sub-diamond property (SubDiamond) for abstract binary reduction relations r : α → α → Prop, asserting that any two distinct one-step successors of a common state are joinable in a single reduction step on each side (b = c ∨ ∃ d, r b d ∧ r c d).

Under SubDiamond r, we establish:

def Relation.SubDiamond {α : Type u_1} (r : α → α → Prop) :

Strong one-step sub-diamond property: any two one-step successors of a are either equal or joinable in a single r-step on each side.

theorem Relation.SubDiamond.step_normalizing {α : Type u_1} {r : α → α → Prop} (hd : SubDiamond r) {a b u : α} {m : ℕ} (hnorm : RelatesInSteps r a u m) (hu : Normal r u) (hab : r a b) :
1 ≤ m ∧ RelatesInSteps r b u (m - 1)

Under SubDiamond r, if a reaches a normal form u in m steps and r a b, then 1 ≤ m and b reaches u in m - 1 steps.

theorem Relation.SubDiamond.normalizing_eq_and_length_eq {α : Type u_1} {r : α → α → Prop} (hd : SubDiamond r) {a u₁ u₂ : α} {m n : ℕ} (hm : RelatesInSteps r a u₁ m) (hn : RelatesInSteps r a u₂ n) (hu₁ : Normal r u₁) (hu₂ : Normal r u₂) :
u₁ = u₂ ∧ m = n

Under SubDiamond r, any two normalizing derivations from a reach the exact same normal form in the exact same number of steps.

theorem Relation.SubDiamond.le_and_suffix_of_normalizing {α : Type u_1} {r : α → α → Prop} (hd : SubDiamond r) {a b u : α} {k m : ℕ} (hk : RelatesInSteps r a b k) (hm : RelatesInSteps r a u m) (hu : Normal r u) :
k ≤ m ∧ RelatesInSteps r b u (m - k)

Under SubDiamond r, every k-step derivation a →^k b from a state a that normalizes to u in m steps satisfies k ≤ m and extends to b →^{m - k} u.

theorem Relation.SubDiamond.sn_of_normalizing {α : Type u_1} {r : α → α → Prop} (hd : SubDiamond r) {a u : α} {m : ℕ} (hm : RelatesInSteps r a u m) (hu : Normal r u) :
SN r a

Under SubDiamond r, every state admitting a normalizing derivation is strongly normalizing.

theorem Relation.SubDiamond.stronglyConfluent {α : Type u_1} {r : α → α → Prop} (hd : SubDiamond r) :

Every SubDiamond relation is strongly confluent (StronglyConfluent).

theorem Relation.SubDiamond.confluent {α : Type u_1} {r : α → α → Prop} (hd : SubDiamond r) :

Every SubDiamond relation is confluent.