11: Differential Equations & Proofs
Logical Foundations of Cyber-Physical Systems
Logical Foundations of Cyber-Physical Systems
André Platzer
André Platzer
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 1 / 24
Logical Foundations of Cyber-Physical Systems Andr Platzer Andr - - PowerPoint PPT Presentation
11: Differential Equations & Proofs Logical Foundations of Cyber-Physical Systems Andr Platzer Logical Foundations of Cyber-Physical Systems Andr Platzer Andr Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11
André Platzer
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 1 / 24
1
2
3
4
5
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 2 / 24
1
2
3
4
5
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 2 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 3 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 4 / 24
1
2
3
4
5
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 4 / 24
x
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 6 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 7 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 7 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 8 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 8 / 24
x
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 8 / 24
x
x
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 8 / 24
x
x
x
LFCPS/11: Differential Equations & Proofs LFCPS/11 8 / 24
x
x
x
x
x
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 8 / 24
x
x
x
x
x
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 8 / 24
x
x
x
x
x
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 8 / 24
x
x
x
x
x
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 8 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 9 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 10 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 10 / 24
DW ⊢ [x′ = v,v′ = −g &x ≥ 0]0 ≤ x
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 10 / 24
G ⊢ [x′ = v,v′ = −g &x ≥ 0](x ≥ 0 → 0 ≤ x) DW ⊢ [x′ = v,v′ = −g &x ≥ 0]0 ≤ x
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 10 / 24
G ⊢ [x′ = v,v′ = −g &x ≥ 0](x ≥ 0 → 0 ≤ x) DW ⊢ [x′ = v,v′ = −g &x ≥ 0]0 ≤ x
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 10 / 24
G ⊢ [x′ = v,v′ = −g &x ≥ 0](x ≥ 0 → 0 ≤ x) DW ⊢ [x′ = v,v′ = −g &x ≥ 0]0 ≤ x
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 10 / 24
G ⊢ [x′ = v,v′ = −g &x ≥ 0](x ≥ 0 → 0 ≤ x) DW ⊢ [x′ = v,v′ = −g &x ≥ 0]0 ≤ x
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 10 / 24
G ⊢ [x′ = v,v′ = −g &x ≥ 0](x ≥ 0 → 0 ≤ x) DW ⊢ [x′ = v,v′ = −g &x ≥ 0]0 ≤ x
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 10 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 11 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 11 / 24
DI e = 0 ⊢ [x′ = f(x)&Q]e = 0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 11 / 24
DE
DI e = 0 ⊢ [x′ = f(x)&Q]e = 0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 11 / 24
DW
DE
DI e = 0 ⊢ [x′ = f(x)&Q]e = 0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 11 / 24
G,→R
DW
DE
DI e = 0 ⊢ [x′ = f(x)&Q]e = 0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 11 / 24
G,→R
DW
DE
DI e = 0 ⊢ [x′ = f(x)&Q]e = 0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 11 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 12 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 12 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 12 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 13 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 13 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 13 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 13 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 14 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 14 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 14 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 14 / 24
1 2 3 4 5 6 1.5 1.0 0.5 0.5 1.0 André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 15 / 24
1 2 3 4 5 6 1.5 1.0 0.5 0.5 1.0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 15 / 24
1 2 3 4 5 6 1.5 1.0 0.5 0.5 1.0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 15 / 24
1 2 3 4 5 6 1.5 1.0 0.5 0.5 1.0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 15 / 24
1 2 3 4 5 6 1.5 1.0 0.5 0.5 1.0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 15 / 24
1 2 3 4 5 6 1.5 1.0 0.5 0.5 1.0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 15 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 16 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 16 / 24
DIA ⊢ [x′ = f(x)]A
DIB ⊢ [x′ = f(x)]B
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 16 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 17 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 17 / 24
dI
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 17 / 24
dI
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 17 / 24
dI
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 17 / 24
dI
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 17 / 24
dI
id
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 17 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 18 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 18 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 18 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 18 / 24
DIA ⊢ [x′=f(x)]A MR
DIB ⊢ [x′=f(x)]B MR
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 18 / 24
DIA ⊢ [x′=f(x)]A MR
DIB ⊢ [x′=f(x)]B MR
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 18 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 19 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 19 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 19 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 19 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 19 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 19 / 24
1
2
3
4
5
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 19 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 20 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 20 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 20 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 20 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 20 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 20 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 20 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 20 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 20 / 24
dC ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0]ω2x2+y2≤c2
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 21 / 24
dC ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0]ω2x2+y2≤c2
1 2 3 4 5 6
0.0 0.5 1.0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 21 / 24
dI ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0∧d≥0]ω2x2+y2≤c2 dC ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0]ω2x2+y2≤c2
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 21 / 24
dI ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0∧d≥0]ω2x2+y2≤c2 dC ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0]ω2x2+y2≤c2 dI d≥0 ⊢ [x′ = y,y′ = −ω2x − 2dωy,d′=7&ω≥0]d≥0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 21 / 24
dI ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0∧d≥0]ω2x2+y2≤c2 dC ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0]ω2x2+y2≤c2
dI d≥0 ⊢ [x′ = y,y′ = −ω2x − 2dωy,d′=7&ω≥0]d≥0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 21 / 24
dI ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0∧d≥0]ω2x2+y2≤c2 dC ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0]ω2x2+y2≤c2
dI d≥0 ⊢ [x′ = y,y′ = −ω2x − 2dωy,d′=7&ω≥0]d≥0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 21 / 24
dI ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0∧d≥0]ω2x2+y2≤c2 dC ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0]ω2x2+y2≤c2
dI d≥0 ⊢ [x′ = y,y′ = −ω2x − 2dωy,d′=7&ω≥0]d≥0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 21 / 24
dI ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0∧d≥0]ω2x2+y2≤c2 dC ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0]ω2x2+y2≤c2
dI d≥0 ⊢ [x′ = y,y′ = −ω2x − 2dωy,d′=7&ω≥0]d≥0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 21 / 24
dI ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0∧d≥0]ω2x2+y2≤c2 dC ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0]ω2x2+y2≤c2
dI d≥0 ⊢ [x′ = y,y′ = −ω2x − 2dωy,d′=7&ω≥0]d≥0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 21 / 24
dI ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0∧d≥0]ω2x2+y2≤c2 dC ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0]ω2x2+y2≤c2
dI d≥0 ⊢ [x′ = y,y′ = −ω2x − 2dωy,d′=7&ω≥0]d≥0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 21 / 24
dI ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0∧d≥0]ω2x2+y2≤c2 dC ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0]ω2x2+y2≤c2
dI d≥0 ⊢ [x′ = y,y′ = −ω2x − 2dωy,d′=7&ω≥0]d≥0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 21 / 24
dI ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0∧d≥0]ω2x2+y2≤c2 dC ω2x2+y2≤c2 ⊢ [x′=y,y′=−ω2x−2dωy,d′=7&ω≥0]ω2x2+y2≤c2
dI d≥0 ⊢ [x′ = y,y′ = −ω2x − 2dωy,d′=7&ω≥0]d≥0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 21 / 24
dC x3 ≥ −1∧ y5 ≥ 0 ⊢ [x′ = (x − 2)4 + y5,y′ = y2]x3 ≥ −1
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 22 / 24
dC x3 ≥ −1∧ y5 ≥ 0 ⊢ [x′ = (x − 2)4 + y5,y′ = y2]x3 ≥ −1 dI y5 ≥ 0 ⊢ [x′ = (x − 2)4 + y5,y′ = y2]y5 ≥ 0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 22 / 24
dC x3 ≥ −1∧ y5 ≥ 0 ⊢ [x′ = (x − 2)4 + y5,y′ = y2]x3 ≥ −1
dI y5 ≥ 0 ⊢ [x′ = (x − 2)4 + y5,y′ = y2]y5 ≥ 0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 22 / 24
dC x3 ≥ −1∧ y5 ≥ 0 ⊢ [x′ = (x − 2)4 + y5,y′ = y2]x3 ≥ −1
dI y5 ≥ 0 ⊢ [x′ = (x − 2)4 + y5,y′ = y2]y5 ≥ 0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 22 / 24
dC x3 ≥ −1∧ y5 ≥ 0 ⊢ [x′ = (x − 2)4 + y5,y′ = y2]x3 ≥ −1
dI y5 ≥ 0 ⊢ [x′ = (x − 2)4 + y5,y′ = y2]y5 ≥ 0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 22 / 24
dI
dC x3 ≥ −1∧ y5 ≥ 0 ⊢ [x′ = (x − 2)4 + y5,y′ = y2]x3 ≥ −1
dI y5 ≥ 0 ⊢ [x′ = (x − 2)4 + y5,y′ = y2]y5 ≥ 0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 22 / 24
dI
dC x3 ≥ −1∧ y5 ≥ 0 ⊢ [x′ = (x − 2)4 + y5,y′ = y2]x3 ≥ −1
dI y5 ≥ 0 ⊢ [x′ = (x − 2)4 + y5,y′ = y2]y5 ≥ 0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 22 / 24
dI
dC x3 ≥ −1∧ y5 ≥ 0 ⊢ [x′ = (x − 2)4 + y5,y′ = y2]x3 ≥ −1
dI y5 ≥ 0 ⊢ [x′ = (x − 2)4 + y5,y′ = y2]y5 ≥ 0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 22 / 24
dI
dC x3 ≥ −1∧ y5 ≥ 0 ⊢ [x′ = (x − 2)4 + y5,y′ = y2]x3 ≥ −1
dI y5 ≥ 0 ⊢ [x′ = (x − 2)4 + y5,y′ = y2]y5 ≥ 0
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 22 / 24
1
2
3
4
5
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 22 / 24
def
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 23 / 24
1
2
3
4
5
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 23 / 24
t x Q w u r x′ = f(x) & Q ¬Q
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 24 / 24
t x Q w u r x′ = f(x) & Q ¬Q
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 24 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 24 / 24
André Platzer (CMU) LFCPS/11: Differential Equations & Proofs LFCPS/11 24 / 24