Skip to content

fix: rename inv_mul_cancel to inv_mul_cancel₀ in Level 8 (closes #21)#22

Merged
ZRTMRH merged 1 commit into
mainfrom
fix-issue-21-inv-mul-cancel-zero
May 15, 2026
Merged

fix: rename inv_mul_cancel to inv_mul_cancel₀ in Level 8 (closes #21)#22
ZRTMRH merged 1 commit into
mainfrom
fix-issue-21-inv-mul-cancel-zero

Conversation

@ZRTMRH
Copy link
Copy Markdown
Owner

@ZRTMRH ZRTMRH commented May 15, 2026

The TheoremDoc and NewTheorem declarations advertised inv_mul_cancel h for proving x⁻¹ * x = 1 from h : x ≠ 0, but in current mathlib that is inv_mul_cancel₀ (the GroupWithZero version). Plain inv_mul_cancel is the group version and takes no hypothesis, so following the docs failed type-checking. Also simplifies the helper lemma's internal proof to use inv_mul_cancel₀ directly instead of the indirect mul_eq_one_iff_eq_inv₀ rewrite.

The TheoremDoc and NewTheorem declarations advertised `inv_mul_cancel h`
for proving `x⁻¹ * x = 1` from `h : x ≠ 0`, but in current mathlib that
is `inv_mul_cancel₀` (the GroupWithZero version). Plain `inv_mul_cancel`
is the group version and takes no hypothesis, so following the docs failed
type-checking. Also simplifies the helper lemma's internal proof to use
`inv_mul_cancel₀` directly instead of the indirect `mul_eq_one_iff_eq_inv₀`
rewrite.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@ZRTMRH ZRTMRH merged commit 99dd196 into main May 15, 2026
2 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.

1 participant