зеркало из https://github.com/microsoft/ivy.git
32 строки
343 B
Plaintext
32 строки
343 B
Plaintext
|
#lang ivy1.7
|
||
|
|
||
|
theorem impi = {
|
||
|
function p : bool
|
||
|
function q : bool
|
||
|
{
|
||
|
property p
|
||
|
property q
|
||
|
}
|
||
|
property p -> q
|
||
|
}
|
||
|
|
||
|
theorem refl = {
|
||
|
type t
|
||
|
property X:t = X
|
||
|
}
|
||
|
|
||
|
relation a
|
||
|
|
||
|
type t1
|
||
|
var b : t1
|
||
|
|
||
|
object bar = {
|
||
|
theorem silly = {
|
||
|
property a -> (b = b)
|
||
|
}
|
||
|
proof apply impi; apply refl
|
||
|
}
|
||
|
|
||
|
|
||
|
|