lean4-htt/tests/lean/eqn_proof.lean
Leonardo de Moura 64f575a2d5 perf(library/equations_compiler): performance problem for definitions that produce many equational lemmas
The new test and comment at src/library/equations_compiler/util.cpp
explains the issue.
2017-11-22 16:16:11 -08:00

18 lines
524 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

universes u
inductive node (α : Type u)
| leaf : node
| red_node : node → α → node → node
| black_node : node → α → node → node
namespace node
variable {α : Type u}
def balance : node αα → node α → node α
| (red_node (red_node a x b) y c) k d := red_node (black_node a x b) y (black_node c k d)
| (red_node a x (red_node b y c)) k d := red_node (black_node a x b) y (black_node c k d)
| l k r := black_node l k r
#print balance._main.equations._eqn_1
end node