BetaAt.appR doesn't require LC N, weakening BetaAt.lc_r, not consistent with FullBeta

オープン
#1,243 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Digger-Rockwell がすでに取り組んでいます。

2026年11月18日 から。

  • #3 @Digger-Rockwell による — オープン
  • #1247 @Digger-Rockwell による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
領域
compilers

調査の方向性

Read BetaAt.lean around the appR constructor and BetaAt.lc_r at line 195, then compare the local-closure constraints with FullBeta.lean and step_lc_r at line 77. Determine what change would make BetaAt consistent with FullBeta while preserving the intended reduction relation, and check the relevant Lean proofs; done means the local-closure guarantee matches the full-step result.

索引モデルが issue の本文から書いたものです。

説明

The appR constructor of BetaAt does not require N to be locally closed (LC N):
| appR : BetaAt i M M' → BetaAt (i + countRedexes N + if IsAbs N then 1 else 0) (app N M) (app N M')

Because appR can take a non-locally-closed N, the consequent lemma BetaAt.lc_r is much weaker than the corresponding result in FullBeta.lean:

  • BetaAt.lc_r : BetaAt i M M' → LC M → LC M' (BetaAt.lean:195) — only gives LC M' from LC M, and only for the redex position step.
  • FullBeta.step_lc_r : M ⭢βᶠ M' → LC M' (FullBeta.lean:77) — the full-step relation already guarantees local closure of the result.

Since FullBeta properly enforces local closure throughout, BetaAt should be consistent with it.

@m-ow @weiscadence @chenson2018

主要言語
Lean
スター
847
フォーク
234
平均マージ
2日 21時間
マージ済み PR(30日)
49

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

leanprover/cslib のほかの issue

leanprover/cslib の issue をすべて見る

似ている issue

Compilers の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。