Skip to content

Commit

Permalink
chore(logic/function): simplify applications of (un)curry (#4696)
Browse files Browse the repository at this point in the history
  • Loading branch information
urkud committed Oct 19, 2020
1 parent a1f1770 commit 0523b61
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/logic/function/basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,14 @@ end extend
lemma uncurry_def {α β γ} (f : α → β → γ) : uncurry f = (λp, f p.1 p.2) :=
rfl

@[simp] lemma uncurry_apply_pair {α β γ} (f : α → β → γ) (x : α) (y : β) :
uncurry f (x, y) = f x y :=
rfl

@[simp] lemma curry_apply {α β γ} (f : α × β → γ) (x : α) (y : β) :
curry f x y = f (x, y) :=
rfl

section bicomp
variables {α β γ δ ε : Type*}

Expand Down

0 comments on commit 0523b61

Please sign in to comment.