Goal:
  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  a : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  d0 : A
  d'0 : A
  Γ0 : list A
  Γ'0 : list A
  b : All2_fold P Γ0 Γ'0
  p0 : P Γ0 Γ'0 d0 d'0
  H : NoConfusion_All2_fold A P
        {|
          pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
          pr2 := All2_fold_cons P a p
        |}
        {|
          pr1 := {| pr1 := d0 :: Γ0; pr2 := d'0 :: Γ'0 |};
          pr2 := All2_fold_cons P b p0
        |}
  ============================
   (let H := CoreTactics.block in
    {|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P a p
    |} =
    {|
      pr1 := {| pr1 := d0 :: Γ0; pr2 := d'0 :: Γ'0 |};
      pr2 := All2_fold_cons P b p0
    |})


DEBUG:Going to execute:
intros _

Goals:
  
  A : Type
  P : list A → list A → A → A → Type
  H : NoConfusion_All2_fold A P
        {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
        {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
  ============================
   ({| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |} =
    {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  b : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  H : NoConfusion_All2_fold A P
        {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
        {|
          pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
          pr2 := All2_fold_cons P b p
        |}
  ============================
   ({| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |} =
    {|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P b p
    |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  a : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  H : NoConfusion_All2_fold A P
        {|
          pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
          pr2 := All2_fold_cons P a p
        |} {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
  ============================
   ({|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P a p
    |} = {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  a : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  d0 : A
  d'0 : A
  Γ0 : list A
  Γ'0 : list A
  b : All2_fold P Γ0 Γ'0
  p0 : P Γ0 Γ'0 d0 d'0
  H : NoConfusion_All2_fold A P
        {|
          pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
          pr2 := All2_fold_cons P a p
        |}
        {|
          pr1 := {| pr1 := d0 :: Γ0; pr2 := d'0 :: Γ'0 |};
          pr2 := All2_fold_cons P b p0
        |}
  ============================
   ({|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P a p
    |} =
    {|
      pr1 := {| pr1 := d0 :: Γ0; pr2 := d'0 :: Γ'0 |};
      pr2 := All2_fold_cons P b p0
    |})


DEBUG:Going to execute:
CoreTactics.unblock_goal

Goals:
  
  A : Type
  P : list A → list A → A → A → Type
  H : NoConfusion_All2_fold A P
        {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
        {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
  ============================
   ({| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |} =
    {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  b : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  H : NoConfusion_All2_fold A P
        {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
        {|
          pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
          pr2 := All2_fold_cons P b p
        |}
  ============================
   ({| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |} =
    {|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P b p
    |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  a : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  H : NoConfusion_All2_fold A P
        {|
          pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
          pr2 := All2_fold_cons P a p
        |} {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
  ============================
   ({|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P a p
    |} = {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  a : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  d0 : A
  d'0 : A
  Γ0 : list A
  Γ'0 : list A
  b : All2_fold P Γ0 Γ'0
  p0 : P Γ0 Γ'0 d0 d'0
  H : NoConfusion_All2_fold A P
        {|
          pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
          pr2 := All2_fold_cons P a p
        |}
        {|
          pr1 := {| pr1 := d0 :: Γ0; pr2 := d'0 :: Γ'0 |};
          pr2 := All2_fold_cons P b p0
        |}
  ============================
   ({|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P a p
    |} =
    {|
      pr1 := {| pr1 := d0 :: Γ0; pr2 := d'0 :: Γ'0 |};
      pr2 := All2_fold_cons P b p0
    |})


DEBUG:Going to execute:
unfold CoreTactics.block in *; cbv zeta

Goals:
  
  A : Type
  P : list A → list A → A → A → Type
  H : NoConfusion_All2_fold A P
        {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
        {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
  ============================
   ({| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |} =
    {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  b : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  H : NoConfusion_All2_fold A P
        {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
        {|
          pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
          pr2 := All2_fold_cons P b p
        |}
  ============================
   ({| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |} =
    {|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P b p
    |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  a : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  H : NoConfusion_All2_fold A P
        {|
          pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
          pr2 := All2_fold_cons P a p
        |} {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
  ============================
   ({|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P a p
    |} = {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  a : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  d0 : A
  d'0 : A
  Γ0 : list A
  Γ'0 : list A
  b : All2_fold P Γ0 Γ'0
  p0 : P Γ0 Γ'0 d0 d'0
  H : NoConfusion_All2_fold A P
        {|
          pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
          pr2 := All2_fold_cons P a p
        |}
        {|
          pr1 := {| pr1 := d0 :: Γ0; pr2 := d'0 :: Γ'0 |};
          pr2 := All2_fold_cons P b p0
        |}
  ============================
   ({|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P a p
    |} =
    {|
      pr1 := {| pr1 := d0 :: Γ0; pr2 := d'0 :: Γ'0 |};
      pr2 := All2_fold_cons P b p0
    |})


DEBUG:Going to execute:
unfold CoreTactics.block in *

Goals:
  
  A : Type
  P : list A → list A → A → A → Type
  H : NoConfusion_All2_fold A P
        {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
        {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
  ============================
   ({| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |} =
    {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  b : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  H : NoConfusion_All2_fold A P
        {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
        {|
          pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
          pr2 := All2_fold_cons P b p
        |}
  ============================
   ({| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |} =
    {|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P b p
    |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  a : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  H : NoConfusion_All2_fold A P
        {|
          pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
          pr2 := All2_fold_cons P a p
        |} {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
  ============================
   ({|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P a p
    |} = {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  a : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  d0 : A
  d'0 : A
  Γ0 : list A
  Γ'0 : list A
  b : All2_fold P Γ0 Γ'0
  p0 : P Γ0 Γ'0 d0 d'0
  H : NoConfusion_All2_fold A P
        {|
          pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
          pr2 := All2_fold_cons P a p
        |}
        {|
          pr1 := {| pr1 := d0 :: Γ0; pr2 := d'0 :: Γ'0 |};
          pr2 := All2_fold_cons P b p0
        |}
  ============================
   ({|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P a p
    |} =
    {|
      pr1 := {| pr1 := d0 :: Γ0; pr2 := d'0 :: Γ'0 |};
      pr2 := All2_fold_cons P b p0
    |})


DEBUG:Going to execute:
cbv zeta

Goals:
  
  A : Type
  P : list A → list A → A → A → Type
  H : NoConfusion_All2_fold A P
        {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
        {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
  ============================
   ({| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |} =
    {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  b : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  H : NoConfusion_All2_fold A P
        {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
        {|
          pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
          pr2 := All2_fold_cons P b p
        |}
  ============================
   ({| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |} =
    {|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P b p
    |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  a : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  H : NoConfusion_All2_fold A P
        {|
          pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
          pr2 := All2_fold_cons P a p
        |} {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |}
  ============================
   ({|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P a p
    |} = {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  a : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  d0 : A
  d'0 : A
  Γ0 : list A
  Γ'0 : list A
  b : All2_fold P Γ0 Γ'0
  p0 : P Γ0 Γ'0 d0 d'0
  H : NoConfusion_All2_fold A P
        {|
          pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
          pr2 := All2_fold_cons P a p
        |}
        {|
          pr1 := {| pr1 := d0 :: Γ0; pr2 := d'0 :: Γ'0 |};
          pr2 := All2_fold_cons P b p0
        |}
  ============================
   ({|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P a p
    |} =
    {|
      pr1 := {| pr1 := d0 :: Γ0; pr2 := d'0 :: Γ'0 |};
      pr2 := All2_fold_cons P b p0
    |})


DEBUG:Going to execute:
simpl in * |-

Goals:
    A : Type  P : list A → list A → A → A → Type  H : True
  ============================
   ({| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |} =
    {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  b : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  H : False
  ============================
   ({| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |} =
    {|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P b p
    |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  a : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  H : False
  ============================
   ({|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P a p
    |} = {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  a : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  d0 : A
  d'0 : A
  Γ0 : list A
  Γ'0 : list A
  b : All2_fold P Γ0 Γ'0
  p0 : P Γ0 Γ'0 d0 d'0
  H : {|
        pr1 := d;
        pr2 :=
          {|
            pr1 := d';
            pr2 :=
              {|
                pr1 := Γ;
                pr2 := {| pr1 := Γ'; pr2 := {| pr1 := a; pr2 := p |} |}
              |}
          |}
      |} =
      {|
        pr1 := d0;
        pr2 :=
          {|
            pr1 := d'0;
            pr2 :=
              {|
                pr1 := Γ0;
                pr2 := {| pr1 := Γ'0; pr2 := {| pr1 := b; pr2 := p0 |} |}
              |}
          |}
      |}
  ============================
   ({|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P a p
    |} =
    {|
      pr1 := {| pr1 := d0 :: Γ0; pr2 := d'0 :: Γ'0 |};
      pr2 := All2_fold_cons P b p0
    |})


DEBUG:Going to execute:
CoreTactics.on_last_hyp
            ltac:(fun id =>
                    hnf in id; CoreTactics.destruct_tele_eq id || destruct id)

Goals:
    A : Type  P : list A → list A → A → A → Type  H : True
  ============================
   ({| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |} =
    {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  b : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  H : False
  ============================
   ({| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |} =
    {|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P b p
    |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  a : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  H : False
  ============================
   ({|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P a p
    |} = {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  a : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  d0 : A
  d'0 : A
  Γ0 : list A
  Γ'0 : list A
  b : All2_fold P Γ0 Γ'0
  p0 : P Γ0 Γ'0 d0 d'0
  H : {|
        pr1 := d;
        pr2 :=
          {|
            pr1 := d';
            pr2 :=
              {|
                pr1 := Γ;
                pr2 := {| pr1 := Γ'; pr2 := {| pr1 := a; pr2 := p |} |}
              |}
          |}
      |} =
      {|
        pr1 := d0;
        pr2 :=
          {|
            pr1 := d'0;
            pr2 :=
              {|
                pr1 := Γ0;
                pr2 := {| pr1 := Γ'0; pr2 := {| pr1 := b; pr2 := p0 |} |}
              |}
          |}
      |}
  ============================
   ({|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P a p
    |} =
    {|
      pr1 := {| pr1 := d0 :: Γ0; pr2 := d'0 :: Γ'0 |};
      pr2 := All2_fold_cons P b p0
    |})


DEBUG:Going to execute:
fun tac => lazymatch goal with
                      | H:_ |- _ => tac H
                      end

Goals:
    A : Type  P : list A → list A → A → A → Type  H : True
  ============================
   ({| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |} =
    {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  b : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  H : False
  ============================
   ({| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |} =
    {|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P b p
    |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  a : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  H : False
  ============================
   ({|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P a p
    |} = {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  a : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  d0 : A
  d'0 : A
  Γ0 : list A
  Γ'0 : list A
  b : All2_fold P Γ0 Γ'0
  p0 : P Γ0 Γ'0 d0 d'0
  H : {|
        pr1 := d;
        pr2 :=
          {|
            pr1 := d';
            pr2 :=
              {|
                pr1 := Γ;
                pr2 := {| pr1 := Γ'; pr2 := {| pr1 := a; pr2 := p |} |}
              |}
          |}
      |} =
      {|
        pr1 := d0;
        pr2 :=
          {|
            pr1 := d'0;
            pr2 :=
              {|
                pr1 := Γ0;
                pr2 := {| pr1 := Γ'0; pr2 := {| pr1 := b; pr2 := p0 |} |}
              |}
          |}
      |}
  ============================
   ({|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P a p
    |} =
    {|
      pr1 := {| pr1 := d0 :: Γ0; pr2 := d'0 :: Γ'0 |};
      pr2 := All2_fold_cons P b p0
    |})


DEBUG:Going to execute:
fun id =>
             hnf in id; CoreTactics.destruct_tele_eq id || destruct id

Goals:
    A : Type  P : list A → list A → A → A → Type  H : True
  ============================
   ({| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |} =
    {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  b : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  H : False
  ============================
   ({| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |} =
    {|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P b p
    |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  a : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  H : False
  ============================
   ({|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P a p
    |} = {| pr1 := {| pr1 := []; pr2 := [] |}; pr2 := All2_fold_nil P |})

  
  A : Type
  P : list A → list A → A → A → Type
  d : A
  d' : A
  Γ : list A
  Γ' : list A
  a : All2_fold P Γ Γ'
  p : P Γ Γ' d d'
  d0 : A
  d'0 : A
  Γ0 : list A
  Γ'0 : list A
  b : All2_fold P Γ0 Γ'0
  p0 : P Γ0 Γ'0 d0 d'0
  H : {|
        pr1 := d;
        pr2 :=
          {|
            pr1 := d';
            pr2 :=
              {|
                pr1 := Γ;
                pr2 := {| pr1 := Γ'; pr2 := {| pr1 := a; pr2 := p |} |}
              |}
          |}
      |} =
      {|
        pr1 := d0;
        pr2 :=
          {|
            pr1 := d'0;
            pr2 :=
              {|
                pr1 := Γ0;
                pr2 := {| pr1 := Γ'0; pr2 := {| pr1 := b; pr2 := p0 |} |}
              |}
          |}
      |}
  ============================
   ({|
      pr1 := {| pr1 := d :: Γ; pr2 := d' :: Γ' |};
      pr2 := All2_fold_cons P a p
    |} =
    {|
      pr1 := {| pr1 := d0 :: Γ0; pr2 := d'0 :: Γ'0 |};
      pr2 := All2_fold_cons P b p0
    |})


DEBUG:Going to execute:
lazymatch goal with
           | H:_ |- _ => tac H
           end