Exercise-ch2: Difference between revisions

From Lexical Resource Semantics
Jump to navigation Jump to search
Line 8: Line 8:


Names: '''frodo''', '''sam''', '''gandalf''', '''aragorn'''<br />
Names: '''frodo''', '''sam''', '''gandalf''', '''aragorn'''<br />
Predicates: '''hobbit
1-place predicates: '''hobbit'''<br />
2-place predicates: '''know''', '''help'''


<quiz points="1/1">
<quiz points="2/1">
{Klick on the expressions that are well-formed formulae.}
{Click on the items that are well-formed expressions of the semantic representation language.}
+ '''gandalf'''
+ '''hobbit'''
- '''know'''('''gandalf''')
|| '''know''' is a 2-place predicate. Therefore it must combine with two arguments.
</quiz>
 
<quiz points="2/3">
{Click on the expressions that are well-formed formulae.}
- '''hobbit'''
- '''hobbit'''
- '''hobbit'''(''x'')
- '''frodo'''
+ '''hobbit'''('''aragorn''')
- '''frodo''' &and; '''gandalf'''
+ &forall;''x'' ('''hobbit'''(''x'') &sup; x = '''gandalf''')
+ &forall;''x'' ('''hobbit'''(''x'') &sup; x = '''gandalf''')


</quiz>
</quiz>

Revision as of 19:36, 15 March 2013

Additional Exercises for Chapter 2: Predicate Logic

Formulae

∀ ∃ ∧ ∨ ⊂ ⊃ ¬

For the following exercises we use names and properties from the The Lord of the Rings novels.

Names: frodo, sam, gandalf, aragorn
1-place predicates: hobbit
2-place predicates: know, help

  

Click on the items that are well-formed expressions of the semantic representation language.

gandalf
hobbit
know(gandalf)


  

Click on the expressions that are well-formed formulae.

hobbit
frodo
hobbit(aragorn)
frodogandalf
x (hobbit(x) ⊃ x = gandalf)