~
and `
characters, when used as delimiters in markup, should have whitespace around them[
, ~
and `
must be doubled if they could not be interpreted as special in markupHi Mario,
I have 3 questions:
1. You see
( ~ elv , ~ el2v and ~ el3v theorems)
here: http://us2.metamath.org/mpeuni/elv.html
In /develop, you find
( ~ elv , ~ el2v* and ~ el3v* theorems)
Is it possible to refer to a set of theorems with one string? I mean,
you understand that ~ el3v* means all theorems beginning with el3v
(i.e. ~ el3v ~ el3v1 ~ el3v2 ~ el3v3 ~ el3v12 ~ el3v13 and ~ el3v23 ),
but can you express this in a way that shows ( ~ elv , ~ el2v* and ~
el3v* theorems) here http://us2.metamath.org/mpeuni/elv.html as well?
Or should I write this: ( ~ elv , and the theorems beginning with `
el2v ` or ` el3v ` ) ? (Or is it solved already just didn't show up at
us2.metamat.org yet?)
2. You see
Inference forms (with ) of the general theorems (with ) may be superfluous.
here: http://us2.metamath.org/mpeuni/elv.html
In /develop, you find
Inference forms (with ` $e |- A e. _V $. ` ) of the general theorems
(with ` $p |- ( A e. V -> ` ) may be superfluous.
How should I express what I want?
VERIFY MARKUP is being run on iset.mm and set.mm and is passing.
Go to the latest entry in the Actions tab ( https://github.com/metamath/set.mm/runs/5038215989?check_suite_focus=true ), follow the link from the duplication check (takes you to https://github.com/metamath/set.mm/runs/5032713820?check_suite_focus=true ) and open the "Run scripts/verify --top_date_skip --extra 'write bibliography mmbiblio.html' set.mm" entry to see:
MM> !VERIFY MARKUP * / TOP_DATE_SKIP
--
You received this message because you are subscribed to the Google Groups "Metamath" group.
To unsubscribe from this group and stop receiving emails from it, send an email to metamath+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/metamath/CAFXXJSvrO%2BB15uKq2O6cCNJg_1x3YpkCkLynf4vrvyM5fYLRNQ%40mail.gmail.com.
- * The use of space after ~ was used to make it easier to find labels in comments for find/replace activities, and I think there are only a small handful of violators.
>> 3. Reference to the ` $e |- A e. _V $. ` stings in set.mm (cf. above)
>> are verified by the verify markup feature. Sometimes, in the notes
>> parts of other theorems, I want to refer to longer strings in set.mm ,
>> but verify markup doesn't allow it. Is it a way to do it?
>>
>
> I don't understand the question. Math strings allow you to render metamath
> token strings the same way as they would appear normally in proofs. They
> don't do any cross referencing. Label references can be used for cross
> referencing, and they only link to theorems, not subsections or other
> things like that, although you can use <HTML> to write arbitrary markup if
> you really want (although I think this was a bad idea and I would like to
> decrease use of <HTML> in favor of more structured markup).
The function of it is cross referencing by searchability. If you are
able to put searchable strings into the notes of theorems, they may be
not cross-references in html-way, but they are cross-references in a
way that you can search them in set.mm locally.
2 examples:
>> Inference forms (with ` $e |- A e. _V $. ` ) of the general theorems
>> (with ` $p |- ( A e. V -> ` ) may be superfluous.
You search for $e |- A e. _V $. locally and you see that these el*v*
theorems refer to 395 theorems in set.mm containing $e |- A e. _V $. .
Or:
$( Two ways of saying that two classes are disjoint (when ` C = (/) ` :
` ( ( A i^i B ) = (/) <-> ( B i^i A ) = (/) ) ` ). (Contributed by Peter
Mazsa, 22-Mar-2017.) $)
ineqcom $p |- ( ( A i^i B ) = C <-> ( B i^i A ) = C ) $=
( cin incom eqeq1i ) ABDBADCABEF $.
means that when you search for ( A i^i B ) = (/) in set.mm you will
find the more general ineqcom (rendered perfectly az
http://us.metamath.org/mpeuni/ineqcom.html ). The problem is that if
you put too much characters between ` and ` , the /rewrap feature is
not able to rewrapping it: how should I quote longer strings? And: if
you write e.g. ` u ( `' _E |` A ) x ` in the notes of a theorem, it is
not allowed by verify markup, because the second ` is interpreded as
the closing ` instead of the third one.
And here my remarks on Mario's rules/checks:
- * Non-doubled ~ inside a URL was already being warned against in metamath.exe, although arguably it's fine since it doesn't do anything and is interpreted literally.
There ARE real URLs which contain ~. In such URLs, ~~ must be used, see mmset.raw.html "http://www.math.miami.edu/~~ec/book". What exactly happens if this is written as "http://www.math.miami.edu/~ec/book"?
- * Non-doubled [ has lots of violators in set.mm. There are examples that seem to suggest that people are relying on [ getting printed literally as long as the ] comes after a space. Something like [foo] has to be written as [[foo] because otherwise it would be interpreted as a bibliography tag, but [foo bar] can't be a tag and is interpreted literally; this is the case that triggers the new warning.
As far as I can remember there are strict rules for bibliographic references (no whitespaces, etc.) , and all other cases are interpreted literally. We should stick with this and should not enforce the usage of [[ in these cases.
- * In bibliography references, there are no escapes but ~ and ` break metamath.exe, so there are no violators.
I do not really understand this case. Could you give an example?
[<A HREF="mmset.html#foo<FONT COLOR=blue >bar">foo</FONT> <SPAN CLASS=r STYLE="color:#000000">(future)</SPAN>bar</A>]
- Some more fun things:
* ~[ab] gets interpreted as *both* a bibliography tag and a label reference, resulting in a broken link to the statement [ and a link to the bibliography tag "ab". Currently mm-knife does the next best thing which is to interpret it as an empty label reference followed by a bibliography tag.Really funny, but this won't be possible in the future (if the strict space-separated tilde rule is enforced): it will have to be either "~ [ab]", then [ab] must be a label, or "~~[ab]", then [ab] must be a bibliography tag.
- * ` alone in a comment starts math mode and doesn't end it, so you get a warning about "</TD></TR></TABLE></CENTER>" not having an html definition. Naturally, you can therefore add a token called </TD></TR></TABLE></CENTER> and give it htmldefs and it will pass VERIFY MARKUP, and the resulting HTML file will look just a bit off.
If this can be checked, it should not be allowed in the future.
--
You received this message because you are subscribed to the Google Groups "Metamath" group.
To unsubscribe from this group and stop receiving emails from it, send an email to metamath+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/metamath/CAJJTU5ppfdp40ZM9suURAKNc%2BDNqJnZubhzVsFudGQwdTa1uaw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/metamath/CAJJTU5rjfouTa4z6jv4BA81gnabkfVDz_8HGNCUua_x_JTugbw%40mail.gmail.com.
After playing with rewrap a bit, I think the reason for the restriction is that "write source /rewrap" will not attempt to break math strings, but it will remove newlines from math strings, meaning that if you have a long math string containing newlines it will be rewrapped into a long line, which then fails to pass verify markup.This leaves the question of what to do, however. The rewrap command could reflow math tokens, but this almost always looks terrible, which is why it doesn't do this for regular statements unless they go over the line limit. A more reasonable approach would be to preserve any internal whitespace in a math string, to allow for manual indentation.
--
You received this message because you are subscribed to the Google Groups "Metamath" group.
To unsubscribe from this group and stop receiving emails from it, send an email to metamath+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/metamath/9be9c84f-5cfb-4d8e-8e08-9a6a422b49dan%40googlegroups.com.
I was considering it. Or at least, deprecating it once we have an adequate replacement, which can then have a different behavior on long math strings.If we're keeping the current behavior, I suppose that means that there should be a warning for newlines in a math string?
--
You received this message because you are subscribed to the Google Groups "Metamath" group.
To unsubscribe from this group and stop receiving emails from it, send an email to metamath+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/metamath/537e395a-b398-486c-a4c6-bdb8a0f0f23an%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/metamath/bcc58547-ace7-40f3-9257-362cb0f6fa48n%40googlegroups.com.