[Imprint][Data Privacy Statement][E-Mail]

Back to main index. View the specification. View theorem base summary, View theorem base listing, the used properties by spec, the dependency list, the symbol table,

Theorem base for Specification search-tree

This is a listing of all goals defined over the current specification. Axioms are yellow, proof obligations purple and theorems green. Click on individual names to get more information on the proof.

Name: Sequent: Type:
⊦ bst(branch(t0, b, t1)) ↔ (∀ a. a ∈ t0 → a < b) ∧ (∀ a. a ∈ t1 → b < a) ∧ bst(t0) ∧ bst(t1) An Axiom
⊦ bst(leaf) An Axiom
⊦ a ∈ branch(t0, b, t1) ↔ ¬ ¬(a = b ∨ a ∈ t0 ∨ a ∈ t1) An Axiom
⊦ ¬ a ∈ leaf An Axiom
⊦ branch(t0, a, t1).leftmost = (t0 = leaf ⊃ a;t0.leftmost) An Axiom
An Axiom
⊦ branch(t0, a, t1).butleftmost = (t0 = leaf ⊃ t1;branch(t0.butleftmost, a, t1)) An Axiom
An Axiom
An Axiom
⊦ b < a → branch(t0, b, t1).insert(a) = branch(t0, b, t1.insert(a)) An Axiom
⊦ a < b → branch(t0, b, t1).insert(a) = branch(t0.insert(a), b, t1) An Axiom
⊦ branch(t0, a, t1).insert(a) = branch(t0, a, t1) An Axiom
⊦ (leaf).insert(a) = branch(leaf, a, leaf) An Axiom
⊦ bst(branch(t0, a, t1)) → bst(t0) ∧ bst(t1) A User Theorem
⊦ bst(branch(t0, a, t1)) → ¬ a ∈ t0 ∧ ¬ a ∈ t1 A User Theorem
⊦ bst(branch(t0, a, t1)) ∧ b ∈ t0 → b < a A User Theorem
⊦ bst(branch(t0, a, t1)) ∧ b ∈ t1 → a < b A User Theorem
t ≠ leaf, bst(t) ⊦ ¬ bst(t.butleftmost) ↔ false A User Theorem
⊦ t ≠ leaf ∧ bst(t) → (a ∈ t.butleftmost ↔ a ∈ t ∧ a ≠ t.leftmost) A User Theorem
r ≠ null, ((tr(r, t) * P))(H) ⊦ ⟨search_tree_delete_min(; a, r, H)⟩ (((tr(r, t.butleftmost) * P))(H) ∧ a = t.leftmost) A User Theorem
r ≠ null, ((tr(r, t) * P))(H) ⊦ [search_tree_delete_min(; a, r, H)] (((tr(r, t.butleftmost) * P))(H) ∧ a = t.leftmost) A User Theorem
r ≠ null, ((tr(r, t) * P))(H), bst(t) ⊦ ⟨search_tree_delete_min(; a, r, H)⟩ (((tr(r, t.butleftmost) * P))(H) ∧ bst(t.butleftmost) ∧ a = t.leftmost ∧ ¬ a ∈ t.butleftmost ∧ (∀ b. b ∈ t.butleftmost → a < b)) A User Theorem
bst(t) ⊦ ¬ bst(t.insert(a)) ↔ false A User Theorem
⊦ bst(t) → (a ∈ t.insert(b) ↔ ¬ ¬(a ∈ t ∨ a = b)) A User Theorem
((tr(r, t) * P))(H) ⊦ ⟪search_tree_insert(a; r, H)⟫ ((tr(r, t.insert(a)) * P))(H) A User Theorem
⊦ t ≠ leaf → t.leftmost ∈ t A User Theorem
⊦ t ≠ leaf ∧ bst(t) ∧ b ≠ t.leftmost ∧ b ∈ t → (¬ t.leftmost < b ↔ false) A User Theorem
P(H) ⊦ ⟪search_tree_mknode(r0, a, r1; r, H)⟫ ((r => mknode(r0, a, r1) * P))(H) A User Theorem
⊦ r ≠ null ∧ ((tr(r, t) * P))(H) → (∃ t0, a, t1. t = branch(t0, a, t1)) A User Theorem