Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions CSwFP.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ exercises:
5.32 (p. 115): TODO

CSwFP/6:
6.1 (p. 137): help-defeat
6.1 (p. 137): help-model
6.2 (p. 137): passivize is presented in the prose, as the motivation for Unspec
6.3 (p. 138): passivize is presented in the prose, as the motivation for Unspec
6.4 (p. 139): reflexive-ditransitive
Expand Down Expand Up @@ -233,7 +233,6 @@ depends:
bangu-proof: bangu-form
pl-consequence: implies-from-list
ex-fol-entails: ex-fol-implies-from-list
help-defeat: check-sentence

sections:

Expand Down
18 changes: 16 additions & 2 deletions CSwL/Composition/Interpretation.lean
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,27 @@ example :
- Lá, a sentença era traduzida para uma fórmula, e a fórmula avaliada no
modelo. Aqui não há fórmula: a interpretação consulta o modelo
diretamente.
- Os dois caminhos dão o mesmo valor. O segundo `#eval` confere isso nas
trinta e duas sentenças de `sentences`.
- Os dois caminhos dão o mesmo valor. `sentences` gera trinta e duas
sentenças `NP TV NP`, com os verbos *help* e *defeat*, e o segundo
`#eval` confere a concordância em todas elas.
:::

```lean
#eval (toString sent1, intSent sent1)

/-- Four noun phrases to build test sentences from. -/
def someNPs : List NP :=
[.alice, .snowWhite,
.npDet .every .wizard, .npDet .a .dwarf]

/-- The thirty-two sentences `NP TV NP` built from `someNPs`
and the verbs *helped* and *defeated*. -/
def sentences : List Sent :=
someNPs.flatMap fun subj =>
[TV.helped, TV.defeated].flatMap fun v =>
someNPs.map fun obj =>
Sent.sent subj (.vpTrans v obj)

open FOL in
#eval sentences.all fun s =>
intSent s ==
Expand Down
2 changes: 1 addition & 1 deletion CSwL/Composition/TypedMeanings.lean
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ end Rule
:::terse
- VP → TV NP é o truque de `defeated`: fixar o sujeito `x` e entregar ao
NP a propriedade "ser o objeto de `x`". `defeated` é `vpTrans defeat`.
- Com um verbo bitransitivo, o mesmo truque duas vezes, um para cada
- Com um verbo ditransitivo, o mesmo truque duas vezes, um para cada
objeto.
- O verbo recebe primeiro o sujeito, depois os objetos, como as relações
do modelo.
Expand Down
Loading