"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 truth value 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 judgment
Instances For
All intransitive verb test cases
Equations
- One or more equations did not get rendered due to their size.
Instances For
All transitive verb test cases
Equations
- CCG.TruthConditions.transitiveTestCases = [{ deriv := CCG.TruthConditions.ccg_john_sees_mary, expected := true }, { deriv := CCG.TruthConditions.ccg_mary_sees_john, expected := true }]
Instances For
Check if CCG predicts a test case correctly
Equations
Instances For
CCG correctly predicts ALL intransitive test cases.
This is the key theorem: compositional semantics via CCG produces exactly the empirically observed truth values.
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.