Skip to content

Naming convention for formalized proofs #288

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

iehality
Copy link
Member

@iehality iehality commented Mar 27, 2025

提案:HilbertStyle 下の証明名は

  1. 命名が混乱している(たとえば or₃'''! のような名前は読みやすくはない)
  2. メタ論理の論理結合子名と形式化された論理結合子名が混合していてわかりにくい.

などの問題がある.次のような Łukasiewicz 風の記法で一貫した命名基準を試す.

Naming Convention

The names of the formalized proofs are determined by the following steps. (e.g. 𝓢 ⊢! (φ ⋏ ψ ➝ χ) ⭤ (φ ➝ ψ ➝ χ)):

  1. Convert the formula to Łukasiewicz's notation (ECKφψχCφCψχ).
  2. Remove meta variables (ECKCC).
  3. Make it lowerCamelCase (eCKCC).
  4. Postfix ! if it is a proposition (eCKCC!).

@SnO2WMaN
Copy link
Member

SnO2WMaN commented Apr 9, 2025

  1. Naming Conventionの3の最初の文字のlowercaseにするのは要らないような気もする.(ここだけLeanの慣習的な命名規則に沿わないことになるが,そもそも記号列なのでここまで合わせる必要は無い気もする)
  2. 適当に#evalで名前を出力してくれるツールがあるとミスが無くリネームできて良さそう.

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.

2 participants