B combinator (composition): B f g x = f (g x).
Equations
- CCG.Combinators.B f g x = f (g x)
Instances For
S combinator (substitution): S f g x = f x (g x).
Equations
- CCG.Combinators.S f g x = f x (g x)
Instances For
B f g x = f (g x).
S f g x = f x (g x).
Crossed composition = S: (X/Y)/Z + Y/Z => X/Z with S f g x = f x (g x).
Type-raised subject composed with transitive verb gives a function from objects to truth values.
The computation is:
- subj_raised = T subj_sem = λf. f subj_sem
- result = B subj_raised verb_sem = λy. subj_raised (verb_sem y) = λy. verb_sem y subj_sem
The combinator correspondence as a record
Forward application is function application
Forward composition is B
Type-raising is T
Crossed composition is S
Instances For
The CCG-combinator correspondence holds
Equations
Instances For
Forward application: functor on left, argument on right
Equations
- CCG.Combinators.steedmanForwardApp f a = f a
Instances For
Backward application: argument on left, functor on right
Equations
- CCG.Combinators.steedmanBackwardApp a f = f a
Instances For
Both application rules have the same semantic effect: function application
Steedman's definition of B (p. 24): Bfgx ≡ f(gx)
Forward composition produces B-combined semantics
Backward composition also uses B, just with reversed linear order
B² combinator: composition into a binary function
Equations
- CCG.Combinators.B2 f g x y = f (g x y)
Instances For
B³ combinator: composition into a ternary function
Equations
- CCG.Combinators.B3 f g x y z = f (g x y z)
Instances For
Steedman's definition of T (p. 33): Txf ≡ fx
Type-raising turns an entity into a generalized quantifier
Steedman's definition of S (p. 57): Sfgx ≡ fx(gx)
S distributes the argument to both functions
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Each CCG rule corresponds to a specific combinator
Equations
- CCG.Combinators.ruleToSemantics CCG.Combinators.CCGRule.fapp = "function application: f a"
- CCG.Combinators.ruleToSemantics CCG.Combinators.CCGRule.bapp = "function application: f a"
- CCG.Combinators.ruleToSemantics CCG.Combinators.CCGRule.fcomp = "B combinator: λx.f(gx)"
- CCG.Combinators.ruleToSemantics CCG.Combinators.CCGRule.bcomp = "B combinator: λx.f(gx)"
- CCG.Combinators.ruleToSemantics CCG.Combinators.CCGRule.fcomp2 = "B² combinator: λxy.f(gxy)"
- CCG.Combinators.ruleToSemantics CCG.Combinators.CCGRule.bcomp2 = "B² combinator: λxy.f(gxy)"
- CCG.Combinators.ruleToSemantics CCG.Combinators.CCGRule.ftr = "T combinator: λf.fa"
- CCG.Combinators.ruleToSemantics CCG.Combinators.CCGRule.btr = "T combinator: λf.fa"
- CCG.Combinators.ruleToSemantics CCG.Combinators.CCGRule.bxs = "S combinator: λx.fx(gx)"
- CCG.Combinators.ruleToSemantics CCG.Combinators.CCGRule.coord = "coordination: λ...b(f...)(g...)"
Instances For
The type mapping T from Steedman (13) - this is our catToTy
The Constituent Condition: derivations yield interpretable constituents. In CCG, this is automatic because categories encode semantic types.
Equations
- CCG.Combinators.constituentCondition d = ∀ (c : CCG.Cat), d.cat = some c → ∃ (ty : Semantics.Montague.Ty), CCG.catToTy c = ty
Instances For
CCG satisfies the Constituent Condition by construction
Combinatory grammars build meaning without bound variables. Every semantic operation is a combinator application.
All function application is direct (no variable binding)
Composition uses B, not λ-abstraction
Type-raising uses T, not λ-abstraction
Instances For
CCG provides variable-free semantics
Equations
Instances For
Dependency pattern in a construction
- nesting : DependencyPattern
- intercalating : DependencyPattern
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
CCG can handle both patterns (unlike pure CFGs)
Equations
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Which conjunct has the gap in gapping constructions
- left : GapPosition
- right : GapPosition
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Ross's Universal: Gap position correlates with word order
Equations
- CCG.Combinators.rossGappingUniversal CCG.Combinators.WordOrder.SVO = CCG.Combinators.GapPosition.right
- CCG.Combinators.rossGappingUniversal CCG.Combinators.WordOrder.VSO = CCG.Combinators.GapPosition.right
- CCG.Combinators.rossGappingUniversal CCG.Combinators.WordOrder.SOV = CCG.Combinators.GapPosition.left
Instances For
The excluded patterns (from Steedman p. 17, example 22)
Equations
- CCG.Combinators.gappingViolation CCG.Combinators.WordOrder.SVO CCG.Combinators.GapPosition.left = true
- CCG.Combinators.gappingViolation CCG.Combinators.WordOrder.VSO CCG.Combinators.GapPosition.left = true
- CCG.Combinators.gappingViolation CCG.Combinators.WordOrder.SOV CCG.Combinators.GapPosition.right = true
- CCG.Combinators.gappingViolation order gap = false
Instances For
A fragment satisfies the Sense Unit Condition if it's semantically coherent
Equations
- CCG.Combinators.senseUnitCondition cat _meaning = True
Instances For
Direction a functor seeks its argument
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
The Principle of Consistency: rules respect functor directionality
Equations
- CCG.Combinators.principleOfConsistency CCG.Combinators.SlashDir.forward true = true
- CCG.Combinators.principleOfConsistency CCG.Combinators.SlashDir.backward false = true
- CCG.Combinators.principleOfConsistency CCG.Combinators.SlashDir.forward false = false
- CCG.Combinators.principleOfConsistency CCG.Combinators.SlashDir.backward true = false
Instances For
The Principle of Inheritance: output slashes inherit from inputs
Equations
- CCG.Combinators.principleOfInheritance inputSlash outputSlash = (inputSlash == outputSlash)
Instances For
Classification of combinatory rules by order-preservation
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
The complete catalog of composition rules
- fcomp : CompositionRule
- fcompX : CompositionRule
- bcomp : CompositionRule
- bcompX : CompositionRule
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
The complete catalog of substitution rules
- fsub : SubstitutionRule
- fsubX : SubstitutionRule
- bsub : SubstitutionRule
- bsubX : SubstitutionRule
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Classify a composition rule
Equations
- CCG.Combinators.CompositionRule.fcomp.ruleType = CCG.Combinators.RuleType.orderPreserving
- CCG.Combinators.CompositionRule.fcompX.ruleType = CCG.Combinators.RuleType.crossed
- CCG.Combinators.CompositionRule.bcomp.ruleType = CCG.Combinators.RuleType.orderPreserving
- CCG.Combinators.CompositionRule.bcompX.ruleType = CCG.Combinators.RuleType.crossed
Instances For
Classify a substitution rule
Equations
- CCG.Combinators.SubstitutionRule.fsub.ruleType = CCG.Combinators.RuleType.orderPreserving
- CCG.Combinators.SubstitutionRule.fsubX.ruleType = CCG.Combinators.RuleType.crossed
- CCG.Combinators.SubstitutionRule.bsub.ruleType = CCG.Combinators.RuleType.orderPreserving
- CCG.Combinators.SubstitutionRule.bsubX.ruleType = CCG.Combinators.RuleType.crossed
Instances For
Order-preserving rules don't change word order
Equations
Instances For
Non-order-preserving (crossed) rules can permute arguments
Equations
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
In SVO languages, subject extraction from that-complements is blocked
Instances For
The asymmetry follows from directionality, not from ECP
Feature controlling whether an argument can shift
- plusShift : ShiftFeature
- minusShift : ShiftFeature
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Heavy NP shift requires the +SHIFT feature
Equations
Instances For
Types of nominal interpretations
- trueQuantifier : NominalType
- arbitraryObject : NominalType
- definite : NominalType
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
True quantifiers can induce scope inversion
Equations
Instances For
Geach's constraint: coordinated elements must have parallel scope
Equations
Instances For
The c-command condition on distribution parallels binding
Instances For
CCG is monotonic: structures are never revised
Equations
Instances For
CCG is monostratal: only Logical Form is a true level
Equations
Instances For
Different derivations can yield the same Logical Form