clear H1;
elim l1;
[ simplify; reflexivity;
- | cut ((le t t1 \land ordered A le (t1::l2)) = true);
+ | cut ((le a a1 \land ordered A le (a1::l2)) = true);
[ generalize in match Hcut;
apply andb_elim;
- elim (le t t1);
+ elim (le a a1);
[ simplify;
- fold simplify (ordered ? le (t1::l2));
+ fold simplify (ordered ? le (a1::l2));
intros; assumption;
| simplify;
intros (Habsurd);
elim l'; simplify;
[ rewrite > H5;
reflexivity
- | elim (le x t); simplify;
+ | elim (le x a); simplify;
[ rewrite > H5;
reflexivity
| simplify in H4;
elim l;
[ simplify;
reflexivity;
- | apply (insert_sorted ? ? le_tot (insertionsort ? le l1) t);
+ | apply (insert_sorted ? ? le_tot (insertionsort ? le l1) a);
assumption;
]
qed.
\ No newline at end of file