Generalize equality of heap_lang so it works on any value.
This is more consistent with CAS, which also can be used on any value. Note that being able to (atomically) test for equality of any value and being able to CAS on any value is not realistic. See the discussion at https://gitlab.mpi-sws.org/FP/iris-coq/issues/26, and in particular JH Jourdan's observation: I think indeed for heap_lang this is just too complicated. Anyway, the role of heap_lang is not to model any actual programming language, but rather to show that we can do proofs about certain programs. The fact that you can write unrealistic programs is not a problem, IMHO. The only thing which is important is that the program that we write are realistic (i.e., faithfully represents the algorithm we want to p This commit is based on a commit by Zhen Zhang who generalized equality to work on any literal (and not just integers).
Showing
- heap_lang/derived.v 6 additions, 5 deletionsheap_lang/derived.v
- heap_lang/lang.v 53 additions, 51 deletionsheap_lang/lang.v
- heap_lang/lib/ticket_lock.v 4 additions, 6 deletionsheap_lang/lib/ticket_lock.v
- heap_lang/lifting.v 12 additions, 10 deletionsheap_lang/lifting.v
- heap_lang/wp_tactics.v 6 additions, 3 deletionsheap_lang/wp_tactics.v
- tests/heap_lang.v 2 additions, 1 deletiontests/heap_lang.v
Loading
Please register or sign in to comment