Created
August 3, 2016 17:29
-
-
Save wilcoxjay/402e162e4af412ad0ce0c8603987173c to your computer and use it in GitHub Desktop.
This file contains hidden or 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 List. | |
| Import ListNotations. | |
| Fixpoint akr_fold {A} (P : nat -> Type) (P_nil : P 0) (P_cons : forall n, A -> P n -> P (S n)) (l : list A) : P (length l) := | |
| match l with | |
| | [] => P_nil | |
| | a :: l' => P_cons _ a (akr_fold P P_nil P_cons l') | |
| end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment