35 USC 25 - Declaration in lieu of oath

(a) The Director may by rule prescribe that any document to be filed in the Patent and Trademark Office and which is required by any law, rule, or other regulation to be under oath may be subscribed to by a written declaration in such form as the Director may prescribe, such declaration to be in lieu of the oath otherwise required.
(b) Whenever such written declaration is used, the document must warn the declarant that willful false statements and the like are punishable by fine or imprisonment, or both (18 U.S.C. 1001).