Goal:
  
  A : Type
  B : Type
  C : Type
  P : nat → A → B → Type
  Q : B → C → Type
  R : nat → A → C → Type
  S : nat → A → C → Type
  n : nat
  c : All2i R n [] []
  H : ∀ (n : nat) (x : A) (y : B) (z : C),
        P n x y → Q y z → R n x z → S n x z
  ============================
   (All2i S n [] [])


DEBUG:Going to execute:
fun H =>
             match goal with
             | H':_ |- _ => match H' with
                            | H => idtac
                            end
             end