Step
*
of Lemma
remove-first_wf
∀[T:Type]. ∀[L:T List]. ∀[P:{x:T| (x ∈ L)}  ⟶ 𝔹].  (remove-first(P;L) ∈ T List)
BY
{ InductionOnList
THEN Unfold `remove-first` 0
THEN Reduce 0
THEN Try (Fold `remove-first` 0)
THEN Auto }
Latex:
Latex:
\mforall{}[T:Type].  \mforall{}[L:T  List].  \mforall{}[P:\{x:T|  (x  \mmember{}  L)\}    {}\mrightarrow{}  \mBbbB{}].    (remove-first(P;L)  \mmember{}  T  List)
By
Latex:
InductionOnList
THEN  Unfold  `remove-first`  0
THEN  Reduce  0
THEN  Try  (Fold  `remove-first`  0)
THEN  Auto
Home
Index