Skip to content

Commit dcd83fe

Browse files
committed
Expand match_nat test
1 parent 693254c commit dcd83fe

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/lean/run/match_nat.lean

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,20 @@ info: private theorem f.match_1.eq_4.{u_1} : ∀ (motive : Nat → Sort u_1) (x
3838
-/
3939
#guard_msgs in
4040
#print sig f.match_1.eq_4
41+
42+
/--
43+
info: private theorem f.match_1.congr_eq_4.{u_1} : ∀ (motive : Nat → Sort u_1) (x : Nat) (h_1 : Unit → motive 0)
44+
(h_2 : Unit → motive 10) (h_3 : Unit → motive 100) (h_4 : (x : Nat) → motive x) (x_1 : Nat),
45+
x = x_1 →
46+
(x_1 = 0 → False) →
47+
(x_1 = 10 → False) →
48+
(x_1 = 100 → False) →
49+
(match x with
50+
| 0 => h_1 ()
51+
| 10 => h_2 ()
52+
| 100 => h_3 ()
53+
| x => h_4 x) ≍
54+
h_4 x_1
55+
-/
56+
#guard_msgs in
57+
#print sig f.match_1.congr_eq_4

0 commit comments

Comments
 (0)