Uncurry memory.
This has 2 advantages: 1- There is no need for a setoid relation over memories, the representaiton is canonical. 2- The lookup function for cells is total (it does no longer return an option) All in all, the size of the proofs reduces significantly.
This diff is collapsed.
This diff is collapsed.
-
In gpfsl, I have a CMRA for memories, treating them as maps from loc to cell. Have a look at
history.v
there, namelyhistUR
,to_hist
, andto_hist_insert_alloc
.It seems that I need
gmap_uncurry (gmap_curry m) = m
, wherem: K1 -> K2 -> A
for some of the lemmas, but I still haven't got through this lemma, which doesn't seem to hold because it doesn't have leibniz equality.
Please register or sign in to comment