-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
119 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,26 @@ | ||
(******************************************************************************) | ||
(* Copyright 2018 Mitchell Kember. Subject to the MIT License. *) | ||
(* Formalization of Analysis I: Common theorems *) | ||
(* Formalization of Analysis I: Common *) | ||
(******************************************************************************) | ||
|
||
(* Require Export Coq.Logic.Classical. *) | ||
(** * Common *) | ||
|
||
(** ** Libraries *) | ||
Require Export Coq.Setoids.Setoid. | ||
Require Export Coq.Unicode.Utf8. | ||
|
||
(** Restate the current goal *) | ||
(** ** Tactics *) | ||
|
||
(** *** Restate the current goal *) | ||
Ltac show G := tryif change G then idtac else fail 0 "Not the current goal". | ||
|
||
(** Modus tollens *) | ||
Theorem mt {p q : Prop} (Hpq : p → q) (Hnq : ¬ q) : ¬ p. | ||
(** ** Theorems *) | ||
|
||
(** *** Modus tollens *) | ||
Theorem mt {p q : Prop} (Hpq : p → q) (HNq : ¬ q) : ¬ p. | ||
Proof. | ||
intro Hp. | ||
contradiction Hnq. | ||
contradiction HNq. | ||
exact (Hpq Hp). | ||
Qed. | ||
|