2016-03-03 03:48:05 +00:00
|
|
|
550.lean:43:69: error:invalid 'rewrite' tactic, step produced type incorrect term, details: type mismatch at application
|
2015-05-08 18:32:31 +00:00
|
|
|
eq.symm linv
|
2015-05-06 02:21:27 +00:00
|
|
|
term
|
2015-05-08 18:32:31 +00:00
|
|
|
linv
|
2015-05-06 02:21:27 +00:00
|
|
|
has type
|
2015-11-21 01:03:17 +00:00
|
|
|
finv ∘ func = id
|
2015-05-08 18:32:31 +00:00
|
|
|
but is expected to have type
|
2015-11-21 01:03:17 +00:00
|
|
|
x = id
|
2015-05-06 02:21:27 +00:00
|
|
|
rewrite step failed using pattern
|
2015-05-08 18:32:31 +00:00
|
|
|
finv_1 ∘ func_1
|
2015-04-29 19:16:37 +00:00
|
|
|
proof state:
|
|
|
|
A : Type,
|
|
|
|
f : bijection A,
|
|
|
|
func finv : A → A,
|
2015-11-21 01:03:17 +00:00
|
|
|
linv : finv ∘ func = id,
|
|
|
|
rinv : func ∘ finv = id
|
2015-04-29 19:16:37 +00:00
|
|
|
⊢ mk (finv ∘ func) (finv ∘ func)
|
|
|
|
(eq.rec
|
2016-03-03 03:48:05 +00:00
|
|
|
(eq.rec (eq.rec (eq.rec (eq.rec (eq.refl id) (eq.symm linv)) (eq.symm (comp.left_id func))) (eq.symm rinv))
|
|
|
|
(comp.assoc func finv func))
|
|
|
|
(eq.symm (comp.assoc finv func (finv ∘ func))))
|
2015-04-29 19:16:37 +00:00
|
|
|
(eq.rec
|
2016-03-03 03:48:05 +00:00
|
|
|
(eq.rec (eq.rec (eq.rec (eq.rec (eq.refl id) (eq.symm linv)) (eq.symm (comp.right_id finv))) (eq.symm rinv))
|
|
|
|
(eq.symm (comp.assoc finv func finv)))
|
|
|
|
(comp.assoc (finv ∘ func) finv func)) = id
|
2015-07-28 18:06:27 +00:00
|
|
|
550.lean:43:44: error: don't know how to synthesize placeholder
|
2015-04-29 19:16:37 +00:00
|
|
|
A : Type,
|
|
|
|
f : bijection A,
|
|
|
|
func finv : A → A,
|
2015-11-21 01:03:17 +00:00
|
|
|
linv : finv ∘ func = id,
|
|
|
|
rinv : func ∘ finv = id
|
2015-04-29 19:16:37 +00:00
|
|
|
⊢ inv (mk func finv linv rinv) ∘b mk func finv linv rinv = id
|
2015-05-23 06:16:36 +00:00
|
|
|
550.lean:43:2: error: failed to add declaration 'bijection.inv.linv' to environment, value has metavariables
|
2015-04-29 19:16:37 +00:00
|
|
|
remark: set 'formatter.hide_full_terms' to false to see the complete term
|
2016-06-01 02:14:42 +00:00
|
|
|
λ A f,
|
2015-06-10 23:26:32 +00:00
|
|
|
bijection.rec_on f ?M_1
|