File: test_embed_location_1.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 (53 lines) | stat: -rw-r--r-- 778 bytes parent folder | download | duplicates (8)
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
53
embed
{{ tex
\newcommand{\helloone}{Hello, world.}
}}
{{ coq
Definition index := nat.
}}
{{ hol
val _ = type_abbrev("index", ``:num``);
}}
{{ isa
types index = "nat"
}}

%% Hmm, seems I can't use ich here, I wonder why
%%indexvar i ::= {{ich index}}
indexvar i ::= {{coq index}} {{isa index}} {{hol index}}

embed
{{ tex
\helloone
}}

grammar
thing :: thing_ ::=
  | Normal  ::   :: normal
  | meta    :: M :: meta {{ ich thing_meta }}

embed
{{ tex
Grammar one to relations one.
}}
{{ coq
Definition thing_meta := thing_normal.
}}
%% TODO: hol, isa

defns
relations :: '' ::=
defn
thing ok :: :: ok :: ok_ by

---------------------------------------------------------------- :: wibble
meta ok

embed
{{ tex
Goodbye, world.
}}
{{ coq
Definition okay := ok.
}}
%% TODO: hol, isa