Open
Description
When reexporting things, there are sometimes type signatures stated in comments. I think I found a few places where these type signatures are inaccurate, for example:
agda-stdlib/src/Data/Nat/Properties.agda
Line 1196 in ebfb881
This function actually takes the n
argument first and the m
argument second, because x≤y⊔x
is a renaming of x⊓y≤y
which of course takes the x
argument first:
The same issue is present in all four places where x≤y⊔x
is re-exported:
src/Data/Integer/Properties.agda: ; x≤y⊔x to i≤j⊔i -- : ∀ i j → i ≤ j ⊔ i
src/Data/Nat/Properties.agda: ; x≤y⊔x to m≤n⊔m -- : ∀ m n → m ≤ n ⊔ m
src/Data/Rational/Properties.agda: ; x≤y⊔x to p≤q⊔p -- : ∀ p q → p ≤ q ⊔ p
src/Data/Rational/Unnormalised/Properties.agda: ; x≤y⊔x to p≤q⊔p -- : ∀ p q → p ≤ q ⊔ p
The same thing happens for example for x≤y⇒x≤z⊔y
(which is a renaming of x≤y⇒z⊓x≤y
), but here only the order of the implicit arguments is flipped:
src/Data/Integer/Properties.agda: ; x≤y⇒x≤z⊔y to i≤j⇒i≤k⊔j -- : ∀ {i j} k → i ≤ j → i ≤ k ⊔ j
src/Data/Nat/Properties.agda: ; x≤y⇒x≤z⊔y to m≤n⇒m≤o⊔n -- : ∀ {m n} o → m ≤ n → m ≤ o ⊔ n
src/Data/Rational/Properties.agda: ; x≤y⇒x≤z⊔y to p≤q⇒p≤r⊔q -- : ∀ {p q} r → p ≤ q → p ≤ r ⊔ q
src/Data/Rational/Unnormalised/Properties.agda: ; x≤y⇒x≤z⊔y to p≤q⇒p≤r⊔q -- : ∀ {p q} r → p ≤ q → p ≤ r ⊔ q