Skip to content

Fix Section 8.4: unused vars and missing sorry#470

Merged
teorth merged 1 commit intoteorth:mainfrom
rkirov:fix/unused-vars-section-8-4
Mar 22, 2026
Merged

Fix Section 8.4: unused vars and missing sorry#470
teorth merged 1 commit intoteorth:mainfrom
rkirov:fix/unused-vars-section-8-4

Conversation

@rkirov
Copy link
Contributor

@rkirov rkirov commented Mar 16, 2026

Summary

  • Replace unused f with _ in Function.equiv left_inv/right_inv to silence warnings
  • Replace direct proof of axiom_of_choice_from_exists_function with sorry — the docstring says "establish this result directly from exists_function", so the proof should be left as an exercise for the reader (matching the pattern of axiom_of_choice_from_exists_set_singleton_intersect and axiom_of_choice_from_function_injective_inv_surjective)

Test plan

  • lake build Analysis.Section_8_4 passes (the sorry produces only a warning, not an error)

🤖 Generated with Claude Code

- Replace unused `f` with `_` in `Function.equiv` left_inv/right_inv
- Replace direct proof of `axiom_of_choice_from_exists_function` with
  `sorry` — the exercise asks to derive it from `exists_function`, so
  the proof should be left to the reader

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@teorth teorth merged commit 01a439a into teorth:main Mar 22, 2026
3 checks passed
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