Skip to content

Commit bfadd55

Browse files
committed
feat: f '' s = f ⁻¹' s for an involution f (#27746)
1 parent f5dca22 commit bfadd55

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Mathlib/Data/Set/Image.lean

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@ theorem image_eq_preimage_of_inverse {f : α → β} {g : β → α} (h₁ : Lef
351351
funext fun s =>
352352
Subset.antisymm (image_subset_preimage_of_inverse h₁ s) (preimage_subset_image_of_inverse h₂ s)
353353

354+
theorem _root_.Function.Involutive.image_eq_preimage {f : α → α} (hf : f.Involutive) :
355+
image f = preimage f :=
356+
image_eq_preimage_of_inverse hf.leftInverse hf.rightInverse
357+
354358
theorem mem_image_iff_of_inverse {f : α → β} {g : β → α} {b : β} {s : Set α} (h₁ : LeftInverse g f)
355359
(h₂ : RightInverse g f) : b ∈ f '' s ↔ g b ∈ s := by
356360
rw [image_eq_preimage_of_inverse h₁ h₂]; rfl

0 commit comments

Comments
 (0)