syntax - Usage of "red in |- *": What does bar hyphen star mean? -
in lot of coq code, in the definition of sets in standard library, i've seen sort of notation:
red in |- *.
what |-*
(bar-hyphen-star) mean?
my searching hasn't turned results, it's hard search punctuation, please excuse me if duplicate!
it's called occurrence clause ,
the role of occurrence clause select set of occurrences of term in goal.
i'd add "to tactic going applied" above quote (the coq reference manual, sect. 8.1.4).
then manual proceeds following:
if
*
mentioned on right of|-
, occurrences of conclusion of goal have selected.
let's @ simple cases:
<tactic> in * |-.
applies<tactic>
every hypothesis, not current goal.<tactic> in h1, h2 |- *.
applies<tactic>
hypothesesh1
,h2
and goal.<tactic> in * |- *.
applies<tactic>
everywhere. there shortcut case:<tactic> in *
.
for many tactics <tactic> in |- *.
equivalent <tactic>
. if, example, delete occurrences of in |- *
linked file still compile.
Comments
Post a Comment