Documentation

CslibFrontier.Computability.Communication.Forcing

Forcing outputs in a communication tree #

Ignore the original message functions and let each player choose a child at their own nodes. CanForce is backward induction for this finite perfect-information game. steer turns input-dependent winning goals for both players into an actual communication protocol of the same depth: each player's new messages depend only on that player's input.

This formalizes [CKMS26], Lemma 5.1 (printed p. 10; PDF p. 11), and the deterministic protocol construction in the proof of Lemma 5.2 (printed p. 11; PDF p. 12). Goals here are predicates on output labels; the paper uses predicates on leaf occurrences. labelLeaves supplies exactly these occurrence labels, reusing leaf and leafOutput. The large-rectangle probability bound and the main communication lower bounds are not proved here.

Main results #

def Cslib.Communication.Protocol.labelLeaves {X : Type u_1} {Y : Type u_2} {Z : Type u_3} (p : Protocol X Y Z) :

Run the original tree but report its leaf occurrence, numbered as in leaf.

@[simp]
theorem Cslib.Communication.Protocol.depth_labelLeaves {X : Type u_1} {Y : Type u_2} {Z : Type u_3} (p : Protocol X Y Z) :

Labeling occurrences preserves communication depth.

@[simp]
theorem Cslib.Communication.Protocol.run_labelLeaves {X : Type u_1} {Y : Type u_2} {Z : Type u_3} (p : Protocol X Y Z) (x : X) (y : Y) :
p.labelLeaves.run x y = p.leaf x y

The occurrence reported by the constructed protocol is the existing rectangle API's leaf.

theorem Cslib.Communication.Protocol.leafOutput_run_labelLeaves {X : Type u_1} {Y : Type u_2} {Z : Type u_3} (p : Protocol X Y Z) (x : X) (y : Y) :
p.leafOutput (p.labelLeaves.run x y) = p.run x y

Relabeling occurrences with their original output recovers the original execution.

def Cslib.Communication.Protocol.CanForce {X : Type u_1} {Y : Type u_2} {Z : Type u_3} (player : Bool) (goal : Z → Prop) :
Protocol X Y Z → Prop

Backward induction. true is Alice, false is Bob. At a player's own node, one winning child suffices; at the opponent's node both children must be winning.

theorem Cslib.Communication.Protocol.canForce_mono {X : Type u_1} {Y : Type u_2} {Z : Type u_3} (p : Protocol X Y Z) (player : Bool) {goal target : Z → Prop} (h : ∀ (z : Z), goal z → target z) :
CanForce player goal p → CanForce player target p

A player who can force a goal can force any weaker goal.

@[simp]
theorem Cslib.Communication.Protocol.canForce_map_iff {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {W : Type u_6} (p : Protocol X Y Z) (f : Z → W) (player : Bool) (goal : W → Prop) :
CanForce player goal (map f p) ↔ CanForce player (fun (z : Z) => goal (f z)) p

Relabeling outputs pulls back the target of the forcing game.

theorem Cslib.Communication.Protocol.canForce_leafAlice {X : Type u_1} {Y : Type u_2} {Z : Type u_3} (p : Protocol X Y Z) (x : X) :

Following her original messages lets Alice force a leaf consistent with her input, regardless of Bob's branch choices.

theorem Cslib.Communication.Protocol.canForce_leafBob {X : Type u_1} {Y : Type u_2} {Z : Type u_3} (p : Protocol X Y Z) (y : Y) :
CanForce false (fun (w : Fin p.leafCount) => y ∈ p.leafBob w) p.labelLeaves

Following his original messages lets Bob force a leaf consistent with his input.

theorem Cslib.Communication.Protocol.canForce_not_iff {X : Type u_1} {Y : Type u_2} {Z : Type u_3} (p : Protocol X Y Z) (player : Bool) (goal : Z → Prop) :
CanForce (!player) (fun (z : Z) => ¬goal z) p ↔ ¬CanForce player goal p

Finite perfect-information determinacy, including exclusion of simultaneous wins.

noncomputable def Cslib.Communication.Protocol.steer {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {A : Type u_4} {B : Type u_5} (p : Protocol X Y Z) (leftGoal : A → Z → Prop) (rightGoal : B → Z → Prop) :
Protocol A B Z

Replace message functions with winning-child choices. A player chooses the left child when that child is winning for their own goal, and the right child otherwise.

@[simp]
theorem Cslib.Communication.Protocol.depth_steer {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {A : Type u_4} {B : Type u_5} (p : Protocol X Y Z) (leftGoal : A → Z → Prop) (rightGoal : B → Z → Prop) :
(p.steer leftGoal rightGoal).depth = p.depth

No extra communication is needed to steer a tree.

theorem Cslib.Communication.Protocol.run_steer {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {A : Type u_4} {B : Type u_5} (p : Protocol X Y Z) (leftGoal : A → Z → Prop) (rightGoal : B → Z → Prop) (a : A) (b : B) (ha : CanForce true (leftGoal a) p) (hb : CanForce false (rightGoal b) p) :
leftGoal a ((p.steer leftGoal rightGoal).run a b) ∧ rightGoal b ((p.steer leftGoal rightGoal).run a b)

On inputs where each player can force their own goal, the actual run satisfies both.

theorem Cslib.Communication.Protocol.steer_solves {X : Type u_1} {Y : Type u_2} {Z : Type u_3} {A : Type u_4} {B : Type u_5} (p : Protocol X Y Z) (leftGoal : A → Z → Prop) (rightGoal : B → Z → Prop) (R : A → B → Z → Prop) (h : ∀ (a : A) (b : B) (z : Z), leftGoal a z → rightGoal b z → R a b z) :
(p.steer leftGoal rightGoal).Solves R {a : A | CanForce true (leftGoal a) p} {b : B | CanForce false (rightGoal b) p}

Compatible forcing goals define a rectangle solved without increasing depth.