diff options
| author | Jason Gross | 2020-03-23 15:53:26 -0400 |
|---|---|---|
| committer | Jason Gross | 2020-03-23 15:55:40 -0400 |
| commit | 528dd28a48dd7b1898212e2aae9b43bb19fb91cc (patch) | |
| tree | c797790a1aa47c14286b92a4dca0526c0262fc35 /theories | |
| parent | b079040702d34ab06a0b1da2893d739e04477b78 (diff) | |
Fix levels of `<=?` and `<?` in the stdlib
They were defined at level 70, no associativity in all but three places,
where they were instead declared at level 35.
Fixes #11890
Diffstat (limited to 'theories')
| -rw-r--r-- | theories/Sorting/Mergesort.v | 3 | ||||
| -rw-r--r-- | theories/Structures/Orders.v | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/theories/Sorting/Mergesort.v b/theories/Sorting/Mergesort.v index a761dba62d..e9171cfdb3 100644 --- a/theories/Sorting/Mergesort.v +++ b/theories/Sorting/Mergesort.v @@ -259,7 +259,7 @@ Module NatOrder <: TotalLeBool. | _, 0 => false | S x', S y' => leb x' y' end. - Infix "<=?" := leb (at level 35). + Infix "<=?" := leb (at level 70, no associativity). Theorem leb_total : forall a1 a2, a1 <=? a2 \/ a2 <=? a1. Proof. induction a1; destruct a2; simpl; auto. @@ -269,4 +269,3 @@ End NatOrder. Module Import NatSort := Sort NatOrder. Example SimpleMergeExample := Eval compute in sort [5;3;6;1;8;6;0]. - diff --git a/theories/Structures/Orders.v b/theories/Structures/Orders.v index 6a0e7397eb..94938c1d4d 100644 --- a/theories/Structures/Orders.v +++ b/theories/Structures/Orders.v @@ -192,11 +192,11 @@ Module Type HasLtb (Import T:Typ). End HasLtb. Module Type LebNotation (T:Typ)(E:HasLeb T). - Infix "<=?" := E.leb (at level 35). + Infix "<=?" := E.leb (at level 70, no associativity). End LebNotation. Module Type LtbNotation (T:Typ)(E:HasLtb T). - Infix "<?" := E.ltb (at level 35). + Infix "<?" := E.ltb (at level 70, no associativity). End LtbNotation. Module Type LebSpec (T:Typ)(X:HasLe T)(Y:HasLeb T). |
