Repository navigation
feat(Util/Notation3): don't try matching tactic blocks - #45042
YaelDillies wants to merge 1 commit into
Conversation
This means that `notation3` can e.g. be used to create a delaborator for concrete cycle notation `c[...]` whereas previously it would fail due to the `by decide` in the expansion. This is best effort, in the sense that eluding a proof in pretty-printing is necessarily a loss, unless we somehow run the tactic block while pretty-printing to determine whether the proof could have come from the tactic or had been hand-provided by the user. Remove the `(prettyPrint := false)` flag in concrete cycle notation and the application of `Cycle.nodup_coe_iff` in the default proof term: the decidability instance applies it automatically anyway. Generated by Claude Opus, hand-edited by myself afterwards. Assisted-by: Claude Opus 5.5
PR summary 9dcb35b247Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
|
Is this behaviour actually desirable? Since we aren't checking that the tactic actually produces the required proof, this can break round tripping. |
|
Indeed, but so is eliding proofs. A good parallel here is |
|
I somewhat share the caution when it comes to notation which doesn't round-trip. Eliding proofs is IMO a different thing because you still actively see Do we have any estimate on which (or how many) |
Only 3 out of ~200
Re |
This means that
notation3can e.g. be used to create a delaborator for concrete cycle notationc[...]whereas previously it would fail due to theby decidein the expansion.This is best effort, in the sense that eluding a proof in pretty-printing is necessarily a loss, unless we somehow run the tactic block while pretty-printing to determine whether the proof could have come from the tactic or had been hand-provided by the user.
Remove the
(prettyPrint := false)flag in concrete cycle notation and the application ofCycle.nodup_coe_iffin the default proof term: the decidability instance applies it automatically anyway.Generated by Claude Opus, hand-edited by myself afterwards.
Assisted-by: Claude Opus 5.5