src/Util/ListUtil/Concat.v
raw| 1 | From Coq Require Import List. |
| 2 | Require Import Crypto.Util.FixCoqMistakes. |
| 3 | Import ListNotations. |
| 4 | Local Open Scope list_scope. |
| 5 | Local Set Implicit Arguments. |
| 6 | |
| 7 | Module List. |
| 8 | Lemma concat_map_singleton A (ls : list A) : concat (map (fun x => [x]) ls) = ls. |
| 9 | Proof. induction ls; cbn; congruence. Qed. |
| 10 | End List. |