Home
here is the user manual
Contents
1. Signature Name Constant Add Relation Symbol Add Save Cancel In this window you can add constants and relation symbols as well as specify the name for the new signature Once you have created the new signature click on Save to load it in the main window LOST Logic Semantics Tutor oaving a signature You can save the signature that you are working with in a file It will be stored in an XML format as follows lt xml version 1 0 encoding utf 8 gt lt DOCTYPE signature SYSTEM signature dtd signature name People gt constants constant name mary gt lt constant gt constant name marc constant constant name jane constant constant name clara gt lt constant gt lt constants gt lt relation_symbols gt relation symbol name human arity R 204 G 0 B 204 gt lt relation_symbol gt relation symbol name likes arity 2 R 0 G 0 B 0 gt relation symbol relation symbol name hates arity 2 R 0 G 0 B 0 gt lt relation_symbol gt relation symbol name 2 young arity 1 R 102 G 255 B 102 gt lt relation_symbol gt relation symbol name tall arity 1 R 255 G 255 B 0Q gt lt relation_symbol gt lt relation_symbols gt lt signature gt The section constants contains the constants of the signature with an entry for each The second section relation_symbols contains en en
2. in the sentence is not part of the signature If no such error occurs the truth value of the sentence will be calculated and returned 1n the console Console The sentence x adult x Jy hates x y x xy l is false inthe structure 20 LOST Logic Semantics Tutor Translating a sentence This feature implements iteral translation of logic sentences to English In order to get meaningful English sentences a dictionary needs to be defined The dictionary includes an entry for each relation symbol of the signature specifying how the relation symbol 1s read in English There are six possible options Type Meaning I 1s a property e g dragon dragon x gt x is a dragon 2 adjective e g tall tall x gt x is tall 3 capability e g fly fly x gt x can fly 4 description e g smokes smokes x gt x smokes 5 transitive verb active form e g likes likes x y gt x likes y 6 nullary predicate e g Tuesday Tuesday gt Tuesday We will now see the structure of dictionary files which has an XML format dictionary name dragon dictionary gt lt word name adult type 1 gt lt word gt lt word name tall type 2 gt lt word gt lt word name male type 2 gt lt word gt lt word name female type 2 gt lt word gt lt word name hunt type 3 gt lt word gt lt word name young type 2 gt lt word gt lt word name fly type 3 gt
3. To add a relation symbol to an object click on the name of the relation symbol in the signature tree located in the Signature Panel and then left click on the object in the structure If we add for example a relation symbol of yellow colour to an object this 1s the result oO C C mary mary There is no restriction to the number of relation symbols that an object can have The circle will be split in as many parts as necessary each time and 4d boy drawn accordingly as we can see in the picture on the right Removing a unary relation symbol from an object To remove a unary relation symbol from an object right click the object and select Remove x where x is the name of the relation symbol 15 LOST Logic Semantics Tutor Adding a binary relation to the structure To add a binary relation symbol to the structure click on the name of the relation symbol in the signature tree located in the Signature Panel Then left click once the first object and then left click the second object that represent the arguments of the relation symbol An arrow coloured in the colour of the relation symbol in the signature tree will be drawn between the two objects Removing a binary relation symbol from the structure You can remove a binary relation symbol from a structure by right clicking on the arrow that represents the relation symbol and selecting remove x where x is the name of the relation symbol that the a
4. to the Formula Panel Most of the times when the sentence is incorrect a meaningful message will shown to say what was wrong with it like the example shown above In a small number of cases the message will just read Unmatched input In any case if the sentence you wrote is incorrect you will have to edit it and retry checking it What can do with a formula With any of the sentences that appear in the FormulaPanel you can do one of the following things e Evaluate it on a structure e Play the Hintikka game on a structure e Translate it For each of these actions there is a button in the Formula Panel 19 LOST Logic Semantics Tutor Formula Panel x x adult x 3y hates x y A x y Translate Play Hintikka Game Evaluate Evaluating a sentence In order for a sentence to be evaluated there needs to be a structure present Assuming a structure is loaded clicking Evaluate will calculate the truth value of the sentence For this to be possible all the constants and relation symbols that appear in the sentence must also be present in the signature If for example after writing a sentence that contains the constant boy you remove the constant from the signature the evaluation of the sentence will not be possible If you try to evaluate it the following message will appear in the console Console It is not possible to evaluate the sentence because The constant hoy
5. write formulae in XML files NOT 2 AND gt OR gt IMPLIES gt IF AND ONLY IF gt THERE EXISTS gt FORALL gt 8 NOT EQUALS gt TRUTH gt TRUTH FALSITY gt FALSITY em J S gt 1 gt lt formulas gt lt formula gt x adult x y hates x y x y lt formula gt lt formula gt y young y adult y lt formula gt lt formula gt x y playsWith x y x boyty girl lt formula gt lt formula gt hates mother stranger tyoung girl lt formula gt lt formula gt x female x x mother x girl lt formula gt lt 7 Tori ka ss Unfortunately formulae could not be stored in files using logical symbol characters These are in Unicode and are not understood by the parser that is used to load them As a result formulae need to be transformed before being stored in files The comments in the XML file above show you the characters that each logical symbol 1s replaced with e g becomes etc Please ensure that if you ever write formula files manually you follow these rules otherwise your formulae will not be understood by the software 23 LOST Logic Semantics Tutor To save the sentences that are currently loaded in the Formula Panel go to menu and select Formula Save Sentence s Alternatively click on the menu bar button vy i Choose a file name and a directory ensure that the directory where you save the formula file contains the formula dtd file that wi
6. LOST Logic Semantics Tutor LOgic Semantics Tutor LOST User Guide v1 0 June 2007 LOST Logic Semantics Tutor Table of contents 1 2 3 irod ctiou nn iii iii 3 The User Interface sn EHE unun nunus 4 WV OE KING WIR SIGH ACUTE ES es uuu Du uyu uy u seven sence usus 6 CCAM GSA Sion Ir cc wate T HERR 6 Saving a STE DIO eier tee E sateen ane conte detente dense 7 koades asis al ruuc u unun ss uum u bes ei Rene as aaa te wheat hors 8 Modity mo aro NVA cde iei utr de Ont cts etie pui telis De dy os AR en 9 WY OF KUNE with Structures eee ere a in dee Ee Een Ee NEN EER Su ERE EEUU UN 11 Creal Oa SITUCCUTO su cta tei ec ii ciment 11 ROPE RNB RS CASA MT LOU D NS ERR E P I UR 11 OA s u ua m mua au a in ne te io 14 MOI ANS A STOCU coin NE Nan dre ide 14 WY OF INS WIR SOMEONES sai u u Dee n E een i Q u De eos azu aa asas 17 ACIDE d SEDI E end mme E 17 Pili rss C i osse icto Ioa Sd a 20 ANS AUS A S MO NC C 21 DAVIS Se DONC SR en A ai et in et 23 GALE SeUtellCeS een in ire sen dieu de 24 Th HintlkK d pamet yu u E riens 25 The rules E 25 The same Meri aC nd ei died chienne der ibid 26 Playin the AIG a g Sg uy nec ah aa uama yk kama te onde asss 28 LOST Logic Semantics Tutor 1 Introduction Welcome The LOgic Semantics Tutor LOST has been developed as an educational tool to assist students who are learning first order l
7. ayer s turn to select an object in 99 the structure for the variable y Before the game starts you can choose which players will play The possible options are e Human against the computer e Computer against itself e Human against another human If a computer player is going to be involved you can define how much time the computer will be given to think The options are 1 3 5 10 and 15 seconds The Structure Panel On the top right of the screen is displayed the structure on which the game is played No possible actions are possible on the structure in this window Objects cannot be added altered or deleted it is not allowed in the game The only thing that is possible is assigning variables to objects This will only be allowed when the player who has turn is asked to select an object in the structure for a variable This will be the case when the current node in the formation tree is either 3 or V The Formula Tree Panel The bottom half of the Hintikka game screen is filled with the sentence formation tree on which the game will be played When a player is required to select the next branch to go along in the tree he she can click one of the two nodes immediately below the last node 27 LOST Logic Semantics Tutor that has been highlighted in blue The path that the game has unfolded on 1s highlighted in blue in the formation tree The signature is not present in the window since no modifi
8. cations to it are possible during the game If the user needs to look at the signature to see which colours correspond to which predicates for example he can move the Hintikka window and look at the signature panel in main window of the application Playing the game When you click the Start button labels need to be assigned for each player Unless the computer plays against itself 1n which case the assignment of labels is done internally the following window is presented Assigning player roles Before starting the game need to assign V to a player and 3 to the other Do you believe the formula vx adult x gt dy hates x y vxsy is true or false in the given structure True False If you click True you will be given the 4 label and the computer the V label otherwise it will be the other way round Now the game can begin Let s have a look at a screenshot in the middle of a Hintikka game of a human player against the computer 28 LOST Logic Semantics Tutor Game Pane Structure Pane Computer It is 3 player s turn to select an object in the structure for the variable y mother adult x The label of the player who has to make a move is in an orange border which will become green when a player wins the game An instruction tells the player what to do at this stage of the game In the screenshot it is the 3 player s turn to select an object in th
9. e structure to assign the variable y to 20
10. e versa an atomic or quantifier free formula then evaluate the formula in the given structure with the current values for the variables o If the formula is true the 3 player wins o Ifitis false the V player wins 25 LOST Logic Semantics Tutor The game ends when a leaf atomic formula is reached Therefore during the game each player should try to lead the game towards a leaf that will make him her win This will be a leaf which evaluates to true if the player is 4 and a leaf which evaluates to false if the player is V The game interface Once you have created a sentence you can select it and click on the Play Hintikka Game button A new window will be loaded looking like this Ey Hintikka Game I E3 Game Pane Structure Pane v 3 6 girl Welcome to the Hintikka Game t Please click the Start Game button below to begin boy i father m e Human vs Computer Computer thinking time P Computer vs Computer in secs O Human vs Human i3 l monet ETAT LICC jS Start Game Help me Start over Tree Pane Wx po at young x A k hates x y X y 26 LOST Logic Semantics Tutor The Game Panel The top left of the screen holds instructions about the game and will be updated as the game unfolds showing which player s turn it is Instructions are of the form It is player s turn to select the next node down or It is 3 pl
11. ew structure A 7 Formula Panel Console Add constant Add relation symbol S New signature The Signature Panel in the left hand side will be used to display signatures These can either be created via the interface or loaded from files The Structure Panel will display structures which can be edited using the mouse and the signature tree in the Signature Panel Once you have loaded or created a structure you can write first order sentences in the Formula Panel Once a new sentence has been created you can evaluate it on the structure The Console is used to display comments and results LOST Logic Semantics Tutor You can also obtain a literal translation of a logic sentence in English by providing a dictionary We will see all this in detail shortly Finally the most interesting feature perhaps in the Hintikka game that 1s played using the formation tree of a sentence and a structure LOST Logic Semantics Tutor 3 Working with signatures Only one signature can be loaded in the interface at any time to keep things simple Creating a signature To create a signature go to the menu and select Signature New Signature Alternatively click on the menu bar button ar or on the button New Signature in the bottom of the Signature Panel You will be presented with the following window xal Create Signature
12. ignature can be modified Renaming a signature To rename a signature right click on its name in the signature tree this is the root element of the tree and select Rename signature Adding a constant To add a constant to the signature either click on the button Add constant in the bottom of the Signature Panel or right click on the signature tree element called Constants and choose Add constant Renaming a constant To rename a constant right click on its name in the signature tree and select Rename Deleting a constant To delete a constant right click on the name on its name in the signature tree and select Delete Adding a relation symbol To add a relation symbol to the signature either chck on the button D Add relation symbol in the bottom of the Signature Panel or right click on the signature tree element called Relation Symbols and choose Add relation symbol LOST Logic Semantics Tutor Renaming a relation symbol To rename a relation symbol right click on its name in the signature tree and select Rename Changing the colour of a relation symbol To change to colour of a relation symbol right click on its name and select Change colour Any colour changes you make will be reflected in the structure that is loaded if there 1s one Changing the arity of a relation symbol To change the arity of a relation symbol right click on its name go ove
13. ll be needed to load the formula file in the future Click Save Loading sentences To load a set of sentences go to the menu and select Formula gt Load sentence s Alternatively click on the menu bar button El V Choose the file that you want to load and press Open 24 LOST Logic Semantics Tutor 6 The Hintikka game The Hintikka game is a special game for sentence evaluation and is very useful in understanding first order logic semantics In order to play the game there needs to be a structure and a sentence The game unfolds on the formation tree of the sentence The rules The player involves two players Before the game begins a label needs to be assigned to each player The two labels are 4 and V The player who is believes that the sentence is true in the structure starts with the label 3 and the other with the label V The game starts at the root of the formation tree At each point in the game we look at the node in the tree where the game is currently at If that node is of the form then the V player has to choose a value for x 1 e an object in the structure then the d player has to choose a value for x 1 e an object in the structure then the V player chooses the next branch to follow down the tree then the 3 player chooses the next branch to follow down the tree regard AB as AAB v 3AA B regard AB as AAB then swap labels 3 and V The player who was 3 becomes V and vic
14. lt word gt word name likes type 5 gt lt word gt word name hates type 5 gt lt word gt word name Monday type 6 gt lt word gt lt dictionary gt Note that if a relation symbol is not found in the dictionary its translation will be left as the atomic formula is written in logic e g tall x 21 LOST Logic Semantics Tutor The dictionary that we presented above can be used to translate the following sentence vx young x 53y hates x y xzy And this is the result Console The sentence Yxi young x gt M hates xy A x y J was teraiy translated as follows for every x i x 1s young then there exists ay such that x hates y and x 15 not the same object as y The colours hopefully help visually separate the sub formulae that make up the sentence They also help in suggesting how the sentence should be read Keep in mind however that this is just a literal translation not the way that we would naturally express this sentence in English A natural English translation of the sentence would be everything that is young hates something else 22 LOST Logic Semantics Tutor oaving sentences You can save all the sentences that are shown in the Formula Panel in a file It will be stored in an XML format as follows lt xml version 1 0 encoding utf 8 gt lt DOCTYPE formulas SYSTEM formula dtd gt lt Please use the following symbol mappings when you manually
15. ogic We assume that you are familiar with the syntax and semantics of first order logic namely notions such as that of a signature a structure and a formula In this document we will explain the different features of the software and how to use them For more information you can always refer to the report of this project Using this software you will have the opportunity to create and edit signatures and structures with total control via the user interface and 100 graphical representation Once a structure 1s loaded you can write logic sentences which you can then evaluate on the structure or play the Hintikka game as seen in the 40 Logic course If you are interested you can also obtain literal translations of logic sentences in English LOST Logic Semantics Tutor 2 he User Interface This is interface of LOST with a structure and its signature loaded leet Logic Semantics Tutor Jeg File Signature Structure Formulas Help Li x 4 50 09 amp 8 894 V B V Signature Panel Structure Panel ri was Monday is false stranger 0 SunnyDay is true boy girl girl father mother 6 1 Relation symbols td v Bl adult arity 1 boy Bl hates arity 2 fathei B SunnyDay arity 0 Bl nunts arity 1 2 gt G EJ young arity 1 ll Monday arity 0 mother stranger E male arity 1 B flies arity 1 Bl female arity 1 LJ new arity 1 Small objects Large objects Add Object N
16. r Change arity with the mouse and select a new arity for the relation symbol If there is a structure loaded in LOST the relation symbol will be removed from it Deleting a relation symbol To delete a relation symbol from the signature right click on its name in the signature tree and select Delete 10 LOST Logic Semantics Tutor 4 Working with structures Creating a structure In order to be able to create a structure there needs to be a signature present Structures are defined based on a signature Once a signature has been loaded you can go to menu and select Structure New structure Alternatively click on the menu bar button AN new structure will be created that will contain one object since structures are defined as a non empty set of objects This will by default have all the constants of the signature mapped to it oaving a structure You can save the structure that you are working with in a file It will be stored in an XML format as follows 11 LOST Logic Semantics Tutor lt xml version 1 0 encoding utf 8 gt IDOCTYPE structure SYSTEM structure dtd gt structure name null signature name Dragons gt lt o nstants gt constant name boy gt lt constant gt constant name girl gt lt constant gt lt constants gt lt relation_symbols gt lt relation_symbol name playsWith arity 2 R 255 G 204 B 0 gt lt relation_symbol gt
17. rea below Both normal and square brackets are accepted Nate valid variable names are either a one character words with a lower case alphabet character a z OR b one character words with a lower case alphabet character a z followed by a digit a TU p 3 Add to list Clear Check sentence On top of this window there 1s a button for each constant and each relation symbol of the signature that is loaded in the main window The buttons that represent the relation symbols also include the arity of the relation symbol which can be helpful when writing sentences By clicking these buttons text will be inserted in the white text area located in the lower part of the window You can also write text manually if you prefer 17 LOST Logic Semantics Tutor Below these buttons is a row of buttons that represent logical symbols These cannot be entered via the keyboard you will need to click on the buttons to get the corresponding symbol Note when writing sentences that use quantifiers make sure that you follow the following structure Vx A and 3x A The parser needs the brackets around A in order to successfully parse the sentence Once you have finished writing the sentence click on Check formula This will parse it checking for syntactic errors and errors with respect to the signature If the sentence 1s correct you will be presented with the following screen and the Add to list but
18. relation symbol name Monday arity 0 R 0 G 0 G 204 B 204 gt lt relation_symbol gt relation symbol name female arity 1 R 255 G 51 B 255 gt lt relation_symbol gt lt relation_symbols gt lt signature gt lt objects gt object LATINE lt poOsi tion x 285 0 y lo5 0 gt lt position lt labels gt lt label name boy gt lt label gt lt labels gt lt unary_predicates gt lt unary_predicates gt lt object gt lt object 1id 2 gt lt OOS TE LOM HB 55 0 yar 247 OM lt poste omes lt labels gt lt label name girl gt lt label gt lt labels gt g lt unary_predicates gt lt unary_predicate name female gt lt unary_predicate gt lt unary_predicates gt lt object gt amp fobjects binary predicates binary predicate name playsWith sourceObjectID 1 targetObjectID 2 2 binary predicate lt binary_predicates gt lt nullary_predicates gt lt nullary_predicate name Monday value true gt lt nullary_predicate gt lt nullary_predicates gt lt structure gt 12 LOST Logic Semantics Tutor When a structure is saved its signature is saved in the same file This way when a structure is loaded in LOST its signature can be loaded at the same time The structure element of the XML file contains three elements the signature the objects the binary predicates and the nullary predicates A signature will be stored in the same way tha
19. rrow represents Changing the value of a nullary relation symbol Relation symbols of arity 0 are represented as text in the structure graph Their truth value will either be true or false in the structure You can change the truth value of nullary relation symbols in a structure by right clicking on their name and selecting make true or make false depending on the current truth value of the relation symbol Changing the size of objects The buttons in the bottom of the Structure Panel allow you to select the size that you want the structure objects to have This can be changed at any time and as often as you want 16 LOST Logic Semantics Tutor 5 Working with sentences Note a sentence is a formula with no unquantified variables Adding a sentence Before you can create a new sentence there needs to be a signature present To add a sentence click on the Add button of the Formula Panel You can also do this by going to the menu and selecting Formula Add sentence or by clicking the menu bar button V You will be presented with the following window Ly Enter a new sentence RELATION SYMBOLS CONSTANTS Badult MH Sunny In hates GO young stranger boy NO Eas mond unter mother E male L El femal father LOGICAL SYMBOLS u M EN lls Please enter a sentence in the a
20. t signature files are structured The objects section will contain an entry for each structure object each holding the following information Id each structure object is given a unique id used for internal operations Position the position that the object has in the structure graph This like the id attribute 1s not part of a structure conceptually It is information needed when drawing structures in LOST Labels each label entry represents a constant mapped to the structure object Unary Predicates one entry for each unary predicate that holds for the structure object The binary predicates section contains an entry for each occurrence of a binary relation symbol that holds in the structure Each such entry contains the id of the two objects that are the relation symbol s arguments Finally the nullary predicates section contains an entry for each relation symbol of arity O that appears in the signature The value of a nullary predicate can either be true or false in the structure To save a structure go to the menu and select Structure Save structure Alternatively click on the menu bar button ay E Choose a file name and a directory ensure that the directory where you save the structure contains the structure dtd file that will be needed to load it in the future Click Save 13 LOST Logic Semantics Tutor Loading a structure To load a structure go to the menu and selec
21. t Structure Load structure Alternatively click on the menu bar button A Choose the file that you want to load and press Open Closing a structure To remove a structure from the main window go to the menu and select Structure gt Close structure Modifying a structure Adding an object to the structure To add an object to the structure click on the Add Object button which is located in the bottom of the Structure Panel This will add a new object to the top left corner of the structure graph Deleting an object from the structure To delete an object from the structure right click on it and select Delete object This action will not be permitted if the object in question is the only object in the structure Remember that a structure 1s defined as a non empty set of objects 14 LOST Logic Semantics Tutor Mapping a constant to a structure object To map a signature constant to an object simply click on the constant name in the signature tree located in the Signature Panel and then left click the object in the structure If the constant was previously mapped to another object of the structure it will be removed from that object and added to the new one Remember that a constant must be mapped to one object in the structure at any time The names of the constants mapped to an object will be written e below the object one under the other C mary Adding a unary relation symbol to an object
22. ton will become clickable ST Enter a new sentence RELATION STMBOLS CONSTANTS stranger boy father L l mother J f iF Ti if B adult Sunny W hates O young a Ellas E Mond Nihnunt El femal LOGICAL SYMBOLS 1r jw The sentence you entered is CORRECT Click on the add button below to add it to the formulas list vx adult x 3y hates xy A xs vi l I Addtolist Clear Checksentence If you click on the Add to list button the window will disappear and the sentence will be added to the list in the Formula Panel If on the other hand the sentence that you entered was incorrect you will be presented with the following screen 18 LOST Logic Semantics Tutor by Enter a new sentence RELATION SYMBOLS CONSTANTS CIE lam B olass I li ond i Bl hunt i moth r m o Badult mm Bi Sunny Sunny bB w aac young stranger _ faner er F E N Emale Bl femal LOGICAL SYMBOLS There was an error in the sentence you entered The relation symbol hates is defined with arity 2 in signature but here H has Tarquments passed Please change the formula and try again v y adult x 3y hate s y A x y Add to list Clear Check sentence You will be prevented from adding the sentence
23. try for each relation symbol The RGB values that appear as attributes in the relation symbols are not part of a signature in theory The colour as we will see later is used to represent the relation symbol structures For this reason it needs to be stored along with the relation symbol LOST Logic Semantics Tutor The signature dtd file that is mentioned in the second line is a Document Type Definition file that defines the correct structure of a signature XML file Ensure that any signature files you write by hand are stored in the same folder as this DTD file as it will be required to successfully load the signature in LOST To save a signature go to the menu and select Signature Save signature Alternatively click on the menu bar button Zi B Choose a file name and a directory ensure that the directory where you save the signature contains the signature dtd file Click Save Loading a signature To load a signature go to the menu and select Signature gt Load signature Alternatively click on the menu bar button By Choose the file that you want to load and press Open Closing a signature To remove a signature from the interface go to the menu and select Signature gt Close signature LOST Logic Semantics Tutor Modifying a signature Once a signature has been successfully loaded you will see a tree representing the signature in the Signature Panel There are a number of ways in which a s
Download Pdf Manuals
Related Search
Related Contents
Craftsman 486.24635 Owner's Manual BENDIX SD-13-21021 User's Manual la presse - Théâtre du Nouveau Monde 1 Aperte Käyttöohje User guide Grill Elétrico (25335BZ) MAN - GMM AM128 - UK - 5.00 Model 520 - Lake Shore Cryotronics, Inc. LG VX6100 User's Manual Copyright © All rights reserved.
Failed to retrieve file