Sets the default value to `pp.fieldNotation.generalized` to `true`. Updates tests, and fixes some minor flaws in the implementation of the generalized field notation pretty printer. Now generalized field notation won't be used for any function that has a `motive` argument. This is intended to prevent recursors from pretty printing using it as (1) recursors are more like control flow structures than actual functions and (2) generalized field notation tends to cause elaboration problems for recursors. Note: be sure functions that have an `@[app_unexpander]` use `@[pp_nodot]` if applicable. For example, `List.toArray` needs `@[pp_nodot]` to ensure the unexpander prints it using `#[...]` notation.
51 lines
1.2 KiB
Text
51 lines
1.2 KiB
Text
α : 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
|
||
?as.reverse.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]
|