-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
4 changed files
with
42 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import Aesop | ||
import Mathlib.Tactic.LibrarySearch | ||
import Mathlib.Tactic.Tauto | ||
|
||
variable (P Q R : Prop) | ||
|
||
-- ANCHOR: first | ||
-- 含意の導入 | ||
example (h : P) : Q → P := by | ||
tauto | ||
|
||
-- フレーゲの3段論法 | ||
example : (P → (Q → R)) → ((P → Q) → (P → R)) := by | ||
tauto | ||
|
||
-- 排中律 | ||
example : P ∨ ¬ P := by | ||
-- `aesop` では示すことができない | ||
try aesop | ||
|
||
tauto | ||
|
||
-- 対偶 | ||
example (h : P → Q) : ¬ Q → ¬ P := by | ||
-- `exact?` では示すことができない | ||
try exact? | ||
|
||
tauto | ||
-- ANCHOR_END: first |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# tauto | ||
|
||
needs: `import Mathlib.Tactic.Tauto` | ||
|
||
named after: トートロジー(tautology) | ||
|
||
`tauto` は, トートロジー(恒真式)であることに基づいてゴールを閉じるタクティクです. ゴールを閉じることができなければエラーになります. | ||
|
||
```lean | ||
{{#include ../Examples/Tauto.lean:first}} | ||
``` |