blob: 3844252d0cd0bd5676623d410531b1edaea0fc29 [file] [edit]
namespace Foo
structure A where
(x : Nat)
def A.doubleX (a : A) :=
2 * a.x
structure B extends A where
(y : Nat)
def f (b : B) : Nat :=
b.x + b.doubleX
theorem ex1 : { x := 10, y := 0 : B }.doubleX = 20 :=
rfl
theorem ex2 : f { x := 10, y := 0 } = 30 :=
rfl
end Foo