(* Inductive Set nat : O:nat | S:nat->nat. *)

Fixpoint egal_nat (n : nat) : nat -> bool :=
  fun m : nat =>
  match n, m with
  | O, O => true
  | S n, S m => egal_nat n m
  | _, _ => false
  end.Fixpoint inf_egal (n : nat) : nat -> bool :=
  fun m : nat =>
  match n, m with
  | O, m => true
  | S n, O => false
  | S n, S m => inf_egal n m
  end.

Lemma inf_egal_eq1 : forall m : nat, inf_egal 0 m = true.