Skip to content

Commit

Permalink
Invalid actions (#101)
Browse files Browse the repository at this point in the history
* Update coq-stdpp

* Update ChainStep to allow dropping invalid user actions

* Adapt proofs to new ChainStep

* More proofs updated

* Adapt ltacs in Blockchain.v to new ChainStep

* Update proofs in Circulation.v

* Update ltac in Blockchain.v

* no message

* Use intuition in proof

* Shorter proof without intuition

* Remove inhabited from step_action_invalid constructor
  • Loading branch information
4ever2 authored Jun 19, 2021
1 parent 5fd6a9e commit f30536c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion execution/theories/Blockchain.v
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ Inductive ChainStep (prev_bstate : ChainState) (next_bstate : ChainState) :=
chain_state_queue prev_bstate = act :: acts ->
chain_state_queue next_bstate = acts ->
act_is_from_account act ->
(forall bstate new_acts, ~ inhabited (ActionEvaluation prev_bstate act bstate new_acts)) ->
(forall bstate new_acts, ActionEvaluation prev_bstate act bstate new_acts -> False) ->
ChainStep prev_bstate next_bstate
| step_permute :
chain_state_env prev_bstate = chain_state_env next_bstate ->
Expand Down

0 comments on commit f30536c

Please sign in to comment.