ivy/test/theorem1.ivy

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

2018-04-21 04:28:29 +03:00
#lang ivy1.7
schema exi = {
type t
function p(X:t) : bool
function witness : t
property p(witness)
#-------------------
property exists Y. p(Y)
}
theorem refl = {
type t
property X:t = X
}
type q
var z : q
property [foo] z = z
proof apply refl
type t1
var v1 : t1
property exists X:t1. X = v1
2018-04-26 02:02:51 +03:00
proof apply exi<foo/witness,t2/t> with foo = v1; apply refl
2018-04-21 04:28:29 +03:00