Skip to content

Commit

Permalink
feat(data/quot): add quotient.lift₂_mk (#10173)
Browse files Browse the repository at this point in the history
  • Loading branch information
shingtaklam1324 committed Nov 5, 2021
1 parent 35d3628 commit 16af388
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/data/quot.lean
Expand Up @@ -180,6 +180,12 @@ theorem forall_quotient_iff {α : Type*} [r : setoid α] {p : quotient r → Pro
(x : α) :
quotient.lift f h (quotient.mk x) = f x := rfl

@[simp] lemma quotient.lift₂_mk {α : Sort*} {β : Sort*} {γ : Sort*} [setoid α] [setoid β]
(f : α → β → γ)
(h : ∀ (a₁ : α) (a₂ : β) (b₁ : α) (b₂ : β), a₁ ≈ b₁ → a₂ ≈ b₂ → f a₁ a₂ = f b₁ b₂)
(a : α) (b : β) :
quotient.lift₂ f h (quotient.mk a) (quotient.mk b) = f a b := rfl

@[simp] lemma quotient.lift_on_mk [s : setoid α] (f : α → β) (h : ∀ (a b : α), a ≈ b → f a = f b)
(x : α) :
quotient.lift_on (quotient.mk x) f h = f x := rfl
Expand Down

0 comments on commit 16af388

Please sign in to comment.