Lemma min_comm (a b : nat) : min a b = min b a. Proof. apply eq_of_le_le; apply min_le_iff; split; auto using min_le_l, min_le_r. Qed.
Require Import UniMath.Foundations.All. Require Import UniMath.MoreFoundations.All. Require Import UniMath.Combinatorics.Maybe. Require Import UniMath.Combinatorics.StandardFiniteSets. Require Import UniMath.Algebra.Domains_and_Fields. Require Import UniMath.Algebra.RigsAndRings.