Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/metaprogramming/ltac2/how_to_contradiction.v
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ From Ltac2 Require Import Ltac2 Constr Printf.
inconsistent context. It is not meant to be linked with other tactics.
Consequently, we have no use for [multimatch!] to implement [contradiction].
Choosing between [lazy_match!] and [match!] really depends on whether we need
more than a syntactic checkr, as we will see in the rest of this document.
more than a syntactic checker, as we will see in the rest of this document.
*)


Expand Down Expand Up @@ -159,7 +159,7 @@ Abort.
destruct ($np $p)
]]

Notation, to do [Control.hyp] and [$] at once is only available in Rocq 9.1 or above.
Notation to do [Control.hyp] and [$] at once is only available in Rocq 9.1 or above.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this notation ?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SkySkimmer do you know, I don't remember

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably &
constr:(&x + 1) is roughly equivalent to let y := Control.hyp @x in constr:($y + 1) (and strictly equivalent to constr:(ltac2:(Control.refine (fun _ => Control.hyp @x))))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

although that has existed for much longer than 9.1 so maybe not

@SkySkimmer SkySkimmer Aug 14, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the changelog for 9.1, probably rocq-prover/rocq#20656 $hyp:x


This leads us to the following script:
*)
Expand Down
Loading