-
Notifications
You must be signed in to change notification settings - Fork 12
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
1 parent
6adb00e
commit f2a8ca3
Showing
22 changed files
with
195 additions
and
94 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
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,9 @@ | ||
import Game.Levels.FunctionImage.L01_ImagePreimage | ||
import Game.Levels.FunctionImage.L02_ImagePreimage | ||
import Game.Levels.FunctionImage.L03_InjectiveRange | ||
import Game.Levels.FunctionImage.L04_LeftInvPreimage | ||
import Game.Levels.FunctionImage.L05_Preimage_Injective | ||
import Game.Levels.FunctionImage.L06_SurjectiveRange | ||
|
||
World "FunctionImage" | ||
Title "Image/Preimage" |
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,34 @@ | ||
import Game.Metadata | ||
|
||
open Function Set | ||
|
||
World "FunctionImage" | ||
Level 1 | ||
Title "Bild/Urbild" | ||
|
||
Introduction " | ||
`f '' S` ist das Bild, | ||
`f ⁻¹' V` das Urbild, | ||
`f '' S := {f a | a ∈ S}` | ||
`f ⁻¹' V := {a | f a ∈ V}` | ||
" | ||
|
||
/-- -/ | ||
TheoremDoc Set.image_preimage_subset as "image_preimage_subset" in "Set" | ||
|
||
-- Set theory | ||
example {x : Nat} (h : x ∈ {a : ℕ | Even a}) : False := by | ||
obtain ⟨⟩ := h | ||
sorry | ||
|
||
Statement Set.image_preimage_subset {A B : Type} (f : A → B) (S : Set B) : | ||
f '' (f ⁻¹' S) ⊆ S := by | ||
intro b | ||
intro hb | ||
simp at hb | ||
obtain ⟨a, ha₁, ha₂⟩ := hb | ||
rw [ha₂] at ha₁ | ||
assumption | ||
|
||
NewDefinition Set.image Set.preimage |
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,22 @@ | ||
import Game.Metadata | ||
|
||
|
||
World "FunctionImage" | ||
Level 2 | ||
Title "" | ||
|
||
open Function Set | ||
|
||
Statement {A B : Type} {f : A → B} (hf : Surjective f) (s : Set B) : | ||
f '' (f ⁻¹' s) = s := by | ||
ext b | ||
simp | ||
constructor | ||
· apply image_preimage_subset -- Lvl 1 | ||
· intro hb | ||
obtain ⟨a, ha⟩ := hf b | ||
use a | ||
constructor | ||
· rw [ha] | ||
assumption | ||
· assumption |
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
4 changes: 2 additions & 2 deletions
4
...vels/FunctionInj/L08_LeftInvPreimage.lean → ...ls/FunctionImage/L04_LeftInvPreimage.lean
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,8 +1,8 @@ | ||
import Game.Metadata | ||
|
||
|
||
World "FunctionInj" | ||
Level 8 | ||
World "FunctionImage" | ||
Level 4 | ||
|
||
Title "Preimage of the inverse" | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
...s/FunctionBij/L09_Preimage_Injective.lean → ...FunctionImage/L05_Preimage_Injective.lean
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
4 changes: 2 additions & 2 deletions
4
...els/FunctionSurj/L13_SurjectiveRange.lean → ...ls/FunctionImage/L06_SurjectiveRange.lean
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,8 +1,8 @@ | ||
import Game.Metadata | ||
|
||
|
||
World "FunctionSurj" | ||
Level 13 | ||
World "FunctionImage" | ||
Level 6 | ||
|
||
Title "Range of Surjection" | ||
|
||
|
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,15 @@ | ||
import Game.Metadata | ||
|
||
open Set | ||
|
||
-- DELETE? | ||
|
||
example (f : ℝ → ℝ) (hfib : ncard (f ⁻¹' {0}) = 2) : ∃ (x₁ x₂ : ℝ ), x₁ ≠ x₂ ∧ f x₁ = 0 ∧ f x₂ = 0 := by | ||
apply ncard_eq_two.mp at hfib | ||
obtain ⟨ x₁, x₂, h_ne, h_fib_eq ⟩ := hfib | ||
use x₁, x₂ | ||
constructor | ||
assumption | ||
change x₁ ∈ f ⁻¹' {0} ∧ x₂ ∈ f ⁻¹' {0} | ||
rw [h_fib_eq] | ||
tauto |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ import Game.Metadata | |
|
||
|
||
World "FunctionInj" | ||
Level 4 | ||
Level 3 | ||
|
||
Title "Monotone Funktionen" | ||
|
||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ import Game.Metadata | |
|
||
|
||
World "FunctionInj" | ||
Level 5 | ||
Level 4 | ||
|
||
Title "Monotone Funktionen" | ||
|
||
|
Oops, something went wrong.