Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove lambda abstraction of
Nat.rec_zero
and Nat.rec_add_one
(
#3839) ```lean theorem rec_zero {C : ℕ → Sort u} (h0 : C 0) (h : ∀ n, C n → C (n + 1)) : (Nat.rec h0 h : ∀ n, C n) 0 = h0 := rfl ``` The above theorem is elaborated as follow: ```lean theorem rec_zero {C : ℕ → Sort u} (h0 : C 0) (h : ∀ n, C n → C (n + 1)) : (fun n => Nat.rec h0 h n) 0 = h0 := rfl ``` This form of the theorem isn't generic. This PR fixes this problem. Co-authored-by: Pol_tta <52843868+Komyyy@users.noreply.github.com>
- Loading branch information