lean2/tests/lean/map.lean.expected.out
Leonardo de Moura 110ca84984 feat(library/simplifier): allow the user to associate a simplifier monitor with the lua_State object
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-31 13:49:24 -08:00

68 lines
2.4 KiB
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.

Set: pp::colors
Set: pp::unicode
Imported 'tactic'
Assumed: list
Assumed: nil
Assumed: cons
Assumed: map
Assumed: map_cons
Assumed: map_nil
Visit, depth: 1, map (λ x : , x + 1) (cons 1 (cons 2 nil)) = cons 2 (cons 3 nil)
Visit, depth: 2, @eq
Visit, depth: 2, map (λ x : , x + 1) (cons 1 (cons 2 nil))
Visit, depth: 3, @map
Step: @map ===> @map
Visit, depth: 3, λ x : , x + 1
Visit, depth: 4, 3::1 + 1
Visit, depth: 5, Nat::add
Visit, depth: 5, 3::1
Step: 3::1 ===> 3::1
Visit, depth: 5, 1
Step: 3::1 + 1 ===> 3::1 + 1
Step: λ x : , x + 1 ===> λ x : , x + 1
Visit, depth: 3, cons 1 (cons 2 nil)
Visit, depth: 4, @cons
Step: @cons ===> @cons
Visit, depth: 4, 1
Visit, depth: 4, cons 2 nil
Visit, depth: 5, 2
Visit, depth: 5, nil
Visit, depth: 6, @nil
Step: @nil ===> @nil
Step: nil ===> nil
Step: cons 2 nil ===> cons 2 nil
Step: cons 1 (cons 2 nil) ===> cons 1 (cons 2 nil)
Rewrite using: map_cons
map (λ x : , x + 1) (cons 1 (cons 2 nil)) ===> cons ((λ x : , x + 1) 1) (map (λ x : , x + 1) (cons 2 nil))
Visit, depth: 3, cons ((λ x : , x + 1) 1) (map (λ x : , x + 1) (cons 2 nil))
Visit, depth: 4, (λ x : , x + 1) 1
Visit, depth: 5, 1
Visit, depth: 5, 2
Step: (λ x : , x + 1) 1 ===> 2
Visit, depth: 4, map (λ x : , x + 1) (cons 2 nil)
Rewrite using: map_cons
map (λ x : , x + 1) (cons 2 nil) ===> cons ((λ x : , x + 1) 2) (map (λ x : , x + 1) nil)
Visit, depth: 5, cons ((λ x : , x + 1) 2) (map (λ x : , x + 1) nil)
Visit, depth: 6, (λ x : , x + 1) 2
Visit, depth: 7, 2
Visit, depth: 7, 3
Step: (λ x : , x + 1) 2 ===> 3
Visit, depth: 6, map (λ x : , x + 1) nil
Rewrite using: map_nil
map (λ x : , x + 1) nil ===> nil
Step: map (λ x : , x + 1) nil ===> nil
Visit, depth: 6, cons 3 nil
Visit, depth: 7, 3
Step: cons 3 nil ===> cons 3 nil
Step: cons ((λ x : , x + 1) 2) (map (λ x : , x + 1) nil) ===> cons 3 nil
Step: map (λ x : , x + 1) (cons 2 nil) ===> cons 3 nil
Visit, depth: 4, cons 2 (cons 3 nil)
Visit, depth: 5, 2
Step: cons 2 (cons 3 nil) ===> cons 2 (cons 3 nil)
Step: cons ((λ x : , x + 1) 1) (map (λ x : , x + 1) (cons 2 nil)) ===> cons 2 (cons 3 nil)
Step: map (λ x : , x + 1) (cons 1 (cons 2 nil)) ===> cons 2 (cons 3 nil)
Rewrite using: eq_id
cons 2 (cons 3 nil) = cons 2 (cons 3 nil) ===>
Visit, depth: 2,
Step: map (λ x : , x + 1) (cons 1 (cons 2 nil)) = cons 2 (cons 3 nil) ===>
Proved: T1