lean2/tests/lean/gen_as.lean

10 lines
142 B
Text
Raw Normal View History

import data.nat
open nat
example (x y : nat) : x + y + y ≥ 0 :=
begin
generalize x + y + y as n,
state,
intro n, exact zero_le n
end