Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List.foldlList.foldr の説明が不適当 #923

Closed
Seasawher opened this issue Sep 30, 2024 · 0 comments · Fixed by #924
Closed

List.foldlList.foldr の説明が不適当 #923

Seasawher opened this issue Sep 30, 2024 · 0 comments · Fixed by #924

Comments

@Seasawher
Copy link
Member

Seasawher commented Sep 30, 2024

問題点として、本文で挙げられている List.sum 関数などは List.foldl の例として紹介されているが、実際には List.foldr の方と definitionally equal になっている。

example : List.foldr (f := (· + ·)) (init := 0) = List.sum := by rfl
@Seasawher Seasawher changed the title List.foldl は末尾再帰だが、例示した List.sum などは末尾再帰ではない List.foldlList.foldr の説明が不適当 Sep 30, 2024
@Seasawher Seasawher self-assigned this Sep 30, 2024
Seasawher added a commit that referenced this issue Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant