Skip to content

docs: document defeq and type inference related functions - #2

Open
rish987 wants to merge 7 commits into
digama0:masterfrom
rish987:defeq-docs2
Open

docs: document defeq and type inference related functions#2
rish987 wants to merge 7 commits into
digama0:masterfrom
rish987:defeq-docs2

Conversation

@rish987

@rish987 rish987 commented May 17, 2024

Copy link
Copy Markdown

Hi, I've been adding some documentation while trying to understand this implementation better. Regarding the FIXMEs, I've left them in for now just because I was curious if you have any thoughts on them (I think I will also do a bit of experimentation regarding them), but I can remove them before merging. I plan to add some docs for the type-inference functions next.

Comment thread Lean4Lean/TypeChecker.lean Outdated
Comment thread Lean4Lean/TypeChecker.lean Outdated
Comment thread Lean4Lean/TypeChecker.lean Outdated
pure e
else
let r := f.mkAppRevRange 0 rargs.size rargs
-- FIXME replace with reduceRecursor? adding arguments can only result in further normalization if the head reduced to a partial recursor application

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Couldn't it also reduce to a lambda?

@rish987 rish987 May 18, 2024

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes, but in that case it would have went into the first branch of the conditional.

Comment thread Lean4Lean/TypeChecker.lean Outdated
@rish987 rish987 changed the title docs: document defeq-related functions docs: document defeq and type inference related functions May 21, 2024
Comment thread Lean4Lean/TypeChecker.lean Outdated
srghma added a commit to srghma/lean4lean that referenced this pull request May 17, 2026
Squash merge of PR digama0#2 by rish987.
Reference: digama0#2

Adds documentation for defeq and type-inference related functions to improve codebase understandability.
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