rocq-community / rocq-community/math-classes
canonical_names.v overwrites a lot of standard notation
Nobody has claimed this yet.
- Dominant language
- Rocq Prover
- Stars
- 169
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
For instance = and +. This causes a ton of conflict, and has caused me to write stuff like this:
Require Import MathClasses.interfaces.canonical_names.
(* math-classes uses (=) to denote equivalence, but we will use it for equality *)
Infix "=" := eq : type_scope.
Notation "(=)" := eq (only parsing) : mc_scope.
Notation "( x =)" := (eq x) (only parsing) : mc_scope.
Notation "(= x )" := (λ y, eq y x) (only parsing) : mc_scope.
Could we perhaps separate this into two files, one that exports stuff compatible with standard notation, and one that doesn't?
Contributor guide
No contributing guide indexed for this repository
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
Read MathClasses.interfaces.canonical_names and the linked src/Interfaces/Functor.v example first, focusing on the notation exports that conflict with standard symbols such as = and +. Separate the compatible and conflicting notation exports as proposed, then verify that consumers can use standard notation without the current conflicts.
Written by the indexing model from the issue text.
Assessment
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100