lean2/tests/lean/eq4.lean
Leonardo de Moura e42b616438 fix(kernel/normalizer): equality between semantic attachments
Given a heterogenous equality:  a == b
The normalizer will only reduce it if a and b are objects of the same kind.
Now, 1 == true is not reduced to false anymore.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-08 19:10:30 -08:00

8 lines
151 B
Text

import Int
eval 1 == true
eval 1 == 1.0
eval 1 == nat_to_int 1
eval true == 1.0
eval Nat::add == 1
eval Nat::add == Nat::mul
eval Int::add == Int::mul