Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. Lemma inf_height_labels : forall t : btree,
  2. height t <= nb_labels t.
  3. Proof.
  4. intros.
  5. induction t.
  6. simpl.
  7. Search (_<=_).
  8. apply Nat.le_0_l.
  9.  
  10. simpl.
  11. Search (S _ <= S _).
  12. apply le_n_S.
  13. Search ( max _ _ <= _).
  14. apply Nat.max_lub.
  15. Search ( _ <= _ + _).
  16. apply le_plus_trans.
  17. assumption.
  18. Search ( _ +_ ).
  19. rewrite Nat.add_comm.
  20. apply le_plus_trans.
  21. assumption.
  22. Qed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement