ivy/test/proving7.ivy

22 строки
347 B
Plaintext
Исходник Постоянная ссылка Обычный вид История

2017-07-01 04:51:38 +03:00
#lang ivy1.6
type t
relation succ(X:t,Y:t)
2017-07-03 04:56:32 +03:00
schema existsE = {
2017-07-01 04:51:38 +03:00
type t
relation p(X:t)
property exists X. p(X)
fresh function n:t
#----------------------
property p(n)
}
2017-07-03 04:56:32 +03:00
axiom exists Y. succ(X,Y)
2017-07-01 04:51:38 +03:00
function next(X:t):t
property succ(X,next(X))
2017-07-03 04:56:32 +03:00
proof existsE with n = next(X), p(Y) = succ(X,Y)
2017-07-01 04:51:38 +03:00