Skip to content

style documentation for where finally#844

Open
mcdoll wants to merge 1 commit into
leanprover-community:lean4from
mcdoll:style_wherefinally
Open

style documentation for where finally#844
mcdoll wants to merge 1 commit into
leanprover-community:lean4from
mcdoll:style_wherefinally

Conversation

@mcdoll
Copy link
Copy Markdown
Member

@mcdoll mcdoll commented May 14, 2026

Comment on lines +303 to +304
When defining objects that contain long definitions and proofs, it is preferred to use
`where` and `finally`:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we really want to encourage where ... finally unless the function is recursive, as this creates extra top-level declarations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants