File: test16.2.ott

package info (click to toggle)
ott 0.34%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 6,440 kB
  • sloc: ml: 25,103; makefile: 1,375; awk: 736; lisp: 183; sh: 14; sed: 4
file content (18 lines) | stat: -rw-r--r-- 532 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
% test16.2.ott   auxfn and subst test
% single type, multiple independent auxfn

% ISA SUCCEEDS  with no warning

metavar value_name , x ::=
  {{ isa string }} {{ coq nat }} {{ coq-equality }} {{ hol string }}

  grammar

    a :: 'a_' ::= 
      | x           :: :: x  (+ f=x                        g=x +) 
      | A a1 a2     :: :: A  (+ f=f(a1) union f(a2)        g=g(a1) +)  
      | C           :: :: C  (+ f={}                       g={} +)

substitutions
  single   a value_name :: subst  
  multiple a value_name :: msubst