プログラム理論2014.key

Similar documents
( ) P, P P, P (negation, NOT) P ( ) P, Q, P Q, P Q 3, P Q (logical product, AND) P Q ( ) P, Q, P Q, P Q, P Q (logical sum, OR) P Q ( ) P, Q, P Q, ( P

handout.dvi

PowerPoint Presentation

2009 IA I 22, 23, 24, 25, 26, a h f(x) x x a h

7 ソフトウェア工学 Software Engineering モデル検査 MODEL CHECKING 1 モデル検査の概要 並行システム : 相互排他, デッドロック, スタベーションなどの現象 入出力関係に着目した 停止性 + 部分正当性 のみでは正当性を言えない 振る舞い ( 途中の状態遷移

油圧1.indd

L

報告書

untitled

C-1 210C f f f f f f f f f f f f f f f f f f f f r f f f f f f f f f f f f f R R

untitled

CRA3689A

c a a ca c c% c11 c12 % s & %

I A A441 : April 21, 2014 Version : Kawahira, Tomoki TA (Kondo, Hirotaka ) Google

F8302D_1目次_ doc


三菱電機(株):Qシリーズ QnU CPU イーサネット

φ 4 Minimal subtraction scheme 2-loop ε 2008 (University of Tokyo) (Atsuo Kuniba) version 21/Apr/ Formulas Γ( n + ɛ) = ( 1)n (1 n! ɛ + ψ(n + 1)

薄膜結晶成長の基礎2.dvi


B

< C93878CBB926E8C9F93A289EF8E9197BF2E786264>

<4D F736F F D2091E591BA8BA392F88DC58F4995F18D908F E372E332E646F63>

7


1 1.1,,,.. (, ),..,. (Fig. 1.1). Macro theory (e.g. Continuum mechanics) Consideration under the simple concept (e.g. ionic radius, bond valence) Stru

0 1

=

9 5 ( α+ ) = (α + ) α (log ) = α d = α C d = log + C C 5. () d = 4 d = C = C = 3 + C 3 () d = d = C = C = 3 + C 3 =

23 1 Section ( ) ( ) ( 46 ) , 238( 235,238 U) 232( 232 Th) 40( 40 K, % ) (Rn) (Ra). 7( 7 Be) 14( 14 C) 22( 22 Na) (1 ) (2 ) 1 µ 2 4




:,, : - 7 -

m dv = mg + kv2 dt m dv dt = mg k v v m dv dt = mg + kv2 α = mg k v = α 1 e rt 1 + e rt m dv dt = mg + kv2 dv mg + kv 2 = dt m dv α 2 + v 2 = k m dt d

油圧1.indd

(35H-3).pm

Z: Q: R: C:

06佐々木雅哉_4C.indd

Z 2 10Z MPa MPa MPa MPa 1.5MPa s s s JIS 6g/6H SD SD/B LB LS

power.tex

2

重力方向に基づくコントローラの向き決定方法

[ ] (Ising model) 2 i S i S i = 1 (up spin : ) = 1 (down spin : ) (4.38) s z = ±1 4 H 0 = J zn/2 i,j S i S j (4.39) i, j z 5 2 z = 4 z = 6 3

II No.01 [n/2] [1]H n (x) H n (x) = ( 1) r n! r!(n 2r)! (2x)n 2r. r=0 [2]H n (x) n,, H n ( x) = ( 1) n H n (x). [3] H n (x) = ( 1) n dn x2 e dx n e x2

I

( ) 2.1. C. (1) x 4 dx = 1 5 x5 + C 1 (2) x dx = x 2 dx = x 1 + C = 1 2 x + C xdx (3) = x dx = 3 x C (4) (x + 1) 3 dx = (x 3 + 3x 2 + 3x +

Microsoft Word TN_Epi_(final).docx

36 th IChO : - 3 ( ) , G O O D L U C K final 1

01.eps

1 48


TC316_A5_2面_web用PDF台紙.indd

untitled

untitled


¼§À�ÍýÏÀ – Ê×ÎòÅŻҼ§À�¤È¥¹¥Ô¥ó¤æ¤é¤® - No.7, No.8, No.9


MRI X......

.g.i.~.^.A

ヴィエトナム高原におけるマッシュルーム栽培の基本

2.

untitled

VDM-SL VDM VDM-SL Toolbox VDM++ Toolbox 1 VDM-SL VDM++ Web bool

1. (Naturau Deduction System, N-system) 1.1,,,,, n- R t 1,..., t n Rt 1... t n atomic formula : x, y, z, u, v, w,... : f, g, h,... : c, d,... : t, s,

1

数学の基礎訓練I

0-Ł\04†E01.pdf

スケーリング理論とはなにか? - --尺度を変えて見えること--


記号と準備

() n C + n C + n C + + n C n n (3) n C + n C + n C 4 + n C + n C 3 + n C 5 + (5) (6 ) n C + nc + 3 nc n nc n (7 ) n C + nc + 3 nc n nc n (

untitled

Îã³°·¿¤Î¥·¥å¡¼¥Ù¥ë¥È¥«¥êto=1=¡á=1=¥ë¥�¥å¥é¥¹


F-09C



untitled


δf = δn I [ ( FI (N I ) N I ) T,V δn I [ ( FI N I ( ) F N T,V ( ) FII (N N I ) + N I ) ( ) FII T,V N II T,V T,V ] ] = 0 = 0 (8.2) = µ (8.3) G

TD(0) Q AC (Reward): () Pr(r t+1 s t+1 = s,s t = s, a t = a) t R a ss = E(r t+1 s t+1 = s,s t = s, a t = a) R t = r t+1 + γr t γ T r t+t +1 = T

1000

2013 5

90 0 4

P3FY-A JP.PDF

1 1.1 [ ]., D R m, f : D R n C -. f p D (df) p : (df) p : R m R n f(p + vt) f(p) : v lim. t 0 t, (df) p., R m {x 1,..., x m }, (df) p (x i ) =



FREE

untitled

第5回東京都廃棄物審議会

西食堂


フィジカルコンディショニング

PowerPoint プレゼンテーション

支援リスト3/30.xls

untitled

untitled


Transcription:

(temporal logic) (modal logic)!! LTL! CTL! liveness safety properties! (Model Checking)!

LTL (linear-time temporal logic) Syntax! p Atoms (propositional atoms)! φ::= T p ( φ) (φ φ) (φ φ) (φ φ) (X φ)!! next (F φ)!! some Future state (G φ)!! Globally (all future states) (φ U φ)!! Until (φ W φ)!! Weak until (φ R φ)!! Release

Semantics ( ) Transition System! transition system (model) M=(S,, L)! S : (state)! : S S : (transition relation)! L : S P(Atoms)!!! : (labelling function)! Atoms: (atomic formulas)! (computation path)! s1, s2, si S, si si+1! π=s1 s2! πi: si π (suffix)! : π3=s3 s4

s0 p, q q, r r s2 s0 s2 s2 s2 s2 s2 s0 s1 s2 s2 s2 s2 s0 s1 s0 s2 s2 s2 s0 s1 s0 s1 s2 s2... s1 s0 s1 s2 s0 s2 s2 1 s1 s2 s2 s2

Semantics ( ) M=(S,, L), π=s1 s2! : (satisfaction relation)! π! =! T! π! =!! π! =! p!!! iff p L(s1)! π! =! φ!! iff π! = φ! π! =! φ1 φ2! iff π! = φ1 and π =φ2! π! =! φ1 φ2! iff π! = φ1 or π = φ2! π! =! φ1 φ2! iff π! = φ2 whenever π =! φ1

π! =! Xφ!!!! iff! π 2! =! φ! π! =! Gφ!!!! iff! π i! =! φ for every i 1! π! =! Fφ!!!! iff! π i! =! φ for some i 1! π! =! φuψ!!! iff! π i! =! ψ for some i 1 and!!!!!! π j! =! φ for every j!! such that 1 j<i! π! =! φwψ!!! iff! π i! =! ψ for some i 1 and!!!!!! π j! =! φ for every j! ( φwψ!! (φuψ) Gφ!!! )!!! such that 1 j<i!!!!!! or!!!!!! π k! =! φ for every k 1! π! =! φrψ!!! iff! π i! =! φ for some i 1 and!!!!!! π j! =! ψ for every j! such that 1 j i!!!!!! or! ( φrψ!! ψw(φ ψ)!! )! π k! =! ψ for every k 1

G (started ready)! started ready! G(requested F acknowledged)! request! G F enabled! enabled! ) enabled sm sm+1 F enabled n>m sn enabled

F G deadlock! deadlock! G F enabled G F running! enabled! G(floor2 directionup BottonPressed5 (directionup U floor5))! 2 5 5

M=(S,, L), s S! d M, s φ s M π π φ!! M! s φ

s0 s0 p q s0 Xr p, q s0 X(q r) s0 G(r q) q, r r s2 s0 F(p r) s0 pur s2 FGr s1 s s F( q r) FGr

! M! (a)-(e)( φ ) (1)(2)! (a) Gp (b) puq (c) pux(p q)! (d) X q G( p q)! (e) X(p q) F( p q) (1) s3 φ! (2) M,s3 =φ s1 s2 p, q p, q p, q p, q s3 s4 A model of M

LTL! LTL φ ψ M M π! π = φ iff π = ψ! φ ψ! φ ψ!!! φ χ φ ψ χ φ ψ χ

! Gφ F φ! Fφ G φ! Xφ X φ! (φuψ) φr ψ! (φrψ) φu ψ! F(φ ψ) Fφ Fψ! G(φ ψ) Gφ Gψ! Fφ TUφ! Gφ Rφ!!

/ (mutual exclusion)! Safety property : (critical section) 1 (mutual exclusion)! Liveness property: ( ) (Starvation-free/deadlock-free)! No strict sequencing:! Non-blocking:

1 2 non-critical n1 n2 t1 t2 trying to enter critical section c1 c2 critical section

Safety : G (c1 c2)! Liveness: G(t1 Fc1)! No strict sequencing: G(c1 c1w( c1 c1wc2))! c1 c1 c2 c1!...... c1 c1 c1 c1... c2 c1 strict seq. Non-Blocking: n1 t1 LTL ( )

1 n1n2 s0 s1 t1n2 s5 n1t2 s2 c1n2 s3 t1t2 s6 n1c2 s4 c1t2 n: non-critical state t: trying to enter critical state c: critical state s7 t1c2

Safety : G (c1 c2)! Liveness: G(t1 Fc1)! No strict sequencing: G(c1 c1w( c1 c1wc2))! c1 c1 c2 c1

2 s0 n1n2 s1 t1n2 s5 n1t2 s2 c1n2 s3 t1t2 s9 t1t2 s6 n1c2 s4 s7 c1t2 t1c2

s3, s9! Safety! Liveness! No strict sequencing

3 n1 Main1 Main2 n2 t1 I=1? n I=2? n t2 y y CS1 CS2 c1 c2 I:=2 I:=1

s0 n1n21 s6 n1n22 s1 t1n21 s2 n1t21 s7 t1n22 s8 n1t22 s3 c1n21 s4 t1t21 s9 t1t22 s10 n1c22 s5 c1t21 s11 t1c22

Safety! Liveness! ( Starvation-free: GF c1! No strict sequencing! Main )!

4 Dekker s Solution (logical version) LL (LR MR)? (LR MR) TL? LR (LL ML)? (LL ML) TL? ML CS1! TL false MR CS2 TL true TL? SL TL? SR PL Main1 PR Main2

Safety! Liveness (Main OK)! No strict sequencing