Skip to content

4 proofs suggested for Rational.Properties #2921

@mechvel

Description

@mechvel

I suggest to add to Data.Rational.Properties the following functions.
This is because they are usable, and their analogues are in Data.Nat.Properties :

≤⇒≯ : {x y : ℚ} → x ≤ y → x ≯ y
≤⇒≯ {x} {y} x≤y y<x =  <⇒≢ y<x y=x
     where
     y≤x = <⇒≤ y<x;   x=y = ≤-antisym x≤y y≤x;   y=x = sym x=y

p*q≡0⇒p≡0∨q≡0 : {p q : ℚ} → p * q ≡ 0ℚ → p ≡ 0ℚ ⊎ q ≡ 0ℚ
p*q≡0⇒p≡0∨q≡0  {x} {y} xy=0
   with <-cmp x 0ℚ | <-cmp y 0ℚ
   ...

p*q≢0⇒p≢0 : {p q : ℚ} → p * q ≢ 0ℚ → p ≢ 0ℚ
...

p*q≢0⇒q≢0 : {p q : ℚ} → p * q ≢ 0ℚ → q ≢ 0ℚ
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions