File: test17.9.ott

package info (click to toggle)
ott 0.32%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,420 kB
  • sloc: ml: 25,065; makefile: 1,393; awk: 736; lisp: 183; sh: 14; sed: 4
file content (52 lines) | stat: -rw-r--r-- 1,220 bytes parent folder | download | duplicates (4)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
% test17.9.ott  dot form test

metavar ident, x ::= {{ isa string }} {{ coq nat }} {{ coq-equality }} {{ hol string }} {{ ocaml int }}

indexvar index, n , i ::= {{ isa nat }} {{ coq nat }} {{ hol num }} {{ ocaml int }}

  grammar

    E :: 'E_' ::= {{ isa ( ident * t ) list  }}
      | < x1 : t1 , .. , xn : tn > :: :: 2  {{ isa  List.rev [[x1 t1 .. xn tn]] }}
 
    t :: 't_' ::=
      | unit               ::   :: unit

    K :: 'K_' ::=
      | Type               ::   :: Type


formula :: formula_ ::=          
  | judgement              :: :: judgement
  | formula1 .. formulan   :: :: dots
%  | formula1 .. formulan   :: :: realdots {{ isa (List.list_all (\<lambda> b . b) ( [[ formula1 .. formulan ]] ) ) }}

terminals :: terminals_ ::=
  | |-                     ::   :: turnstile {{ tex \vdash }}
  | <                      ::   :: langle {{ tex \langle }}
  | >                      ::   :: rangle {{ tex \rangle }}

defns
  Jtype :: '' ::= 

defn
|- E  :: :: Eok :: Eok_ by


--------- :: 1
|- < >

---------------------------- :: 2
|- <x1:t1,..,xn:tn> 

|- t1:K1  .. |- tn:Kn
---------------------------- :: 3
|- <x1:t1,..,xn:tn> 


defn
|- t : K  :: :: tK :: tK_ by

--------------- :: 1
|- unit : Type