General characteristics
① avoir à is literally the structure “to have something that must be done,” and it corresponds exactly to English have to (have + to), down to the morpheme level.
② devoir expresses strong obligation (must) in the indicative (dois/doit), and softened advice (should) in the conditional (devrais/devrait) — a single verb covers both must and should simply through a change of mood.
③ In the negative, ne pas devoir (must not = prohibition) and ne pas avoir à (do not have to = lack of necessity) are clearly distinguished — exactly the same structure as the asymmetry between English must not and don't have to.
Negative and interrogative sentences
Negative sentence: ne + devoir/avoir à (conjugated form) + pas + infinitive.
Interrogative sentence: inversion of the auxiliary verb (devoir/avoir) and the subject, or Est-ce que + declarative sentence.
135. Je dois partir bientôt.
136. Ce doit être elle maintenant.
137. Vous ne devez pas boire d'alcool au cinéma.
138. Nous devrions être là avant midi.
139. Vous devriez essayer d'économiser l'eau.
140. Vous ne devriez pas sortir pendant la chaleur de la journée.
141. Les élèves de cette école ont à porter un uniforme.
142. Elle a à finir son travail avant ce samedi.
143. Est-ce qu'il a à aller à l'église aujourd'hui ?
144. Je n'ai pas à me lever tôt les jours fériés.
145. Les élèves ne doivent pas tricher pendant un examen.
146. Nous ne devons pas télécharger de films illégalement.
147. Vous n'avez pas à vous dépêcher pour aller au restaurant.
148. Vous n'avez pas à vous inquiéter à ce sujet.
Note: No. 135 devoir = obligation, No. 138 conditional devrions = should, No. 141 avoir à = have to
Note: Nos. 137, 145, and 146 ne pas devoir = prohibition, Nos. 144, 147, and 148 ne pas avoir à = lack of necessity
POINT ① avoir à (have + direction) corresponds exactly to English have to down to the morpheme level. ② devoir alone covers both forces, shifting between the indicative (must) and the conditional (should). ③ In the negative, ne pas devoir (prohibition) and ne pas avoir à (lack of necessity) show exactly the same asymmetry as English must not/don't have to.