fix(lean/tests/lean/run/new_obtain{3,4}): adapt tests to new notation for image
This commit is contained in:
parent
d9118ded76
commit
a22346e411
2 changed files with 7 additions and 7 deletions
|
@ -3,13 +3,13 @@ open set function eq.ops
|
|||
|
||||
variables {X Y Z : Type}
|
||||
|
||||
lemma image_compose (f : Y → X) (g : X → Y) (a : set X) : (f ∘ g) '[a] = f '[g '[a]] :=
|
||||
lemma image_compose (f : Y → X) (g : X → Y) (a : set X) : (f ∘ g) ' a = f ' (g ' a) :=
|
||||
ext (take z,
|
||||
iff.intro
|
||||
(assume Hz : z ∈ (f ∘ g) '[a],
|
||||
(assume Hz : z ∈ (f ∘ g) ' a,
|
||||
obtain x (Hx₁ : x ∈ a) (Hx₂ : f (g x) = z), from Hz,
|
||||
have Hgx : g x ∈ g '[a], from mem_image Hx₁ rfl,
|
||||
show z ∈ f '[g '[a]], from mem_image Hgx Hx₂)
|
||||
(assume Hz : z ∈ f '[g '[a]],
|
||||
have Hgx : g x ∈ g ' a, from mem_image Hx₁ rfl,
|
||||
show z ∈ f ' (g ' a), from mem_image Hgx Hx₂)
|
||||
(assume Hz : z ∈ f ' (g ' a),
|
||||
obtain y [x (Hz₁ : x ∈ a) (Hz₂ : g x = y)] (Hy₂ : f y = z), from Hz,
|
||||
show z ∈ (f ∘ g) '[a], from mem_image Hz₁ (Hz₂⁻¹ ▸ Hy₂)))
|
||||
show z ∈ (f ∘ g) ' a, from mem_image Hz₁ (Hz₂⁻¹ ▸ Hy₂)))
|
||||
|
|
|
@ -3,7 +3,7 @@ open set function eq.ops
|
|||
|
||||
variables {X Y Z : Type}
|
||||
|
||||
lemma image_compose (f : Y → X) (g : X → Y) (a : set X) : (f ∘ g) '[a] = f '[g '[a]] :=
|
||||
lemma image_compose (f : Y → X) (g : X → Y) (a : set X) : (f ∘ g) ' a = f ' (g ' a) :=
|
||||
ext (take z,
|
||||
iff.intro
|
||||
(assume Hz,
|
||||
|
|
Loading…
Reference in a new issue