Skip to content

Commit

Permalink
solutions for potential new levels L09a & L09b
Browse files Browse the repository at this point in the history
  • Loading branch information
TentativeConvert committed Sep 4, 2024
1 parent 43007f0 commit a283f6e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions development-status.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,37 @@ Using this theorem, which could be a separate exercise in FunctionSurj, the seco
assumption
````

#### L09a: f (f ⁻¹ s) ⊆ s

````
-- theorem Set.image_preimage_subset
lemma image_preimage_subset {A B : Type} (f : A → B ) (s : Set B) :
f '' (f ⁻¹' s) ⊆ s := by
intro b hb
obtain ⟨a, ha, h ⟩ := hb
simp at ha
rw [h] at ha
assumption
````

#### L09b: f (f ⁻¹ s) = s for surjective f

````
-- theorem Function.Surjective.image_preimage
example {A B : Type} {f : A → B} (hf : Surjective f) (s : Set B) :
f '' (f ⁻¹' s) = s := by
ext b
constructor
· apply image_preimage_subset
· intro hb
obtain ⟨a, ha⟩ := hf b
use a
constructor
· simp
rw [ha]
assumption
· assumption
````

## Reordering??

Expand Down Expand Up @@ -399,6 +430,7 @@ induction
choose
HasRightInverse
Surjective
preimage

#### Inj 01: concrete function injective
**Injective**
Expand Down

0 comments on commit a283f6e

Please sign in to comment.