File: ascribe.ott

package info (click to toggle)
ott 0.34%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,440 kB
  • sloc: ml: 25,103; makefile: 1,374; awk: 736; lisp: 183; sh: 14; sed: 4
file content (29 lines) | stat: -rw-r--r-- 472 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

grammar
t :: Tm ::=                                        {{ com terms: }}
  | t as T                        ::   :: Ascribe    {{ com ascription }}


defns 
Jop :: '' ::= 

defn 
t --> t' :: :: red :: E_ {{ com Evaluation }} by

-------------- :: Ascribe
v1 as T --> v1

t1 --> t1'
-------------------- :: Ascribe1
t1 as T --> t1' as T


defns
Jtype :: '' ::= 

defn
G |- t : T :: :: typing :: T_ {{ com Typing }} by

G |- t1:T
-------------- :: Ascribe
G |- t1 as T:T