keyword action · rule 701.57
Discover
Discover 4 (Exile cards from the top of your library until you exile a nonland card with mana value 4 or less. Cast it without paying its mana cost or put it into your hand. Put the rest on the bottom in a random order.)
Comprehensive Rules
701.57Discover
701.57a“Discover N” means “Exile cards from the top of your library until you exile a nonland card with mana value N or less. You may cast that card without paying its mana cost if the resulting spell’s mana value is less than or equal to N. If you don’t cast it, put that card into your hand. Put the remaining exiled cards on the bottom of your library in a random order.”
701.57bA player has “discovered” after the process described in 701.57a is complete, even if some or all of those actions were impossible.
701.57cIf the final card exiled during the process described in rule 701.57a has mana value N or less, it is the “discovered card,” regardless of whether it was cast or put into a player’s hand.