Created
July 29, 2017 12:14
-
-
Save yoshihiro503/d07c97df937c90eb6fd263e73ae2b5d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Require Import Program. | |
Open Scope list_scope. | |
Lemma fold_right_rev : forall (A: Type) (f: A -> A -> A) xs x0, | |
(forall x y z, f x (f y z) = f (f x y) z) -> | |
(forall x y, f x y = f y x) -> | |
List.fold_right f x0 xs = List.fold_right f x0 (List.rev xs). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment