fix(doc/lean/tutorial): adjust tutorial to library changes, fix test

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-08-20 18:32:53 -07:00
parent e5057ed155
commit 8375626cb6
2 changed files with 4 additions and 5 deletions

View file

@ -761,7 +761,7 @@ of two even numbers is an even number.
exists_intro (w1 + w2)
(calc a + b = 2*w1 + b : {Hw1}
... = 2*w1 + 2*w2 : {Hw2}
... = 2*(w1 + w2) : symm (mul_add_distr_right 2 w1 w2))))
... = 2*(w1 + w2) : symm (mul_distr_left 2 w1 w2))))
#+END_SRC
@ -781,6 +781,5 @@ With this macro we can write the example above in a more natural way
exists_intro (w1 + w2)
(calc a + b = 2*w1 + b : {Hw1}
... = 2*w1 + 2*w2 : {Hw2}
... = 2*(w1 + w2) : symm (mul_add_distr_right 2 w1 w2))
... = 2*(w1 + w2) : symm (mul_distr_left 2 w1 w2))
#+END_SRC

View file

@ -1,5 +1,5 @@
empty.lean:5:25: error: type error in placeholder assigned to
inhabited_Prop
empty.lean:6:25: error: type error in placeholder assigned to
Prop_inhabited
placeholder has type
inhabited Prop
but is expected to have type