"John sleeps" - backward application
Equations
- CCG.TruthConditions.ccg_john_sleeps = (CCG.DerivStep.lex { form := "John", cat := CCG.NP }).bapp (CCG.DerivStep.lex { form := "sleeps", cat := CCG.IV })
Instances For
"Mary sleeps" - backward application
Equations
- CCG.TruthConditions.ccg_mary_sleeps = (CCG.DerivStep.lex { form := "Mary", cat := CCG.NP }).bapp (CCG.DerivStep.lex { form := "sleeps", cat := CCG.IV })
Instances For
"John laughs" - backward application
Equations
- CCG.TruthConditions.ccg_john_laughs = (CCG.DerivStep.lex { form := "John", cat := CCG.NP }).bapp (CCG.DerivStep.lex { form := "laughs", cat := CCG.IV })
Instances For
"Mary laughs" - backward application
Equations
- CCG.TruthConditions.ccg_mary_laughs = (CCG.DerivStep.lex { form := "Mary", cat := CCG.NP }).bapp (CCG.DerivStep.lex { form := "laughs", cat := CCG.IV })
Instances For
"John sees Mary" - forward then backward application
Equations
- One or more equations did not get rendered due to their size.
Instances For
"Mary sees John" - forward then backward application
Equations
- One or more equations did not get rendered due to their size.
Instances For
"John eats pizza" - forward then backward application
Equations
- One or more equations did not get rendered due to their size.
Instances For
Extended lexicon with all entities and predicates
Equations
- One or more equations did not get rendered due to their size.
- CCG.TruthConditions.extendedLexicon "John" (CCG.Cat.atom CCG.Atom.NP) = some { cat := CCG.NP, meaning := Semantics.Montague.ToyEntity.john }
- CCG.TruthConditions.extendedLexicon "Mary" (CCG.Cat.atom CCG.Atom.NP) = some { cat := CCG.NP, meaning := Semantics.Montague.ToyEntity.mary }
- CCG.TruthConditions.extendedLexicon "pizza" (CCG.Cat.atom CCG.Atom.NP) = some { cat := CCG.NP, meaning := Semantics.Montague.ToyEntity.pizza }
- CCG.TruthConditions.extendedLexicon "book" (CCG.Cat.atom CCG.Atom.NP) = some { cat := CCG.NP, meaning := Semantics.Montague.ToyEntity.book }
- CCG.TruthConditions.extendedLexicon "sleeps" ((CCG.Cat.atom CCG.Atom.S).lslash (CCG.Cat.atom CCG.Atom.NP)) = some { cat := CCG.IV, meaning := Semantics.Montague.ToyLexicon.sleeps_sem }
- CCG.TruthConditions.extendedLexicon "laughs" ((CCG.Cat.atom CCG.Atom.S).lslash (CCG.Cat.atom CCG.Atom.NP)) = some { cat := CCG.IV, meaning := Semantics.Montague.ToyLexicon.laughs_sem }
- CCG.TruthConditions.extendedLexicon word cat = none
Instances For
Get meaning (as Prop) from CCG derivation
Equations
Instances For
CCG correctly predicts "John sleeps" is true
CCG correctly predicts "Mary sleeps" is false
CCG correctly predicts "John laughs" is true
CCG correctly predicts "Mary laughs" is true
CCG correctly predicts "John sees Mary" is true
CCG correctly predicts "Mary sees John" is true
A test case: derivation paired with expected Prop
Instances For
Check if CCG predicts a test case correctly
Equations
- CCG.TruthConditions.ccgPredictsCorrectly tc = (CCG.TruthConditions.ccgMeaning tc.deriv = some tc.expected)
Instances For
CCG correctly predicts ALL intransitive test cases.
CCG correctly predicts ALL transitive test cases.
CCG correctly predicts ALL test cases.
The syntax → semantics pipeline produces correct truth conditions for the entire test suite.