2021/11/19
interaction
data process
can do
global i;
N =
c (c0, st_0) .
r <c0> .
r ( inl -> end
; inr (r0, st_r) ->
r <i, min st_0 st_r> . N1)
N1 =
r (hs) .
c <hs> .
c ( inl j -> r <inl j> . N1
; inr j -> r <inr j> . r (h_j-1, h_j) . F (h_j-1, h_j) . end)
-- multi-round = N | N | N ...
-- h_j-1 = the last agreed state hash
-- h_j = the fst disagreed state hash
F (h_j-1, h_j) ->
let result = eval op_j-1 h_j-1 in
if result = h_j
then WIN else LOSS
WIN = ..
LOSS = ..
C = c<c0, st0> . c (hashes) . c <f(...)> .
C2 = c(inl x -> ...
;inr y -> )
c : !int ->
N = ... c<inr w> .....
C = c (inl x -> ...
;inr y -> )
R =
N | C | R
nu ()
N | (C | R1) | (C | R2) | ...
nu(c : ps<c>.pc<c> . AS)! | C1 | C2
AS = ps(c) . c(x). c(y) . c<x+y> . end
C1 = pc(c) . c<3>.c<4>.c(r).end
C2 = pc(c) . c<5>.c<6>.c(r).end
operation semantics
(_--->_) = ...
P | Q | R -> P' | Q' ....
c<r>.P | c(x).Q ---> P | Q[x\r] --->
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing