From e3f5ddf3ffb1361eea5a5a356371e659d3bbb2dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20M=C3=BCller?= <d.mueller@jacobs-university.de> Date: Fri, 30 Mar 2018 11:59:26 +0200 Subject: [PATCH] update --- source/test.mmt | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/source/test.mmt b/source/test.mmt index d764909..3b3fa88 100644 --- a/source/test.mmt +++ b/source/test.mmt @@ -24,11 +24,11 @@ theory Pi : ?Basics = pi # { V1T ,… } 2 prec -10000 â™ arrow # 1⟶… prec -9999 â™ apply1 # 1%w… prec -10 â™ - apply2 # 1(2,…) prec -100000 â™ + apply2 # 1 ( 2,… ) prec -100000 â™ lambda # [ V1T ,… ] 2 prec -10000 â™ test1 : f a b â™ // works â™ - test2 : f(a,b) â™ // unbound token "," â™ + test2 : f(a,b) â™ // "unparsed"â™ âš theory Sigma : ?Basics = @@ -36,8 +36,8 @@ theory Sigma : ?Basics = tuple # ( 1,… ) prec -100000 â™ tuple_entry # 1 . 2 prec -1000 â™ - test1 : Σ { a : A, b : B a} â™ // should work apart from ":" â™ - test2 : ( a,b ) â™ // "unparsed" â™ + test1 : Σ{a : A, b : B a} â™ // should work apart from ":" â™ + test2 : (a,b) â™ // "unparsed" â™ test3 : t.5 â™ // works â™ âš @@ -74,16 +74,16 @@ theory Mod : ?Basics = elim # 1 . L2 â™ test1 : Mod T â™ // works â™ - test2 : Mod T ☠= ⟨ a1 := a, b1 := b ⟩ â™ // works except for ":=" notations missing â™ + test2 : Mod T ☠= ⟨a1 := a, b1 := b⟩ â™ // works except for ":=" notations missing â™ test3 : test2.a1 â™ // works (so far) â™ âš theory Term : ?Basics = // copy paste â™ - formation # {| 1 |} 2 prec -10000 - reflect # ⌜ 1 : 2 ⌠prec -10000 - eval # ⌞ 1 ⌟ 2 prec -10000 - elim # 1 ^ 2 prec -10000 + formation # {| 1 |} 2 prec -10000 + reflect # ⌜ 1 : 2 ⌠prec -10000 + eval # ⌞ 1 ⌟ 2 prec -10000 + elim # 1 ^ 2 prec -10000 âš theory FiniteSet : ?Basics = @@ -91,7 +91,7 @@ theory FiniteSet : ?Basics = in # 1 â€âˆˆ 2 â™ cons # { 1,… } â™ - test1 : ℘n A ☠= { a, a, b, c, c, c } â™ // works â™ + test1 : ℘n A ☠= {a, a, b, c, c, c} â™ // works â™ test2 : a â€âˆˆ test1 â™ // works â™ âš @@ -100,7 +100,7 @@ theory MultiSet : ?Basics = cons # { 1,… } â™ mul # mul( 1 , 2 ) â™ - test1 : ℘m A ☠= { a, a, b, c, c, c } â™ + test1 : ℘m A ☠= {a, a, b, c, c, c} â™ test2 : ⊢ mul (test1,c) ≠3 â™ // brackets! â™ âš @@ -116,7 +116,7 @@ theory InfiniteSequences : ?Basics = match # 3 match case nil => 4 case V1 :: V2 => 5 prec -500 â™ test1 : A^≤ω â™ // works â™ - test2 : a :: ls â™ // works â™ + test2 : a::ls â™ // works â™ test3 : a.5 â™ // works â™ test4 : ls match case nil => A case head :: tail => (f head tail) â™ // works â™ âš @@ -124,7 +124,7 @@ theory InfiniteSequences : ?Basics = theory InfiniteSets : ?Basics = set # ℘ 1 â™ in # 1 â€âˆˆ 2 â™ - cons1 # { 1,… } â™ + cons1 # { 1,… } â™ // could probably replaced by cons in FiniteSet and subtyping â™ cons2 # { V1 â€: 2 | 3 } prec -500â™ test1 : ℘ A ☠= { a, a, b, c, c, c } â™ // works â™ @@ -145,7 +145,7 @@ theory PredSubtype : ?Basics = theory Quotients : ?Basics = Quot # 1 / 2 â™ // <type> / <relation> â™ injection # [ 1 ]_ 2 â™ // [a]_R â™ - representative # rep( 1 ) â™ // requires axiom of choice â™ + representative # rep( 1 ) â™ test1 : A / R ☠= [a]_ R â™ // works, but breaks without the space after _ ! â™ test2 : A ☠= rep(test1) â™ // works â™ -- GitLab