(** Properties of [switch] compilation *)
Inductive lbl_stmt_tail: lbl_stmt -> nat -> lbl_stmt -> Prop :=
| lstail_O: forall sl,
lbl_stmt_tail sl O sl
| lstail_S: forall c s sl n sl',
lbl_stmt_tail sl n sl' ->
lbl_stmt_tail (LScons c s sl) (S n) sl'.

Lemma switch_table_select:
forall i sl,
lbl_stmt_tail sl
(switch_target i (snd (switch_table sl O)) (fst (switch_table sl O)))
(select_switch i sl).