aboutsummaryrefslogtreecommitdiff
path: root/coqprime/Coqprime/Tactic.v
diff options
context:
space:
mode:
authorGravatar Jason Gross <jgross@mit.edu>2017-06-01 23:59:55 -0400
committerGravatar Jason Gross <jgross@mit.edu>2017-06-02 00:00:09 -0400
commitd3135a69f653034f07b7657486f926a7a20ef3ee (patch)
treee163e017643c1bc8c877ecefaa43299c458d232e /coqprime/Coqprime/Tactic.v
parent3f11f57487ce9e913b36271cee2f8b6b695945cf (diff)
Strip trailing whitespace
With ```bash bash ./etc/coq-scripts/formatting/strip-trailing-whitespace.sh ```
Diffstat (limited to 'coqprime/Coqprime/Tactic.v')
-rw-r--r--coqprime/Coqprime/Tactic.v28
1 files changed, 14 insertions, 14 deletions
diff --git a/coqprime/Coqprime/Tactic.v b/coqprime/Coqprime/Tactic.v
index 93a244149..b0f8f4f28 100644
--- a/coqprime/Coqprime/Tactic.v
+++ b/coqprime/Coqprime/Tactic.v
@@ -8,19 +8,19 @@
(**********************************************************************
- Tactic.v
- Useful tactics
+ Tactic.v
+ Useful tactics
**********************************************************************)
(**************************************
- A simple tactic to end a proof
+ A simple tactic to end a proof
**************************************)
Ltac finish := intros; auto; trivial; discriminate.
(**************************************
A tactic for proof by contradiction
- with contradict H
+ with contradict H
H: ~A |- B gives |- A
H: ~A |- ~ B gives H: B |- A
H: A |- B gives |- ~ A
@@ -28,19 +28,19 @@ Ltac finish := intros; auto; trivial; discriminate.
H: A |- ~ B gives H: A |- ~ A
**************************************)
-Ltac contradict name :=
+Ltac contradict name :=
let term := type of name in (
- match term with
- (~_) =>
- match goal with
+ match term with
+ (~_) =>
+ match goal with
|- ~ _ => let x := fresh in
- (intros x; case name;
+ (intros x; case name;
generalize x; clear x name;
intro name)
| |- _ => case name; clear name
end
- | _ =>
- match goal with
+ | _ =>
+ match goal with
|- ~ _ => let x := fresh in
(intros x; absurd term;
[idtac | exact name]; generalize x; clear x name;
@@ -60,10 +60,10 @@ Ltac case_eq name :=
(**************************************
- A tactic to use f_equal? theorems
+ A tactic to use f_equal? theorems
**************************************)
-Ltac eq_tac :=
+Ltac eq_tac :=
match goal with
|- (?g _ = ?g _) => apply f_equal with (f := g)
| |- (?g ?X _ = ?g ?X _) => apply f_equal with (f := g X)
@@ -77,7 +77,7 @@ Ltac eq_tac :=
| |- (?g _ _ _ _ _ = ?g _ _ _ _) => apply f_equal4 with (f := g)
end.
-(**************************************
+(**************************************
A stupid tactic that tries auto also after applying sym_equal
**************************************)