-- Std.Data.DTreeMap.Internal.Balancing
_private.Std.Data.DTreeMap.Internal.Balancing.0.Std.DTreeMap.Internal.Impl.balanceR!.match_1.eq_1 : ∀ {α : Type u_1} {β : α → Type u_2} (motive : Std.DTreeMap.Internal.Impl α β → Sort u_3)
  (h_1 : Unit → motive Std.DTreeMap.Internal.Impl.leaf)
  (h_2 :
    (size : ℕ) →
      (k : α) →
        (v : β k) →
          motive
            (Std.DTreeMap.Internal.Impl.inner size k v Std.DTreeMap.Internal.Impl.leaf Std.DTreeMap.Internal.Impl.leaf))
  (h_3 :
    (size : ℕ) →
      (rk : α) →
        (rv : β rk) →
          (rr : Std.DTreeMap.Internal.Impl α β) →
            (size_1 : ℕ) →
              (k : α) →
                (v : β k) →
                  (l r : Std.DTreeMap.Internal.Impl α β) →
                    rr = Std.DTreeMap.Internal.Impl.inner size_1 k v l r →
                      motive
                        (Std.DTreeMap.Internal.Impl.inner size rk rv Std.DTreeMap.Internal.Impl.leaf
                          (Std.DTreeMap.Internal.Impl.inner size_1 k v l r)))
  (h_4 :
    (size : ℕ) →
      (rk : α) →
        (rv : β rk) →
          (size_1 : ℕ) →
            (rlk : α) →
              (rlv : β rlk) →
                (l r : Std.DTreeMap.Internal.Impl α β) →
                  motive
                    (Std.DTreeMap.Internal.Impl.inner size rk rv (Std.DTreeMap.Internal.Impl.inner size_1 rlk rlv l r)
                      Std.DTreeMap.Internal.Impl.leaf))
  (h_5 :
    (rs : ℕ) →
      (rk : α) →
        (rv : β rk) →
          (rl : Std.DTreeMap.Internal.Impl α β) →
            (rls : ℕ) →
              (k : α) →
                (v : β k) →
                  (l r : Std.DTreeMap.Internal.Impl α β) →
                    rl = Std.DTreeMap.Internal.Impl.inner rls k v l r →
                      (rr : Std.DTreeMap.Internal.Impl α β) →
                        (size : ℕ) →
                          (k_1 : α) →
                            (v_1 : β k_1) →
                              (l_1 r_1 : Std.DTreeMap.Internal.Impl α β) →
                                rr = Std.DTreeMap.Internal.Impl.inner size k_1 v_1 l_1 r_1 →
                                  motive
                                    (Std.DTreeMap.Internal.Impl.inner rs rk rv
                                      (Std.DTreeMap.Internal.Impl.inner rls k v l r)
                                      (Std.DTreeMap.Internal.Impl.inner size k_1 v_1 l_1 r_1))),
  (match Std.DTreeMap.Internal.Impl.leaf with
    | Std.DTreeMap.Internal.Impl.leaf => h_1 ()
    | Std.DTreeMap.Internal.Impl.inner size k v Std.DTreeMap.Internal.Impl.leaf Std.DTreeMap.Internal.Impl.leaf =>
      h_2 size k v
    |
    Std.DTreeMap.Internal.Impl.inner size rk rv Std.DTreeMap.Internal.Impl.leaf
        rr@h:(Std.DTreeMap.Internal.Impl.inner size_1 k v l r) =>
      h_3 size rk rv rr size_1 k v l r h
    |
    Std.DTreeMap.Internal.Impl.inner size rk rv (Std.DTreeMap.Internal.Impl.inner size_1 rlk rlv l r)
        Std.DTreeMap.Internal.Impl.leaf =>
      h_4 size rk rv size_1 rlk rlv l r
    |
    Std.DTreeMap.Internal.Impl.inner rs rk rv (rl@h:(Std.DTreeMap.Internal.Impl.inner rls k v l r))
        rr@h_6:(Std.DTreeMap.Internal.Impl.inner size k_1 v_1 l_1 r_1) =>
      h_5 rs rk rv rl rls k v l r h rr size k_1 v_1 l_1 r_1 h_6) =
    h_1 ()