src/Util/ListUtil/Split.v
raw| 1 | From Coq Require Import List. |
| 2 | Require Export Crypto.Util.FixCoqMistakes. |
| 3 | Import ListNotations. |
| 4 | Local Open Scope list_scope. |
| 5 | |
| 6 | Lemma split_alt {A B} ls : @split A B ls = (List.map fst ls, List.map snd ls). |
| 7 | Proof. |
| 8 | induction ls as [|[? ?]? IH]; cbn; [ reflexivity | now rewrite IH ]. |
| 9 | Qed. |