Skip to content

Implicit argument inconsistency for reflect lemmas #1804

@agontard

Description

@agontard

I do not know of a reason why the following should have different implicit arguments

Lemma RltP : forall x y, reflect (Rlt x y) (x < y)%R.
Proof. exact: RltbP. Qed.

(from boot/ssrnat.v)

  Lemma ltP m n : reflect (m < n)%coq_nat (m < n).
  Proof. exact leP. Qed.
  Arguments ltP {m n}.

As a user, the second format is better to use, in particular with reflect_eq, see for example:

Notation "H **" := (reflect_eq H).
(...)
  rewrite thm1 ltP** andP** eqP** thm2.
  rewrite thm3 (RltP _ _)** (RleP _ _)** thm4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    question ❓There is an unanswered question here

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions