rocq-prover / rocq-prover/stdlib
Importing PeanoNat.Nat shadows eq definition
Nobody has claimed this yet.
- Dominant language
- Rocq Prover
- Stars
- 42
- Forks
- 38
- Avg merge
- 14h 6m
- Merged PRs (30d)
- 3
Description
From Stdlib Require Import PeanoNat.
About eq. (* Corelib.Init.Logiq.eq *)
Import Nat.
About eq. (* Stdlib.Arith.PeanoNat *)
This prevents writing, e.g. eq_refl in a proof term (except for nat of course).
A possible (heavy but maybe beneficial in the long run) fix would be to change Numbers so that equality is Leibniz everywhere instead.
Or I learn to live with it and stop Importing Nat, but this is painful for a (somewhat basic) course.
Contributor 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.
Research direction
Start by reproducing the PeanoNat import example and compare the two reported results of About eq before and after Import Nat. Read the PeanoNat and Numbers modules to understand how the Nat equality definition is exposed. Done should mean an agreed resolution for the eq shadowing, with the behavior and any compatibility impact documented.
Written by the indexing model from the issue text.
Assessment
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100