Metamath Proof Explorer


Theorem nfrals

Description: Bound-variable hypothesis builder for "all some" restricted to a class. (Contributed by David A. Wheeler, 12-Jul-2026)

Ref Expression
Hypotheses nfrals.1 𝑥 𝐴
nfrals.2 𝑥 𝜑
nfrals.3 𝑥 𝜓
Assertion nfrals 𝑥 ∀∃ 𝑦𝐴 ( 𝜑𝜓 )

Proof

Step Hyp Ref Expression
1 nfrals.1 𝑥 𝐴
2 nfrals.2 𝑥 𝜑
3 nfrals.3 𝑥 𝜓
4 df-rals ( ∀∃ 𝑦𝐴 ( 𝜑𝜓 ) ↔ ( ∀ 𝑦𝐴 ( 𝜑𝜓 ) ∧ ∃ 𝑦𝐴 𝜑 ) )
5 2 3 nfim 𝑥 ( 𝜑𝜓 )
6 1 5 nfralw 𝑥𝑦𝐴 ( 𝜑𝜓 )
7 1 2 nfrexw 𝑥𝑦𝐴 𝜑
8 6 7 nfan 𝑥 ( ∀ 𝑦𝐴 ( 𝜑𝜓 ) ∧ ∃ 𝑦𝐴 𝜑 )
9 4 8 nfxfr 𝑥 ∀∃ 𝑦𝐴 ( 𝜑𝜓 )