Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve axiom detection heuristic in axiom_use.rs #162

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

digama0
Copy link
Member

@digama0 digama0 commented Jun 15, 2024

Fixes an issue mentioned in #160: instead of using ax- to detect axioms, use non-syntax axioms which do not start with df-.

db.write_stmt_use(
|sref| {
sref.statement_type() == StatementType::Axiom
&& sref.proof_slice_at(0) == b"|-"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why not use the $j syntax '|-' as 'wff'; hint?

Choose a reason for hiding this comment

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

Possibly the instant motivation was that set.mm/miu.mm also uses the popular token |- but doesn't have any $j comments or distinguish the introduction of new non-syntax/non-definition rules with labels that begin with ax-, so this meant to be an incremental improvement with respect to the set.mm databases/examples in the Metamath book.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants