mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-26 11:18:55 -06:00
AdvS and for_Prep in resource (except Russian)
This commit is contained in:
@@ -16,11 +16,16 @@ lincat
|
|||||||
Text = Section ;
|
Text = Section ;
|
||||||
|
|
||||||
lin
|
lin
|
||||||
|
ThmWithProof = theorem ;
|
||||||
|
|
||||||
Disj A B = coord or_Conj A B ;
|
Disj A B = coord or_Conj A B ;
|
||||||
Impl A B = coord ifthen_DConj A B ;
|
Impl A B = coord ifthen_DConj A B ;
|
||||||
|
|
||||||
Abs = mkS (pred have_V2 (mkNP we_Pron) (mkNP (mkDet IndefArt) contradiction_N)) ;
|
Abs = mkS (pred have_V2 (mkNP we_Pron) (mkNP (mkDet IndefArt) contradiction_N)) ;
|
||||||
|
|
||||||
|
Univ A B =
|
||||||
|
mkS (mkAdv for_Prep (mkNP all_Predet (mkNP (mkDet IndefArt (mkCN A $0))))) B ;
|
||||||
|
|
||||||
DisjIl A B a = proof a (proof afortiori (coord or_Conj A B)) ;
|
DisjIl A B a = proof a (proof afortiori (coord or_Conj A B)) ;
|
||||||
DisjIr A B b = proof b (proof afortiori (coord or_Conj A B)) ;
|
DisjIr A B b = proof b (proof afortiori (coord or_Conj A B)) ;
|
||||||
|
|
||||||
|
|||||||
@@ -34,6 +34,9 @@ oper
|
|||||||
= \decl,a,b ->
|
= \decl,a,b ->
|
||||||
appendText decl (mkUtt (mkS (pred b a))) ;
|
appendText decl (mkUtt (mkS (pred b a))) ;
|
||||||
|
|
||||||
|
theorem : Prop -> Proof -> Section
|
||||||
|
= \prop,prf -> appendText (mkText (mkPhr prop) TEmpty) prf ;
|
||||||
|
|
||||||
assumption : Prop -> Decl
|
assumption : Prop -> Decl
|
||||||
= \p ->
|
= \p ->
|
||||||
mkText (mkPhr (mkUtt (mkImp (mkVP assume_VS p)))) TEmpty ;
|
mkText (mkPhr (mkUtt (mkImp (mkVP assume_VS p)))) TEmpty ;
|
||||||
@@ -45,6 +48,8 @@ oper
|
|||||||
proof = overload {
|
proof = overload {
|
||||||
proof : Prop -> Proof
|
proof : Prop -> Proof
|
||||||
= \p -> mkText (mkPhr p) TEmpty ;
|
= \p -> mkText (mkPhr p) TEmpty ;
|
||||||
|
proof : Str -> Proof
|
||||||
|
= \s -> {s = s ++ "." ; lock_Text = <>} ;
|
||||||
proof : Adverb -> Prop -> Proof
|
proof : Adverb -> Prop -> Proof
|
||||||
= \a,p -> mkText (mkPhr a (mkUtt p) NoVoc) TEmpty ;
|
= \a,p -> mkText (mkPhr a (mkUtt p) NoVoc) TEmpty ;
|
||||||
proof : Decl -> Proof
|
proof : Decl -> Proof
|
||||||
@@ -76,4 +81,6 @@ oper
|
|||||||
refs : Refs -> Ref
|
refs : Refs -> Ref
|
||||||
= \rs -> mkNP and_Conj rs ;
|
= \rs -> mkNP and_Conj rs ;
|
||||||
|
|
||||||
|
mkLabel : Str -> Label ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,19 @@
|
|||||||
--# -path=.:mathematical:present:resource-1.0/api:prelude
|
--# -path=.:mathematical:present:resource-1.0/api:prelude
|
||||||
|
|
||||||
instance ProoftextEng of Prooftext = open
|
instance ProoftextEng of Prooftext =
|
||||||
LexTheoryEng,
|
open
|
||||||
GrammarEng,
|
LexTheoryEng,
|
||||||
SymbolicEng,
|
GrammarEng,
|
||||||
SymbolEng,
|
SymbolicEng,
|
||||||
(C=ConstructX),
|
SymbolEng,
|
||||||
CombinatorsEng,
|
(C=ConstructX),
|
||||||
ConstructorsEng in {
|
CombinatorsEng,
|
||||||
}
|
ConstructorsEng,
|
||||||
;
|
(P=ParadigmsEng)
|
||||||
|
in {
|
||||||
|
|
||||||
|
oper
|
||||||
|
mkLabel : Str -> Label = \s -> UsePN (P.regPN s) ;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user