nchange with (match ne_nil T x2 with [ ne_cons _ _ ⇒ False | ne_nil a ⇒ x1 = a ]);
nrewrite < H;
nnormalize;
- napply (refl_eq ??).
+ napply refl_eq.
nqed.
nlemma nelist_destruct_cons_cons_1 : ∀T.∀x1,x2:T.∀y1,y2:ne_list T.ne_cons T x1 y1 = ne_cons T x2 y2 → x1 = x2.
nchange with (match ne_cons T x2 y2 with [ ne_nil _ ⇒ False | ne_cons a _ ⇒ x1 = a ]);
nrewrite < H;
nnormalize;
- napply (refl_eq ??).
+ napply refl_eq.
nqed.
nlemma nelist_destruct_cons_cons_2 : ∀T.∀x1,x2:T.∀y1,y2:ne_list T.ne_cons T x1 y1 = ne_cons T x2 y2 → y1 = y2.
nchange with (match ne_cons T x2 y2 with [ ne_nil _ ⇒ False | ne_cons _ b ⇒ y1 = b ]);
nrewrite < H;
nnormalize;
- napply (refl_eq ??).
+ napply refl_eq.
nqed.
nlemma nelist_destruct_cons_nil : ∀T.∀x1,x2:T.∀y1:ne_list T.ne_cons T x1 y1 = ne_nil T x2 → False.
#T; #l1;
nelim l1;
##[ ##1: #l2; ncases l2; nnormalize;
- ##[ ##1: #H; napply (refl_eq ??)
+ ##[ ##1: #H; napply refl_eq
##| ##2: #h; #t; #H; nelim (nat_destruct_0_S ? H)
##]
##| ##2: #h; #l2; ncases l2; nnormalize;
- ##[ ##1: #H; #l; #H1; nrewrite < H1; napply (refl_eq ??)
- ##| ##2: #h; #l; #H; #l3; #H1; nrewrite < H1; napply (refl_eq ??)
+ ##[ ##1: #H; #l; #H1; nrewrite < H1; napply refl_eq
+ ##| ##2: #h; #l; #H; #l3; #H1; nrewrite < H1; napply refl_eq
##]
##]
nqed.
#T1; #T2; #f; #acc; #l1;
nelim l1;
##[ ##1: #l2; ncases l2;
- ##[ ##1: nnormalize; #H1; #H2; #H3; napply (refl_eq ??)
+ ##[ ##1: nnormalize; #H1; #H2; #H3; napply refl_eq
##| ##2: #h; #l; #H1; #H2; #H3;
nchange in H1:(%) with (O = (S (len_list ? l)));
nelim (nat_destruct_0_S ? H1)
(f h4 h3 (fold_right_list2 T1 T2 f acc l4 l3 (fold_right_list2_aux3 T1 h4 h3 l4 l3 ?))));
nrewrite < (H l4 (fold_right_list2_aux3 T1 h3 h4 l3 l4 H1) (fold_right_list2_aux3 T1 h4 h3 l4 l3 H2) H3);
nrewrite > (H3 h3 h4 (fold_right_list2 T1 T2 f acc l3 l4 ?));
- napply (refl_eq ??)
+ napply refl_eq
##]
##]
nqed.
fold_right_list2 T1 T2 f acc l1 l2 H = fold_right_list2 T1 T2 f acc l2 l1 (symmetric_eqlenlist T1 l1 l2 H).
#T1; #T2; #f; #acc; #l1; #l2; #H; #H1;
nrewrite > (symmetric_foldrightlist2_aux T1 T2 f acc l1 l2 H (symmetric_eqlenlist T1 l1 l2 H) H1);
- napply (refl_eq ??).
+ napply refl_eq.
nqed.
nlemma symmetric_bfoldrightlist2
#T; #f; #l1;
nelim l1;
##[ ##1: #l2; ncases l2;
- ##[ ##1: #H; nnormalize; napply (refl_eq ??)
- ##| ##2: #hh2; #ll2; #H; nnormalize; napply (refl_eq ??)
+ ##[ ##1: #H; nnormalize; napply refl_eq
+ ##| ##2: #hh2; #ll2; #H; nnormalize; napply refl_eq
##]
##| ##2: #hh1; #ll1; #H; #l2; ncases l2;
- ##[ ##1: #H1; nnormalize; napply (refl_eq ??)
+ ##[ ##1: #H1; nnormalize; napply refl_eq
##| ##2: #hh2; #ll2; #H1; nnormalize;
nrewrite > (H ll2 H1);
nrewrite > (H1 hh1 hh2);
- napply (refl_eq ??)
+ napply refl_eq
##]
##]
nqed.
#T; #f; #l1;
nelim l1;
##[ ##1: #l2; ncases l2;
- ##[ ##1: #H; #H1; napply (refl_eq ??)
- ##| ##2: #hh2; #ll2; #H; nnormalize; #H1; napply (bool_destruct ??? H1)
+ ##[ ##1: #H; #H1; napply refl_eq
+ ##| ##2: #hh2; #ll2; #H; nnormalize; #H1; napply (bool_destruct … H1)
##]
##| ##2: #hh1; #ll1; #H; #l2; ncases l2;
- ##[ ##1: #H1; nnormalize; #H2; napply (bool_destruct ??? H2)
+ ##[ ##1: #H1; nnormalize; #H2; napply (bool_destruct … H2)
##| ##2: #hh2; #ll2; #H1; #H2;
nchange in H2:(%) with (((f hh1 hh2)⊗(bfold_right_list2 T f ll1 ll2)) = true);
- nrewrite > (H1 hh1 hh2 (andb_true_true_l ?? H2));
- nrewrite > (H ll2 H1 (andb_true_true_r ?? H2));
- napply (refl_eq ??)
+ nrewrite > (H1 hh1 hh2 (andb_true_true_l … H2));
+ nrewrite > (H ll2 H1 (andb_true_true_r … H2));
+ napply refl_eq
##]
##]
nqed.
#T; #f; #l1;
nelim l1;
##[ ##1: #l2; ncases l2;
- ##[ ##1: #H; #H1; nnormalize; napply (refl_eq ??)
+ ##[ ##1: #H; #H1; nnormalize; napply refl_eq
##| ##2: #hh2; #ll2; #H; #H1; nelim (list_destruct_nil_cons ??? H1)
##]
##| ##2: #hh1; #ll1; #H; #l2; ncases l2;
##[ ##1: #H1; #H2; nelim (list_destruct_cons_nil ??? H2)
##| ##2: #hh2; #ll2; #H1; #H2; nnormalize;
- nrewrite > (list_destruct_1 ????? H2);
- nrewrite > (H1 hh2 hh2 (refl_eq ??));
+ nrewrite > (list_destruct_1 … H2);
+ nrewrite > (H1 hh2 hh2 (refl_eq …));
nnormalize;
- nrewrite > (H ll2 H1 (list_destruct_2 ????? H2));
- napply (refl_eq ??)
+ nrewrite > (H ll2 H1 (list_destruct_2 … H2));
+ napply refl_eq
##]
##]
nqed.
#T; #l1;
nelim l1;
##[ ##1: #h; #l2; ncases l2; nnormalize;
- ##[ ##1: #H; #H1; napply (refl_eq ??)
- ##| ##2: #h; #t; #H; nrewrite > H; napply (refl_eq ??)
+ ##[ ##1: #H; #H1; napply refl_eq
+ ##| ##2: #h; #t; #H; nrewrite > H; napply refl_eq
##]
##| ##2: #h; #l2; ncases l2; nnormalize;
- ##[ ##1: #h1; #H; #l; #H1; nrewrite < H1; napply (refl_eq ??)
- ##| ##2: #h; #l; #H; #l3; #H1; nrewrite < H1; napply (refl_eq ??)
+ ##[ ##1: #h1; #H; #l; #H1; nrewrite < H1; napply refl_eq
+ ##| ##2: #h; #l; #H; #l3; #H1; nrewrite < H1; napply refl_eq
##]
##]
nqed.
#T1; #T2; #f; #acc; #l1;
nelim l1;
##[ ##1: #h; #l2; ncases l2;
- ##[ ##1: #h1; nnormalize; #H1; #H2; #H3; nrewrite > (H3 h h1 acc); napply (refl_eq ??)
+ ##[ ##1: #h1; nnormalize; #H1; #H2; #H3; nrewrite > (H3 h h1 acc); napply refl_eq
##| ##2: #h1; #l; ncases l;
##[ ##1: #h3; #H1; #H2; #H3;
nchange in H1:(%) with ((S O) = (S (S O)));
- nelim (nat_destruct_0_S ? (nat_destruct_S_S ?? H1))
+ nelim (nat_destruct_0_S ? (nat_destruct_S_S … H1))
##| ##2: #h3; #l3; #H1; #H2; #H3;
nchange in H1:(%) with ((S O) = (S (S (len_neList ? l3))));
- nelim (nat_destruct_0_S ? (nat_destruct_S_S ?? H1))
+ nelim (nat_destruct_0_S ? (nat_destruct_S_S … H1))
##]
##]
##| ##2: #h3; #l3; #H; #l2; ncases l2;
##[ ##1: #h4; ncases l3;
##[ ##1: #h5; #H1; #H2; #H3;
nchange in H1:(%) with ((S (S O)) = (S O));
- nelim (nat_destruct_S_0 ? (nat_destruct_S_S ?? H1))
+ nelim (nat_destruct_S_0 ? (nat_destruct_S_S … H1))
##| ##2: #h5; #l5; #H1; #H2; #H3;
nchange in H1:(%) with ((S (S (len_neList ? l5))) = (S O));
- nelim (nat_destruct_S_0 ? (nat_destruct_S_S ?? H1))
+ nelim (nat_destruct_S_0 ? (nat_destruct_S_S … H1))
##]
##| ##2: #h4; #l4; #H1; #H2; #H3;
nchange in H1:(%) with ((S (len_neList ? l3)) = (S (len_neList ? l4)));
(f h4 h3 (fold_right_neList2 T1 T2 f acc l4 l3 (fold_right_neList2_aux3 T1 h4 h3 l4 l3 ?))));
nrewrite < (H l4 (fold_right_neList2_aux3 T1 h3 h4 l3 l4 H1) (fold_right_neList2_aux3 T1 h4 h3 l4 l3 H2) H3);
nrewrite > (H3 h3 h4 (fold_right_neList2 T1 T2 f acc l3 l4 ?));
- napply (refl_eq ??)
+ napply refl_eq
##]
##]
nqed.
fold_right_neList2 T1 T2 f acc l1 l2 H = fold_right_neList2 T1 T2 f acc l2 l1 (symmetric_eqlennelist T1 l1 l2 H).
#T1; #T2; #f; #acc; #l1; #l2; #H; #H1;
nrewrite > (symmetric_foldrightnelist2_aux T1 T2 f acc l1 l2 H (symmetric_eqlennelist T1 l1 l2 H) H1);
- napply (refl_eq ??).
+ napply refl_eq.
nqed.
nlemma symmetric_bfoldrightnelist2
#T; #f; #l1;
nelim l1;
##[ ##1: #hh1; #l2; ncases l2;
- ##[ ##1: #hh2; #H; nnormalize; nrewrite > (H hh1 hh2); napply (refl_eq ??)
- ##| ##2: #hh2; #ll2; #H; nnormalize; napply (refl_eq ??)
+ ##[ ##1: #hh2; #H; nnormalize; nrewrite > (H hh1 hh2); napply refl_eq
+ ##| ##2: #hh2; #ll2; #H; nnormalize; napply refl_eq
##]
##| ##2: #hh1; #ll1; #H; #l2; ncases l2;
- ##[ ##1: #hh2; #H1; nnormalize; napply (refl_eq ??)
+ ##[ ##1: #hh2; #H1; nnormalize; napply refl_eq
##| ##2: #hh2; #ll2; #H1; nnormalize;
nrewrite > (H ll2 H1);
nrewrite > (H1 hh1 hh2);
- napply (refl_eq ??)
+ napply refl_eq
##]
##]
nqed.
#T; #f; #l1;
nelim l1;
##[ ##1: #hh1; #l2; ncases l2;
- ##[ ##1: #hh2; #H; #H1; nnormalize in H1:(%); nrewrite > (H hh1 hh2 H1); napply (refl_eq ??)
- ##| ##2: #hh2; #ll2; #H; nnormalize; #H1; napply (bool_destruct ??? H1)
+ ##[ ##1: #hh2; #H; #H1; nnormalize in H1:(%); nrewrite > (H hh1 hh2 H1); napply refl_eq
+ ##| ##2: #hh2; #ll2; #H; nnormalize; #H1; napply (bool_destruct … H1)
##]
##| ##2: #hh1; #ll1; #H; #l2; ncases l2;
- ##[ ##1: #hh2; #H1; nnormalize; #H2; napply (bool_destruct ??? H2)
+ ##[ ##1: #hh2; #H1; nnormalize; #H2; napply (bool_destruct … H2)
##| ##2: #hh2; #ll2; #H1; #H2;
nchange in H2:(%) with (((f hh1 hh2)⊗(bfold_right_neList2 T f ll1 ll2)) = true);
- nrewrite > (H1 hh1 hh2 (andb_true_true_l ?? H2));
- nrewrite > (H ll2 H1 (andb_true_true_r ?? H2));
- napply (refl_eq ??)
+ nrewrite > (H1 hh1 hh2 (andb_true_true_l … H2));
+ nrewrite > (H ll2 H1 (andb_true_true_r … H2));
+ napply refl_eq
##]
##]
nqed.
nelim l1;
##[ ##1: #hh1; #l2; ncases l2;
##[ ##1: #hh2; #H; #H1; nnormalize;
- nrewrite > (H hh1 hh2 (nelist_destruct_nil_nil ??? H1));
- napply (refl_eq ??)
+ nrewrite > (H hh1 hh2 (nelist_destruct_nil_nil … H1));
+ napply refl_eq
##| ##2: #hh2; #ll2; #H; #H1; nelim (nelist_destruct_nil_cons ???? H1)
##]
##| ##2: #hh1; #ll1; #H; #l2; ncases l2;
##[ ##1: #hh2; #H1; #H2; nelim (nelist_destruct_cons_nil ???? H2)
##| ##2: #hh2; #ll2; #H1; #H2; nnormalize;
- nrewrite > (nelist_destruct_cons_cons_1 ????? H2);
- nrewrite > (H1 hh2 hh2 (refl_eq ??));
+ nrewrite > (nelist_destruct_cons_cons_1 … H2);
+ nrewrite > (H1 hh2 hh2 (refl_eq …));
nnormalize;
- nrewrite > (H ll2 H1 (nelist_destruct_cons_cons_2 ????? H2));
- napply (refl_eq ??)
+ nrewrite > (H ll2 H1 (nelist_destruct_cons_cons_2 … H2));
+ napply refl_eq
##]
##]
nqed.
ncases l;
nnormalize;
##[ ##1: #H; napply I
- ##| ##2: #x; #l; #H; napply (bool_destruct ??? H)
+ ##| ##2: #x; #l; #H; napply (bool_destruct … H)
##]
nqed.
#T; #l;
ncases l;
nnormalize;
- ##[ ##1: #H; napply (bool_destruct ??? H)
+ ##[ ##1: #H; napply (bool_destruct … H)
##| ##2: #x; #l; #H; napply I
##]
nqed.
#n;
ncases n;
##[ ##1: nnormalize; #H; napply I
- ##| ##2: #n1; nnormalize; #H; napply (bool_destruct ??? H)
+ ##| ##2: #n1; nnormalize; #H; napply (bool_destruct … H)
##]
nqed.