If you choose zero target cards or the cards are illegal targets as Witness the Future resolves, the target player will still shuffle their library.

Artwork
Loading artwork…
Witness the Future
Innistrad: Double Feature · #357 · EN
Nonfoil—Foil—
Card rules
Target player shuffles up to four target cards from their graveyard into their library. You look at the top four cards of your library, then put one of those cards into your hand and the rest on the bottom of your library in a random order.
Uncommon · Illustrated by Anato Finnstark
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If the player is an illegal target as Witness the Future resolves, the library won't be shuffled and any targeted cards remain in the graveyard.