Skip to content

Commit 8b6ec8a

Browse files
committed
wip
1 parent 6b8291a commit 8b6ec8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Init/Data/Range/Polymorphic/NatLemmas.lean

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,10 +573,12 @@ theorem induct_rcc_right (motive : Nat → Nat → Prop)
573573
(base : ∀ a b, b < a → motive a b)
574574
(step : ∀ a b, a ≤ b → motive a b → motive a (b + 1))
575575
(a b : Nat) : motive a b := by
576-
apply induct_rco_right (fun a b => motive a (b + 1))
577576
induction h : b + 1 - a generalizing a b
578577
· apply base; omega
579578
· rename_i d ih
579+
match b with
580+
| 0 =>
581+
have : a = 0 := by omega
580582

581583
obtain ⟨b, rfl⟩ := Nat.exists_eq_succ_of_ne_zero (show b ≠ 0 by omega)
582584
apply step

0 commit comments

Comments
 (0)