lean2/tests/lean/eq3.lean
Leonardo de Moura a43020b31b refactor(kernel): remove heterogeneous equality
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-16 17:39:12 -08:00

8 lines
291 B
Text

variable Vector : Nat -> Type
variable n : Nat
variable v1 : Vector n
variable v2 : Vector (n + 0)
variable v3 : Vector (0 + n)
axiom cast {A B : TypeU} : A = B -> A -> B
axiom H1 : v1 = cast (congr2 Vector (Nat::add_zeror n)) v2
axiom H2 : v2 = cast (congr2 Vector (Nat::add_comm 0 n)) v3