зеркало из https://github.com/microsoft/ivy.git
18 строки
240 B
Plaintext
18 строки
240 B
Plaintext
|
#lang ivy1.7
|
||
|
|
||
|
type t
|
||
|
interpret t -> int
|
||
|
|
||
|
function f(X:t) : t
|
||
|
|
||
|
function foo(X:t) = f(X) = X
|
||
|
|
||
|
# definition f(X) = X
|
||
|
|
||
|
function g(X:t) : t
|
||
|
var p : t
|
||
|
|
||
|
axiom foo(Y)
|
||
|
|
||
|
# result: An interpreted symbol is applied to a universally quantified variable
|