Download Sceptic User Manual
Transcript
Contents 1 Introduction 2 Syntax 3 Using Sceptic 3.1 3.2 3.3 3.4 3.5 Starting the system . . . . . . Loading a le of productions Escaping to Prolog . . . . . . Typing in extra productions . Conguring the system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Execution 1 3 4 4 4 5 5 6 8 4.1 The cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4.2 End-of-cycle processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4.3 Triggers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 5 Relation to Prolog 10 5.1 Internal form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 5.2 Calling Prolog from Sceptic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 5.3 Calling Sceptic from Prolog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 6 Debugging 6.1 6.2 6.3 6.4 The Sceptic debugger . . Initial command settings . Act phase commands . . . Rec phase commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Robustness . . . . . . . . . . . . . Eciency . . . . . . . . . . . . . . Why not just use Prolog? . . . . . Is Sceptic a specication language? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Caveats 7.1 7.2 7.3 7.4 8 A B C . . . . . . . . . . . . Pitfalls for the Unwary Truth Maintenance Example Pursuer-Evader Example Command Summary 12 12 12 13 14 16 16 16 16 16 17 19 25 33 C.1 Top level commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 C.2 Conguration parameters (normally in sceptic.ini) . . . . . . . . . . . . . . . . . 33 C.3 Debugging commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 D Backwards Compatibility 35 D.1 Old functionality (now removed) . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 D.2 New functionality (not present in previous releases) . . . . . . . . . . . . . . . . . 36 ii