diff options
| author | Maxime Dénès | 2017-12-12 11:18:09 +0100 |
|---|---|---|
| committer | Maxime Dénès | 2017-12-12 11:18:09 +0100 |
| commit | a1f135553d121234af0441b4dea25f5c479975c1 (patch) | |
| tree | 1babc45e937af9009a0dea744fc9fd09ace6c9de /theories/Program | |
| parent | 3200d6a890dfea363a6f39b856023b6a1c1dae5c (diff) | |
| parent | 882c692d91bd56a2534ac862b8d557b529aaae54 (diff) | |
Merge PR #6359: Remove most uses of function extensionality in Program.Combinators
Diffstat (limited to 'theories/Program')
| -rw-r--r-- | theories/Program/Combinators.v | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/theories/Program/Combinators.v b/theories/Program/Combinators.v index 90db10ef1a..237d878bfb 100644 --- a/theories/Program/Combinators.v +++ b/theories/Program/Combinators.v @@ -22,15 +22,13 @@ Open Scope program_scope. Lemma compose_id_left : forall A B (f : A -> B), id ∘ f = f. Proof. intros. - unfold id, compose. - symmetry. apply eta_expansion. + reflexivity. Qed. Lemma compose_id_right : forall A B (f : A -> B), f ∘ id = f. Proof. intros. - unfold id, compose. - symmetry ; apply eta_expansion. + reflexivity. Qed. Lemma compose_assoc : forall A B C D (f : A -> B) (g : B -> C) (h : C -> D), @@ -47,9 +45,7 @@ Hint Rewrite <- @compose_assoc : core. Lemma flip_flip : forall A B C, @flip A B C ∘ flip = id. Proof. - unfold flip, compose. intros. - extensionality x ; extensionality y ; extensionality z. reflexivity. Qed. @@ -57,9 +53,7 @@ Qed. Lemma prod_uncurry_curry : forall A B C, @prod_uncurry A B C ∘ prod_curry = id. Proof. - simpl ; intros. - unfold prod_uncurry, prod_curry, compose. - extensionality x ; extensionality y ; extensionality z. + intros. reflexivity. Qed. |
