mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
mock up math extended with Agda
This commit is contained in:
@@ -4,28 +4,25 @@ concrete MathEnz of Mathw = open Prelude in {
|
||||
|
||||
flags lexer = textlit ; unlexer = textlit ;
|
||||
|
||||
-- lincat Section ; Label ; Context ; Typ ; Obj ; Prop ; Proof ; Var ;
|
||||
-- lincat Section ; Context ; Typ ; Obj ; Prop ; Proof ; Var ;
|
||||
|
||||
lin
|
||||
SDefObj lab cont obj typ df =
|
||||
ss ("Definition" ++ lab.s ++ "." ++ cont.s ++
|
||||
SDefObj cont obj typ df =
|
||||
ss ("Definition" ++ "." ++ cont.s ++
|
||||
obj.s ++ "is" ++ "a" ++ typ.s ++ "," ++ "defined" ++ "as" ++ df.s ++ ".") ;
|
||||
SDefProp lab cont prop df =
|
||||
ss ("Definition" ++ lab.s ++ "." ++ cont.s ++ "we" ++ "say" ++
|
||||
"that" ++ prop.s ++ "to" ++ "mean" ++ "that" ++ df.s ++ ".") ;
|
||||
SAxiom lab cont prop =
|
||||
ss ("Axiom" ++ lab.s ++ "." ++ cont.s ++ prop.s ++ ".") ;
|
||||
STheorem lab cont prop proof =
|
||||
ss ("Theorem" ++ lab.s ++ "." ++ cont.s ++ prop.s ++ "." ++ proof.s ++ ".") ;
|
||||
SDefProp cont prop df =
|
||||
ss ("Definition" ++ "." ++ cont.s ++ "we" ++ "say" ++
|
||||
"that" ++ prop.s ++ "if" ++ df.s ++ ".") ;
|
||||
SAxiom cont prop =
|
||||
ss ("Axiom" ++ "." ++ cont.s ++ prop.s ++ ".") ;
|
||||
STheorem cont prop proof =
|
||||
ss ("Theorem" ++ "." ++ cont.s ++ prop.s ++ "." ++ proof.s ++ ".") ;
|
||||
|
||||
CEmpty = ss [] ;
|
||||
CObj vr typ co = ss ("let" ++ vr.s ++ "be" ++ "a" ++ typ.s ++ "." ++ co.s) ;
|
||||
CProp prop co = ss ("assume" ++ prop.s ++ "." ++ co.s) ;
|
||||
|
||||
OVar v = v ;
|
||||
LNone = ss [] ;
|
||||
LString s = s ;
|
||||
VString s = s ;
|
||||
|
||||
V_x = ss "x" ;
|
||||
V_y = ss "y" ;
|
||||
|
||||
Reference in New Issue
Block a user