diff options
| author | aarne <aarne@cs.chalmers.se> | 2007-10-30 13:09:46 +0000 |
|---|---|---|
| committer | aarne <aarne@cs.chalmers.se> | 2007-10-30 13:09:46 +0000 |
| commit | 565bd853299f8eec69326fd4a59dff8f7488fe61 (patch) | |
| tree | 29fa03753bf682a05be11c3509a8fca9fa761aa0 /examples/math/Math.gf | |
| parent | af54ec7e452cc600dd3d7ddc58670ffe50827631 (diff) | |
math wiki example
Diffstat (limited to 'examples/math/Math.gf')
| -rw-r--r-- | examples/math/Math.gf | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/examples/math/Math.gf b/examples/math/Math.gf new file mode 100644 index 000000000..d5cbe9196 --- /dev/null +++ b/examples/math/Math.gf @@ -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 ; + +} |
