Skip to content
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

Extended reals notations shows up unexpectedly #1476

Open
CohenCyril opened this issue Feb 13, 2025 · 2 comments
Open

Extended reals notations shows up unexpectedly #1476

CohenCyril opened this issue Feb 13, 2025 · 2 comments
Labels
"bug" 🐛 This issue (resp. PR) describes (resp. fixes) a "bug"

Comments

@CohenCyril
Copy link
Member

CohenCyril commented Feb 13, 2025

From mathcomp Require Import all_ssreflect ssralg ereal.

Open Scope ring_scope.

Goal forall (R : nmodType) (x : R), x + x = x.

is displayed wrongly:

  ============================
  forall (R : nmodType) (x : R), (x + x)%E = x

(everything is fine if ereal is not imported)

@proux01
Copy link
Collaborator

proux01 commented Feb 13, 2025

Likely

Notation "x + y" := (GRing.add (x%dE : \bar^d _) y%dE) : ereal_dual_scope.
Notation "x + y" := (GRing.add x%E y%E) : ereal_scope.
that is not precise enough

@CohenCyril
Copy link
Member Author

Likely

analysis/reals/constructive_ereal.v

Lines 480 to 481 in e9483b0

Notation "x + y" := (GRing.add (x%dE : \bar^d _) y%dE) : ereal_dual_scope.
Notation "x + y" := (GRing.add x%E y%E) : ereal_scope.
that is not precise enough

It looks like the only possible origin, but it still does not explain why the ereal_scope is triggered in the first place

@affeldt-aist affeldt-aist added the "bug" 🐛 This issue (resp. PR) describes (resp. fixes) a "bug" label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
"bug" 🐛 This issue (resp. PR) describes (resp. fixes) a "bug"
Projects
None yet
Development

No branches or pull requests

3 participants