That is sound logic.
I saw the same kind of logic in a play called much ado about nothing. One character proved he was not a knave, and the people to whom he was speaking were not fools, because
he told them to swear by their beards that he was a knave, and by his knavery he swore they were...