• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
        • Leftist-tree-sort
        • Leftist-tree-fns
          • Leftist-tree-ops
            • Merge-lt
            • Insert-lt
            • Find-min-lt
            • Build-lt
            • Delete-min-lt
          • Leftist-tree-structure
          • Leftist-tree-misc
        • Leftist-tree-thms
        • How-many-lt
        • Ltree-sort
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Bigmems
      • Builtins
      • Execloader
      • Aleo
      • Solidity
      • Paco
      • Concurrent-programs
      • Bls12-377-curves
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Leftist-tree-fns

Leftist-tree-ops

The basic heap operations of leftist trees.

The core operation here is MERGE-LT. All the other operations are defined in terms of MERGE-LT, which makes leftist trees relatively easy to reason about.

Subtopics

Merge-lt
Merge two leftist trees
Insert-lt
Insert an element into a leftist tree
Find-min-lt
Get the minimum element of a leftist tree
Build-lt
Build a leftist tree from a list
Delete-min-lt
Delete the minimum element of a leftist tree