06: Truth & Proof
Logical Foundations of Cyber-Physical Systems
Logical Foundations of Cyber-Physical Systems
André Platzer
André Platzer
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 1 / 23
Logical Foundations of Cyber-Physical Systems Andr Platzer Andr - - PowerPoint PPT Presentation
06: Truth & Proof Logical Foundations of Cyber-Physical Systems Andr Platzer Logical Foundations of Cyber-Physical Systems Andr Platzer Andr Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 1 / 23 Outline Learning Objectives
André Platzer
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 1 / 23
1
2
3
4
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 2 / 23
1
2
3
4
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 2 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 3 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 4 / 23
1
2
3
4
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 4 / 23
P∈Γ P → Q∈∆ Q.
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 5 / 23
P∈Γ P → Q∈∆ Q.
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 5 / 23
P∈Γ P → Q∈∆ Q.
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 5 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 6 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 7 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 7 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 7 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 7 / 23
id
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 7 / 23
id
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 7 / 23
id
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 7 / 23
id
id
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 7 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 8 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 8 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 8 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 9 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 9 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 9 / 23
1
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 9 / 23
1
Todo Always make sure every axiom and proof rule we adopt is sound! André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 9 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 10 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 10 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 10 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 10 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 10 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 10 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 11 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 11 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 11 / 23
LFCPS/06: Truth & Proof LFCPS/06 12 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 12 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 12 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 12 / 23
id v2≤10,b>0 ⊢ b>0
id
LFCPS/06: Truth & Proof LFCPS/06 12 / 23
id v2≤10,b>0 ⊢ b>0
id
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 12 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 13 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 13 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 13 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 13 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 13 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 13 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 13 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 13 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 13 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 13 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 13 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 13 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 13 / 23
def
def
def
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 14 / 23
def
def
def
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 14 / 23
2t2=0→B(H− g 2t2,−c(−gt)))∧(H− g 2t2≥0→B(H− g 2t2,−gt
2t2]
2t2][v :=−gt]
2t2;v :=−gt]
def
def
def
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 14 / 23
def
def
def
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 15 / 23
def
def
def
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 15 / 23
def
def
def
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 15 / 23
def
def
def
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 15 / 23
def
def
def
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 15 / 23
2t2;v :=−gt]
def
def
def
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 15 / 23
2t2][v :=−gt]
2t2;v :=−gt]
def
def
def
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 15 / 23
2t2]
2t2][v :=−gt]
2t2;v :=−gt]
def
def
def
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 15 / 23
2t2=0→B(H− g 2t2,−c(−gt)))∧(H− g 2t2≥0→B(H− g 2t2,−gt
2t2]
2t2][v :=−gt]
2t2;v :=−gt]
def
def
def
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 15 / 23
2t2=0→B(H− g 2t2,−c(−gt)))∧(H− g 2t2≥0→B(H− g 2t2,−gt
2t2]
2t2][v :=−gt]
2t2;v :=−gt]
def
def
def
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 15 / 23
1
2
3
4
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 16 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 17 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 17 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 17 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 17 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 17 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 17 / 23
LFCPS/06: Truth & Proof LFCPS/06 18 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 18 / 23
LFCPS/06: Truth & Proof LFCPS/06 18 / 23
LFCPS/06: Truth & Proof LFCPS/06 18 / 23
LFCPS/06: Truth & Proof LFCPS/06 18 / 23
i∀ ⊢ d ≥ −x → 0 ≥ 0∧ x + d ≥ 0
LFCPS/06: Truth & Proof LFCPS/06 18 / 23
i∀ ⊢ ∀d
LFCPS/06: Truth & Proof LFCPS/06 18 / 23
LFCPS/06: Truth & Proof LFCPS/06 18 / 23
LFCPS/06: Truth & Proof LFCPS/06 18 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 18 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 18 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 19 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 19 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 19 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 19 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 19 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 19 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 19 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 19 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 19 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 19 / 23
WLA,r≥0 ⊢ 0≤r≤r
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 20 / 23
2t2 + vt + x by new variable z makes it easy:
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 21 / 23
2t2 + vt + x by new variable z makes it easy:
Chapter 12 André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 21 / 23
2t2 + vt + x by new variable z makes it easy:
Chapter 12
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 21 / 23
2t2 + vt + x by new variable z makes it easy:
Chapter 12
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 21 / 23
cut
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 22 / 23
WL(x−y)2≤0,p(y) ⊢ x = y,p(x) WL(x−y)2≤0,p(y),x = y ⊢ p(x) cut
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 22 / 23
WR
WL(x−y)2≤0,p(y) ⊢ x = y,p(x) WL(x−y)2≤0,p(y),x = y ⊢ p(x) cut
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 22 / 23
WR
WL(x−y)2≤0,p(y) ⊢ x = y,p(x) =R
WL(x−y)2≤0,p(y),x = y ⊢ p(x) cut
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 22 / 23
WR
WL(x−y)2≤0,p(y) ⊢ x = y,p(x) id
=R
WL(x−y)2≤0,p(y),x = y ⊢ p(x) cut
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 22 / 23
WR
WL(x−y)2≤0,p(y) ⊢ x = y,p(x)
id
=R
WL(x−y)2≤0,p(y),x = y ⊢ p(x) cut
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 22 / 23
1
2
3
4
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 22 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 23 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 23 / 23
André Platzer (CMU) LFCPS/06: Truth & Proof LFCPS/06 23 / 23