D
Academia Sinica IIS Intern [Learning] - Hoare Logic
Try
HackMD
D
·
Follow
Last edited by
D
on
Jul 3, 2024
Linked with GitHub
Contributed by
0
Comments
Feedback
Log in to edit or delete your comments and be notified of replies.
Sign up
Already have an account? Log in
There is no comment
Select some text and then click Comment, or simply add a comment to this page from below to start a discussion.
Discard
Send
Academia Sinica IIS Intern [Learning] - Hoare Logic
D
Hoare triples
{P} C {Q}
P : 執行前要滿足的狀態
Q : 執行後要滿足的狀態
C : 要執行的程式
state 的定義
Partial and Total Correctness
Partial Correctness
{P} C {Q} is true if
whenever C is executed in a state satisfying P
and if the execution of C terminates
then the state in which C's execution terminates satisfies Q
此程式不一定會停下來
如果停下來的話,一定會停在滿足 Q 的地方
Total Correntness
{P} C {Q} is true if and only if
whenever C is executed in a state satisfying P the execution of C terminates
after C terminates Q holds
Reference
Hoare Logic
Academia Sinica IIS Intern [Learning] - Hoare Logic
Hoare triples
Partial and Total Correctness
Partial Correctness
Total Correntness
Reference
Expand all
Back to top
Go to bottom
Academia Sinica IIS Intern [Learning] - Hoare Logic
Hoare triples
Partial and Total Correctness
Partial Correctness
Total Correntness
Reference
Expand all
Back to top
Go to bottom
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up
Comment