Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Error about the fact that type specified by $f statement is global even if variable is not.

63 views
Skip to first unread message

Sylvain Kerjean

unread,
Jan 29, 2025, 4:48:35 PMJan 29
to Metamath
Hello,

In the metamath book, p114 there is this assertion :

The type declared by a $f statement for a given label is global even if the
variable is not (e.g., a database may not have wff P  in one local scope and
class P  in another). 

I can guess the justification was to speed up verification of types with no soundness weakness, but it seems not to be inforced in metamath-exe :
this minimal example doesn't trigger an error message (variable v is declared with types A then B, and used in both proofs).

So should we add  an erratum to he book errata list, or file an issue to metamath-exe ?

================
$c A B $.

${
$v v $.
tA $f A v $.

hypA $e A v $.
conA $p A v $= hypA $.
$}

${
$v v $.
tB $f B v $.

hypB $e B v $.
conB $p B v $= hypB $.
$}

Glauco

unread,
Feb 24, 2025, 2:26:44 PMFeb 24
to Metamath

I've tested the example myself, and the Metamath program verifies it without errors.

Given the explicit statement in the book, I lean toward considering this as a potential issue in metamath-exe rather than an erratum for the book.

How does metamathknife handle this case?

Mario Carneiro

unread,
Feb 24, 2025, 2:53:11 PMFeb 24
to meta...@googlegroups.com
metamath-knife also permits it. I think not all mm verifiers support it though; I originally advocated for adding this rule to simplify verifiers that don't do scoped c/v (e.g. because they build a grammar for the database and use that to check everything).

--
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 visit https://groups.google.com/d/msgid/metamath/a0a5ed40-75bd-4413-af03-a472c37c369fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages