Skip to content

Commit

Permalink
Update Mathlib/Data/Sym/Sym2.lean
Browse files Browse the repository at this point in the history
Co-authored-by: Yaël Dillies <[email protected]>
  • Loading branch information
Jun2M and YaelDillies authored Oct 31, 2024
1 parent 75e2ddf commit 5cb9f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mathlib/Data/Sym/Sym2.lean
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ Partial map. If `f : ∀ a, p a → β` is a partial function defined on `a : α
then `pmap f s h` is essentially the same as `map f s` but is defined only when all members of `s`
satisfy `p`, using the proof to apply `f`.
-/
def pmap {P : α → Prop} (f : ∀ a, P a → β) (s : Sym2 α): (∀ a ∈ s, P a) → Sym2 β :=
def pmap {P : α → Prop} (f : ∀ a, P a → β) (s : Sym2 α) : (∀ a ∈ s, P a) → Sym2 β :=
let g : (p : α × α) → (∀ a ∈ Sym2.mk p, P a) → Sym2 β :=
fun p H => s(f p.1 (H p.1 <| mem_mk_left _ _), f p.2 (H p.2 <| mem_mk_right _ _))
Quot.recOn s g fun p q hpq => funext fun Hq => by
Expand Down

0 comments on commit 5cb9f54

Please sign in to comment.