Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Mathlib/Algebra/Group/Pointwise/Set/SelfInv.lean
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ This file specialises `IsSelfInv` to sets equipped with the pointwise inversion.

public section

/- Ensure that `@[to_additive]` uses the right namespace. -/
insert_to_additive_translation Set.IsSelfInv Set.IsSelfNeg

namespace Set

open Set
open scoped Pointwise

Expand Down Expand Up @@ -66,7 +71,7 @@ protected lemma IsSelfInv.sInter {S : Set (Set α)} (h : ∀ s ∈ S, IsSelfInv
IsSelfInv (⋂₀ S) :=
sInter_eq_iInter ▸ .iInter fun s ↦ h s s.2

@[to_additive]
@[to_additive Set.IsSelfNeg.prod]
protected lemma IsSelfInv.prod {t : Set β} (hs : IsSelfInv s) (ht : IsSelfInv t) :
IsSelfInv (s ×ˢ t) := by
rw [isSelfInv_iff, inv_prod, hs, ht]
Expand Down Expand Up @@ -116,3 +121,5 @@ protected lemma IsSelfInv.diff (hs : IsSelfInv s) (ht : IsSelfInv t) : IsSelfInv
simpa only [sdiff_eq] using hs.inter ht.compl

end InvolutiveInv

end Set
Loading