Skip to content

Commit 3ea9709

Browse files
committed
Prove associativity of mfuns
1 parent d3144fe commit 3ea9709

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

theories/Multifunction.v

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,21 @@ End compose.
8282

8383
Infix "∘" := compose : slot_scope.
8484

85+
Section assoc.
86+
Context {A B C D} `{HA : Setoid A} `{HB : Setoid B} `{HC : Setoid C} `{HD : Setoid D}.
87+
88+
Let F := @MFun A B HA HB.
89+
Let G := @MFun B C HB HC.
90+
Let H := @MFun C D HC HD.
91+
92+
Lemma mfun_assoc (f : F) (g : G) (h : H) :
93+
forall a b,
94+
a ~[f ∘ (g ∘ h)]~> b <-> a ~[(f ∘ g) ∘ h]~> b.
95+
Proof.
96+
sauto.
97+
Qed.
98+
End assoc.
99+
85100
Section props.
86101
Context {A : Type} `{Hsetoid : Setoid A}.
87102
Let T := @MFun A A Hsetoid Hsetoid.

0 commit comments

Comments
 (0)