Documentation

GaudisCrypt.Lib.EC.ListFind

EasyCrypt's find and nth (theories/datatypes/List.ec): nth_find #

Names are EasyCrypt's.

theorem GaudisCrypt.EC.nth_find {α : Type} (z : α) (p : α → Bool) (s : List α) (h : ∃ (x : α), x ∈ s ∧ p x = true) :
p (nth z s (find p s)) = true

lemma nth_find z p s : has p s => p (nth z s (find p s)).