mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
math wiki example
This commit is contained in:
39
examples/math/Math.gf
Normal file
39
examples/math/Math.gf
Normal file
@@ -0,0 +1,39 @@
|
||||
abstract Math = {
|
||||
|
||||
flags startcat = Section ;
|
||||
|
||||
cat
|
||||
Section ; Label ; Context ; Typ ; Obj ; Prop ; Proof ; Var ;
|
||||
|
||||
fun
|
||||
SDefObj : Label -> Context -> Obj -> Typ -> Obj -> Section ;
|
||||
SDefProp : Label -> Context -> Prop -> Prop -> Section ;
|
||||
SAxiom : Label -> Context -> Prop -> Section ;
|
||||
STheorem : Label -> Context -> Prop -> Proof -> Section ;
|
||||
|
||||
CEmpty : Context ;
|
||||
CObj : Var -> Typ -> Context -> Context ;
|
||||
CProp : Prop -> Context -> Context ;
|
||||
|
||||
OVar : Var -> Obj ;
|
||||
|
||||
LNone : Label ;
|
||||
LString : String -> Label ;
|
||||
VString : String -> Var ;
|
||||
|
||||
PLink : Proof ;
|
||||
|
||||
-- lexicon
|
||||
|
||||
Set : Typ ;
|
||||
Nat : Typ ;
|
||||
Zero : Obj ;
|
||||
Succ : Obj -> Obj ;
|
||||
One : Obj ;
|
||||
Two : Obj ;
|
||||
Even : Obj -> Prop ;
|
||||
Odd : Obj -> Prop ;
|
||||
Prime : Obj -> Prop ;
|
||||
Divisible : Obj -> Obj -> Prop ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user