view src/Tactics.v @ 29:add8215ec72a

nat lists and trees
author Adam Chlipala <adamc@hcoop.net>
date Mon, 08 Sep 2008 15:23:04 -0400
parents bcf375310f5f
children 6d05ee182b65
line wrap: on
line source
(* Copyright (c) 2008, Adam Chlipala
 * 
 * This work is licensed under a
 * Creative Commons Attribution-Noncommercial-No Derivative Works 3.0
 * Unported License.
 * The license text is available at:
 *   http://creativecommons.org/licenses/by-nc-nd/3.0/
 *)

Require Import List.


Ltac rewriteHyp :=
  match goal with
    | [ H : _ |- _ ] => rewrite H
  end.

Ltac rewriterP := repeat (rewriteHyp; autorewrite with cpdt in *).

Ltac rewriter := autorewrite with cpdt in *; rewriterP.

Hint Rewrite app_ass : cpdt.

Ltac sintuition := simpl; intuition.

Ltac crush := sintuition; rewriter; sintuition.