Skip to content

Fix simp regressions in ModalCompanion/Basic after deps update#2

Merged
SnO2WMaN merged 1 commit into
mainfrom
fix/modal-companion-vfser-simp
Jun 6, 2026
Merged

Fix simp regressions in ModalCompanion/Basic after deps update#2
SnO2WMaN merged 1 commit into
mainfrom
fix/modal-companion-vfser-simp

Conversation

@SnO2WMaN

@SnO2WMaN SnO2WMaN commented Jun 6, 2026

Copy link
Copy Markdown
Member

依存パッケージの更新により ModalCompanion/Basic.lean の3つの証明が壊れていたので修正した。いずれも simp2 * (n + 1) の計算や singleton 上の Finset.filterMap を畳めなくなったことが原因。

変更点

  • negRepeat_succ_rw: 補題 negRepeat_neg を切り出し、negRepeat を展開する前に乗算を明示的に書き換え。
  • notForces_double_negRepeat: 2 * (n + 1)2 * n + 1 + 1 に書き換えて simp [negRepeat] が2つの否定を展開できるようにした。
  • modal_companion_VFSer: {∼∼⊤}.star = {∼□∼□⊤}ext で示す補題 star_singleton_dni を追加し、Axioms.star を展開する代わりに(Finset.singleton_union と併せて)それで書き換えるようにした。

lake build はエラー・警告なしで通過。

🤖 Generated with Claude Code

Version bump broke three proofs that relied on simp computing
`2 * (n + 1)` and `Finset.filterMap` over a singleton:

- `negRepeat_succ_rw`: factor out `negRepeat_neg` and rewrite the
  multiplication explicitly before unfolding `negRepeat`.
- `notForces_double_negRepeat`: rewrite `2 * (n + 1)` to `2 * n + 1 + 1`
  so `simp [negRepeat]` can unfold the two negations.
- `modal_companion_VFSer`: add `star_singleton_dni` proving
  `{∼∼⊤}.star = {∼□∼□⊤}` via `ext`, and rewrite with it (plus
  `Finset.singleton_union`) instead of unfolding `Axioms.star`.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@SnO2WMaN SnO2WMaN merged commit a8cfb50 into main Jun 6, 2026
1 of 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