Mercurial > cpdt > repo
view src/Tactics.v @ 41:d45ba7e9b266
Improve template generation; craft template for InductiveTypes
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 13 Sep 2008 14:31:51 -0400 |
parents | 95e24b629ad9 |
children | a21eb02cc7c6 |
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. Require Omega. 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 in *; intuition. Ltac crush := sintuition; rewriter; sintuition; try omega.