BetaAt.appR doesn't require LC N, weakening BetaAt.lc_r, not consistent with FullBeta
Maintainers usually reply within 1 day
@Digger-Rockwell is already working on this.
Since Nov 18, 2026.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- compilers
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Lean
- Stars
- 862
- Forks
- 242
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 55
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from leanprover/cslib
-
`listFullBeta_cons_r` should rename to `listFullBeta_concat_r`Possibly taken @lengyijun claimed this 146 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 72/100
leanprover/cslib#784 ·
Maintainers usually reply within 1 day
-
logic
Difficulty 1/5 Under an hour Newbie friendliness 72/100
leanprover/cslib#74 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
leanprover/cslib#1319 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
leanprover/cslib#1314 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
leanprover/cslib#1309 ·
Maintainers usually reply within 1 day
All issues in leanprover/cslib
Similar issues
-
area-dart-model gardening
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
Maintainers usually reply within 1 day
-
`shift(x, y)` with a uint256 shift amount >= 2**255 shifts in the wrong directionPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
facebookexperimental/semcode#195 ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
stjude-rust-labs/sprocket#1476 · 3 comments ·
Maintainers usually reply within 1 day