a4efefb6ff
rewrite tactic fails
40 lines
1.6 KiB
Text
40 lines
1.6 KiB
Text
550.lean:44:72: error:invalid 'rewrite' tactic, step produced type incorrect term, details: type mismatch at application
|
|
eq.rec (eq.rec (eq.refl function.id) (eq.symm linv))
|
|
term
|
|
eq.rec (eq.refl function.id) (eq.symm linv)
|
|
has type
|
|
x = function.id
|
|
but is expected to have type
|
|
finv ∘ func = function.id
|
|
rewrite step failed using pattern
|
|
finv ∘ func
|
|
proof state:
|
|
A : Type,
|
|
f : bijection A,
|
|
func finv : A → A,
|
|
linv : finv ∘ func = function.id,
|
|
rinv : func ∘ finv = function.id
|
|
⊢ mk (finv ∘ func) (finv ∘ func)
|
|
(eq.rec
|
|
(eq.rec
|
|
(eq.rec (eq.rec (eq.rec (eq.refl function.id) (eq.symm linv)) (eq.symm (compose.left_id func)))
|
|
(eq.symm rinv))
|
|
(function.compose.assoc func finv func))
|
|
(eq.symm (function.compose.assoc finv func (finv ∘ func))))
|
|
(eq.rec
|
|
(eq.rec
|
|
(eq.rec (eq.rec (eq.rec (eq.refl function.id) (eq.symm linv)) (eq.symm (compose.right_id finv)))
|
|
(eq.symm rinv))
|
|
(eq.symm (function.compose.assoc finv func finv)))
|
|
(function.compose.assoc (finv ∘ func) finv func)) = id
|
|
550.lean:44:47: error: don't know how to synthesize placeholder
|
|
A : Type,
|
|
f : bijection A,
|
|
func finv : A → A,
|
|
linv : finv ∘ func = function.id,
|
|
rinv : func ∘ finv = function.id
|
|
⊢ inv (mk func finv linv rinv) ∘b mk func finv linv rinv = id
|
|
550.lean:44:2: error: failed to add declaration 'bijection.inv.linv' to environment, value has metavariables
|
|
remark: set 'formatter.hide_full_terms' to false to see the complete term
|
|
λ (A : Type) (f : …),
|
|
bijection.rec_on f (λ (func finv : …) (linv : …) (rinv : …), ?M_1)
|