No longer use option for local updates.
Instead, I separate it into a total function and a predicate describe whether the action is allowed or not. This has some advantages: * It is much easier to deal with total functions and predicates in Coq than with functions into option. * Already existing functions do not need to be wrapped. Instead, when using a local update you end up with a sensible side condition as a Coq Prop. * The definition of local updates (and all CMRA instances) no longer depend on option.
Showing
- algebra/auth.v 21 additions, 17 deletionsalgebra/auth.v
- algebra/cmra.v 19 additions, 0 deletionsalgebra/cmra.v
- algebra/excl.v 7 additions, 14 deletionsalgebra/excl.v
- algebra/fin_maps.v 18 additions, 38 deletionsalgebra/fin_maps.v
- algebra/option.v 0 additions, 25 deletionsalgebra/option.v
- program_logic/auth.v 11 additions, 14 deletionsprogram_logic/auth.v
Loading
Please register or sign in to comment