Skip to content

Commit

Permalink
List/Theory: add decidable_exists_bounded_nat
Browse files Browse the repository at this point in the history
  • Loading branch information
jdchristensen committed Jan 15, 2025
1 parent 6f18b61 commit e235678
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions theories/Spaces/List/Theory.v
Original file line number Diff line number Diff line change
Expand Up @@ -1249,3 +1249,8 @@ Proof.
1: exact H1.
exact _.
Defined.

Definition decidable_exists_bounded_nat (n : nat) (P : nat -> Type)
(H2 : forall k, Decidable (P k))
: Decidable { k : nat & prod (k < n) (P k) }
:= decidable_exists_nat n _ (fun k => fst) _.

0 comments on commit e235678

Please sign in to comment.