Goal:
  
  A : Type
  H : ReflectEq A
  l1 : list A
  l2 : list A
  l : list A
  packcall := {| pr1 := l1; pr2 := l2 |} : sigma (λ _ : list A, list A)
  packcall_fn := {|
                   pr1 := packcall;
                   pr2 := split_prefix (pr1 packcall) (pr2 packcall)
                 |}
              : sigma
                  (λ _ : sigma (λ _ : list A, list A),
                     (list A * list A * list A)%type)
  ============================
   (packcall = {| pr1 := l1; pr2 := l2 |}
    → split_prefix (pr1 packcall) (pr2 packcall) =
      split_prefix (pr1 {| pr1 := l1; pr2 := l2 |})
        (pr2 {| pr1 := l1; pr2 := l2 |})
      → let H := CoreTactics.block in
        is_prefix l l1
        → is_prefix l l2 → is_prefix l (fst (fst (split_prefix l1 l2))))


DEBUG:Going to execute:
let H := fresh "eqargs" in
           let Heq := fresh "Heqcall" in
           intros H Heq; try (rewrite <- Heq; clear Heq);
            CoreTactics.revert_until H; revert H; subst packcall_fn;
            clearbody packcall; make_packcall packcall elimfn;
            with_last_secvar ltac:(fun eos => move packcall before eos)
             ltac:(move packcall at top); CoreTactics.revert_until packcall;
            CoreTactics.block_goal; cbv zeta in packcall; revert packcall;
            curry;
            (let elimt := make_refine elimn elimc in
             unshelve refine_ho elimt; intros; cbv beta;
              DepElim.simplify_dep_elim; CoreTactics.intros_until_block;
              DepElim.simplify_dep_elim;
              cbn beta iota
               delta [Prop.Logic.transport Logic.eq_elim Logic.eq_elim_r
                     eq_rect DepElim.pack_sigma_eq
                     DepElim.pack_sigma_eq_nondep] 
               in *; DepElim.simplify_IH_hyps; CoreTactics.unblock_goal;
              DepElim.simplify_IH_hyps; tac c)