Skip to content

Commit

Permalink
2025/2/27 test4
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtengyu0523 committed Feb 27, 2025
1 parent 0dc7969 commit 3fda1b6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 28 deletions.
33 changes: 5 additions & 28 deletions Game/Levels/World_two/L08_exercise.lean
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,13 @@ World "World_Two"
Level 8
Title "Exercise"

Statement {α : Type*} (s t r : Set α): (s ∪ t) ∪ r = s ∪ (t ∪ r) := by
Statement {α : Type*} (s t : Set α) : s ⊆ t → s ∩ t = s := by
intro h
ext x
rw [Set.mem_union]
rw [Set.mem_inter_iff]
constructor
· rintro (h | h)
· rw [Set.mem_union] at *
rcases h with h | h
· left
exact h
· right
rw [Set.mem_union]
left
exact h
· rw [Set.mem_union, Set.mem_union]
right
right
exact h
· rintro (h | h)
· left
rw [Set.mem_union]
left
exact h
· rw [Set.mem_union] at *
rcases h with h | h
left
right
exact h
right
exact h
exact fun ha ↦ ha.1
exact fun ha ↦ ⟨ha, h ha⟩


Conclusion "Level Completed!"
NewTactic left right
13 changes: 13 additions & 0 deletions Game/Levels/World_two/L09_subgroup.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Game.Metadata

World "World_Two"
Level 9
Title "Exercise"

Statement {G : Type*} [Group G] (H : Subgroup G) : H.carrier ⊆ ⊤ := by
intro x _
exact trivial


Conclusion "Level Completed!"
NewTheorem trivial

0 comments on commit 3fda1b6

Please sign in to comment.