fact: Fixpoint top_k_bools (a: list bool) (k: int) : list bool := if (k =? 0) then nil else match a with | nil => nil | ai :: a' => ai :: top_k_bools a' (k - 1) end.
imports: List Bool NArith Psatz Int63 Nnat ZArith Misc ProofIrrelevance