Skip to content

Commit fe06d68

Browse files
HagbBergschaf
authored andcommitted
feat(Logic/Function/Basic) : lemmas about composition of and in onFun (leanprover-community#39776)
`(f.onFun g).onFun h = f.onFun (g ∘ h)` and its symmetric variant.
1 parent fd393d1 commit fe06d68

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Mathlib/Logic/Function/Basic.lean

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ section onFun
5555
theorem onFun_apply (f : β → β → γ) (g : α → β) (a b : α) : onFun f g a b = f (g a) (g b) :=
5656
rfl
5757

58+
theorem onFun_onFun_eq {δ : Sort*} (f : α → α → γ) (g : β → α) (h : δ → β) :
59+
(f.onFun g).onFun h = f.onFun (g ∘ h) := rfl
60+
61+
theorem onFun_comp_eq {δ : Sort*} (f : α → α → γ) (g : β → α) (h : δ → β) :
62+
f.onFun (g ∘ h) = (f.onFun g).onFun h := rfl
63+
5864
variable (r : β → β → Prop) (f : α → β)
5965

6066
instance [Std.Refl r] : Std.Refl (r on f) where

0 commit comments

Comments
 (0)