lean4-htt/tests/lean/rewrite.lean.expected.out
jrr6 34bd6e8bfd
feat: improve split error messages (#9424)
This PR improves the error messages produced by the `split` tactic,
including suggesting syntax fixes and related tactics with which it
might be confused.

Note that, to avoid clashing with the new error message styling
conventions used in these messages, this PR also updates the formatting
of the message produced by `throwTacticEx`.

Closes #6224
2025-07-18 22:36:10 +00:00

53 lines
1.2 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.

α : Type u_1
as bs : List α
⊢ as ++ bs ++ bs = as ++ (bs ++ bs)
rewrite.lean:18:20-18:29: error: Tactic `rewrite` failed: did not find instance of the pattern in the target expression
(List.reverse ?as).reverse
α : Type u_1
as bs : List α
⊢ as ++ [] ++ [] ++ bs ++ bs = as ++ (bs ++ bs)
x y z : Nat
h₁ : x = y
h₂ : y = z
⊢ x = z
rewrite.lean:37:9-37:20: error: Tactic `rewrite` failed: did not find instance of the pattern in the current goal
x y z : Nat
h₁ : 0 + x = y
h₂ : 0 + y = z
⊢ x = z
m n k : Nat
h✝ : n = m
h : k = m
⊢ k = n
rewrite.lean:55:69-56:10: error: unsolved goals
α : Type
p : Prop
a b c : α
h : p → a = b
⊢ b = c
α : Type
p : Prop
a b c : α
h : p → a = b
⊢ p
f : Nat → Nat
w : ∀ (n : Nat), f n = 0
⊢ [f 1, 0, f 1, f 2] = [0, 0, 0, 0]
f : Nat → Nat
w : ∀ (n : Nat), f n = 0
⊢ [0, f 2, 0, f 2] = [0, 0, 0, 0]
f : Nat → Nat
w : ∀ (n : Nat), f n = 0
⊢ [0, f 2, 0, f 2] = [0, 0, 0, 0]
f : Nat → Nat
w : ∀ (n : Nat), f n = 0
⊢ [f 1, 0, f 1, 0] = [0, 0, 0, 0]
f : Nat → Nat
w : ∀ (n : Nat), f n = 0
⊢ [f 1, f 2, 0, f 2] = [0, 0, 0, 0]
f : Nat → Nat
w : ∀ (n : Nat), f n = 0
⊢ [f 1, 0, f 1, f 2] = [0, 0, 0, 0]