ir: segment init from inside a proof does not register the thm at qed
- Dominant language
- Isabelle
- Stars
- 105
- Forks
- 27
- Avg merge
- 12h 45m
- Merged PRs (30d)
- 7
Description
Initing a REPL using segment init _inside a proof_ causes problems
after finishing the proof. The '`finish`' closure seems to be gone,
meaning the finished proof is not recorded - i.e. not available under the name the proof
was started with. Furthermore, when it concerns a proof in a locale, `qed` seems to throw
you out of that locale, causing different problems down the line.
Small reproducer available here: 2f2f6fb
Contributor guide
Research direction
Start with reproducer commit 2f2f6fb and reproduce segment init from inside a proof. Trace how the finish closure is handled through qed, especially for proofs in a locale, and confirm that the completed proof remains registered under its starting name without leaving the locale.
Written by the indexing model from the issue text.
Assessment
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100