Original: It is different from an armistice , which is an agreement to cease hostilities , or a surrender , in which an army agrees to give up arms .
Simplified: A peace treaty is a formal ( official ) agreement which ends a conflict .