Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 895121f9 authored by BERTOT Yves's avatar BERTOT Yves
Browse files

need to explictely unfold decode

parent bcebd707
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,8 @@ Lemma find_is_Some `{finA: Finite A} P `{∀ x, Decision (P x)} (x : A) : ...@@ -64,7 +64,8 @@ Lemma find_is_Some `{finA: Finite A} P `{∀ x, Decision (P x)} (x : A) :
Proof. Proof.
destruct finA as [xs Hxs HA]; unfold find, decode; simpl. destruct finA as [xs Hxs HA]; unfold find, decode; simpl.
intros Hx. destruct (list_find_elem_of P xs x) as [[i y] Hi]; auto. intros Hx. destruct (list_find_elem_of P xs x) as [[i y] Hi]; auto.
rewrite Hi; simpl. rewrite !Nat2Pos.id by done. simpl. rewrite Hi. unfold decode_nat, decode. simpl. rewrite !Nat2Pos.id by done.
simpl.
apply list_find_Some in Hi; naive_solver. apply list_find_Some in Hi; naive_solver.
Qed. Qed.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment