--
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/2CF94F5C-2D99-4793-956B-E54C487D8C81%40dwheeler.com.
if I want to add some new functions, is it better to add it to the relevant file or create a new file?
Also, do we assume the syntax of set.mm in the source code, e.g., wff precedes a formula, |- precedes a theorem,
and the label of a definition begins with "df-"?
I haven't paid a lot of attention to the $j comments. I was under the impression from the official specs that comments are mostly ignored. Anyway, is there any specs about the meaning of the $j comments? And which part of the program (if any) is responsible for parsing the $j comments? And what does unambiguous 'klr 5' mean?
在2022年11月12日星期六 UTC+1 21:05:54<di....@gmail.com> 写道:On Sat, Nov 12, 2022 at 1:44 PM Zheng Fan <fanzhe...@outlook.com> wrote:if I want to add some new functions, is it better to add it to the relevant file or create a new file?That depends on the function. Usually a function would go in the file which defines the type on which the function is exposed, unless it is really big in which case you might consider separate files. Rust source files tend to be fairly large, they are only broken up by topic and there aren't any strict file limits.Also, do we assume the syntax of set.mm in the source code, e.g., wff precedes a formula, |- precedes a theorem,These "conventions" are encoded in $j comments, so I would prefer to make use of that information when possible rather than hard coding them in the tool.and the label of a definition begins with "df-"?This one is only used in linter-like behavior, but I believe it is hard-coded. A lot of "verify markup"'s behavior is hard coded to maintenance of set.mm specifically.Mario
--
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/1cbae7e9-53bf-4c83-9e23-e2bb31c965dfn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/metamath/c2cd90b8-fb09-40fb-8e5a-4ffbb3e1d042n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/metamath/a43f4e76-aacf-4394-a251-b2303811016an%40googlegroups.com.
It took me longer than I wanted to find the specification we
wrote for the definition checker. It is in
https://us.metamath.org/mpeuni/conventions.html towards the bottom
(search for "additional rules for definitions"). As Mario said in
this email thread it is not (at least currently) based on $j
commands; it knows about various details of set.mm.
In an effort to make it a bit easier to deal with this definition
checker specification I submitted
https://github.com/metamath/set.mm/pull/2929 which adds a section
header to the conventions page and also updates some of the text
on https://us.metamath.org/mpeuni/mmset.html to link to the
conventions page and clean up a few issues.
To view this discussion on the web visit https://groups.google.com/d/msgid/metamath/CAFXXJSvQmzWbc26LzcMy0-ahtfTgHJJYFCwb9BUgEAk7rHGDWA%40mail.gmail.com.