generated from leanprover-community/NNG4
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Trequetrum
committed
Jan 11, 2024
1 parent
dba1a0a
commit 1022b56
Showing
5 changed files
with
128 additions
and
7 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
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,25 @@ | ||
import Game.Metadata | ||
|
||
namespace GameLogic | ||
|
||
World "IffIntro" | ||
Level 7 | ||
Title "IffBoss" | ||
|
||
OnlyTactic | ||
exact | ||
«have» | ||
rw | ||
«repeat» | ||
nth_rewrite | ||
|
||
Introduction " | ||
# BOSS LEVEL | ||
This is an involved level. It doesn't require you to do anything tricky, but there are a lot of moving parts and it is easy to lose track of what you're doing. | ||
" | ||
|
||
Statement (P Q R : Prop): (P ∧ Q ↔ R ∧ Q) ↔ Q → (P ↔ R) := by | ||
exact ⟨ | ||
λ⟨pr,rp⟩ q ↦ ⟨λp ↦ (pr ⟨p,q⟩).left, λr ↦ (rp ⟨r,q⟩).left⟩, | ||
λqpr ↦ ⟨λ⟨p,q⟩ ↦ ⟨(qpr q).mp p, q⟩, λ⟨r,q⟩ ↦ ⟨(qpr q).mpr r, q⟩⟩ | ||
⟩ |
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,38 @@ | ||
import Game.Metadata | ||
|
||
namespace GameLogic | ||
|
||
World "IffTactic" | ||
Level 7 | ||
Title "IffBoss" | ||
|
||
Introduction " | ||
# BOSS LEVEL | ||
This is an involved level. Tactics can be especially helpful in that much of the bookkeeping is done on your behalf. Good luck. | ||
" | ||
|
||
Statement (P Q R : Prop): (P ∧ Q ↔ R ∧ Q) ↔ Q → (P ↔ R) := by | ||
constructor | ||
intro ⟨pr, rp⟩ | ||
intro q | ||
constructor | ||
intro p | ||
apply and_left | ||
apply pr | ||
constructor | ||
repeat assumption | ||
intro r | ||
apply and_left | ||
apply rp | ||
constructor | ||
repeat assumption | ||
intro qpr | ||
constructor | ||
intro ⟨p,q⟩ | ||
rw [← qpr q] | ||
constructor | ||
repeat assumption | ||
intro ⟨r,q⟩ | ||
rw [qpr q] | ||
constructor | ||
repeat assumption |