(* ArithCompl.v *)
(**********************************)
(* Some complements of arithmetic *)
(**********************************)
Require Export Wf_nat.
Require Export ZArith.
Require Export Znumtheory.
Require Export Reals.
Open Scope Z_scope.
Unset Standard Proposition Elimination Names.
(***************)
(* Regarding Z *)
(***************)
Definition is_sqr (n : Z) : Prop :=
0 <= n /\ exists i : Z, i * i = n /\ 0 <= i.
Definition both_odd (x y : Z) := Zodd x /\ Zodd y.
Definition distinct_parity (a b : Z) :=
(Zeven a) /\ (Zodd b) \/ (Zodd a) /\ (Zeven b).

Lemma sqr_sum5 : forall a b: Z,
a <> 0 -> b <> 0 -> distinct_parity a b -> a + b < a * a + b * b.