Metamath Proof Explorer


Theorem sbi1

Description: Distribute substitution over implication. (Contributed by NM, 14-May-1993) Remove dependencies on axioms. (Revised by Steven Nguyen, 24-Jul-2023)

Ref Expression
Assertion sbi1 ( [ 𝑦 / 𝑥 ] ( 𝜑𝜓 ) → ( [ 𝑦 / 𝑥 ] 𝜑 → [ 𝑦 / 𝑥 ] 𝜓 ) )

Proof

Step Hyp Ref Expression
1 df-sb ( [ 𝑦 / 𝑥 ] ( 𝜑𝜓 ) ↔ ∀ 𝑧 ( 𝑧 = 𝑦 → ∀ 𝑥 ( 𝑥 = 𝑧 → ( 𝜑𝜓 ) ) ) )
2 ax-2 ( ( 𝑥 = 𝑧 → ( 𝜑𝜓 ) ) → ( ( 𝑥 = 𝑧𝜑 ) → ( 𝑥 = 𝑧𝜓 ) ) )
3 2 al2imi ( ∀ 𝑥 ( 𝑥 = 𝑧 → ( 𝜑𝜓 ) ) → ( ∀ 𝑥 ( 𝑥 = 𝑧𝜑 ) → ∀ 𝑥 ( 𝑥 = 𝑧𝜓 ) ) )
4 3 imim3i ( ( 𝑧 = 𝑦 → ∀ 𝑥 ( 𝑥 = 𝑧 → ( 𝜑𝜓 ) ) ) → ( ( 𝑧 = 𝑦 → ∀ 𝑥 ( 𝑥 = 𝑧𝜑 ) ) → ( 𝑧 = 𝑦 → ∀ 𝑥 ( 𝑥 = 𝑧𝜓 ) ) ) )
5 4 al2imi ( ∀ 𝑧 ( 𝑧 = 𝑦 → ∀ 𝑥 ( 𝑥 = 𝑧 → ( 𝜑𝜓 ) ) ) → ( ∀ 𝑧 ( 𝑧 = 𝑦 → ∀ 𝑥 ( 𝑥 = 𝑧𝜑 ) ) → ∀ 𝑧 ( 𝑧 = 𝑦 → ∀ 𝑥 ( 𝑥 = 𝑧𝜓 ) ) ) )
6 df-sb ( [ 𝑦 / 𝑥 ] 𝜑 ↔ ∀ 𝑧 ( 𝑧 = 𝑦 → ∀ 𝑥 ( 𝑥 = 𝑧𝜑 ) ) )
7 df-sb ( [ 𝑦 / 𝑥 ] 𝜓 ↔ ∀ 𝑧 ( 𝑧 = 𝑦 → ∀ 𝑥 ( 𝑥 = 𝑧𝜓 ) ) )
8 5 6 7 3imtr4g ( ∀ 𝑧 ( 𝑧 = 𝑦 → ∀ 𝑥 ( 𝑥 = 𝑧 → ( 𝜑𝜓 ) ) ) → ( [ 𝑦 / 𝑥 ] 𝜑 → [ 𝑦 / 𝑥 ] 𝜓 ) )
9 1 8 sylbi ( [ 𝑦 / 𝑥 ] ( 𝜑𝜓 ) → ( [ 𝑦 / 𝑥 ] 𝜑 → [ 𝑦 / 𝑥 ] 𝜓 ) )