MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  nanass Structured version   Visualization version   GIF version

Theorem nanass 1539
Description: A characterization of when an expression involving alternative denials associates. Remark: alternative denial is commutative, see nancom 1525. (Contributed by Richard Penner, 29-Feb-2020.) (Proof shortened by Wolf Lammen, 23-Oct-2022.)
Assertion
Ref Expression
nanass ((𝜑 ↔ 𝜒) ↔ (((𝜑 ⊼ 𝜓) ⊼ 𝜒) ↔ (𝜑 ⊼ (𝜓 ⊼ 𝜒))))

Proof of Theorem nanass
StepHypRef Expression
1 bicom1 224 . . . 4 ((𝜑 ↔ 𝜒) → (𝜒 ↔ 𝜑))
2 nanbi2 1531 . . . 4 ((𝜑 ↔ 𝜒) → ((𝜓 ⊼ 𝜑) ↔ (𝜓 ⊼ 𝜒)))
31, 2nanbi12d 1538 . . 3 ((𝜑 ↔ 𝜒) → ((𝜒 ⊼ (𝜓 ⊼ 𝜑)) ↔ (𝜑 ⊼ (𝜓 ⊼ 𝜒))))
4 nannan 1526 . . . . . 6 ((𝜑 ⊼ (𝜓 ⊼ 𝜒)) ↔ (𝜑 → (𝜓 ∧ 𝜒)))
5 simpr 490 . . . . . . 7 ((𝜓 ∧ 𝜒) → 𝜒)
65imim2i 17 . . . . . 6 ((𝜑 → (𝜓 ∧ 𝜒)) → (𝜑 → 𝜒))
74, 6sylbi 220 . . . . 5 ((𝜑 ⊼ (𝜓 ⊼ 𝜒)) → (𝜑 → 𝜒))
8 nannan 1526 . . . . . 6 ((𝜒 ⊼ (𝜓 ⊼ 𝜑)) ↔ (𝜒 → (𝜓 ∧ 𝜑)))
9 simpr 490 . . . . . . 7 ((𝜓 ∧ 𝜑) → 𝜑)
109imim2i 17 . . . . . 6 ((𝜒 → (𝜓 ∧ 𝜑)) → (𝜒 → 𝜑))
118, 10sylbi 220 . . . . 5 ((𝜒 ⊼ (𝜓 ⊼ 𝜑)) → (𝜒 → 𝜑))
127, 11impbid21d 214 . . . 4 ((𝜒 ⊼ (𝜓 ⊼ 𝜑)) → ((𝜑 ⊼ (𝜓 ⊼ 𝜒)) → (𝜑 ↔ 𝜒)))
13 nanan 1522 . . . . . 6 ((𝜑 ∧ (𝜓 ⊼ 𝜒)) ↔ ¬ (𝜑 ⊼ (𝜓 ⊼ 𝜒)))
14 simpl 488 . . . . . 6 ((𝜑 ∧ (𝜓 ⊼ 𝜒)) → 𝜑)
1513, 14sylbir 238 . . . . 5 (¬ (𝜑 ⊼ (𝜓 ⊼ 𝜒)) → 𝜑)
16 nanan 1522 . . . . . 6 ((𝜒 ∧ (𝜓 ⊼ 𝜑)) ↔ ¬ (𝜒 ⊼ (𝜓 ⊼ 𝜑)))
17 simpl 488 . . . . . 6 ((𝜒 ∧ (𝜓 ⊼ 𝜑)) → 𝜒)
1816, 17sylbir 238 . . . . 5 (¬ (𝜒 ⊼ (𝜓 ⊼ 𝜑)) → 𝜒)
19 pm5.1im 266 . . . . 5 (𝜑 → (𝜒 → (𝜑 ↔ 𝜒)))
2015, 18, 19syl2imc 42 . . . 4 (¬ (𝜒 ⊼ (𝜓 ⊼ 𝜑)) → (¬ (𝜑 ⊼ (𝜓 ⊼ 𝜒)) → (𝜑 ↔ 𝜒)))
2112, 20bija 383 . . 3 (((𝜒 ⊼ (𝜓 ⊼ 𝜑)) ↔ (𝜑 ⊼ (𝜓 ⊼ 𝜒))) → (𝜑 ↔ 𝜒))
223, 21impbii 212 . 2 ((𝜑 ↔ 𝜒) ↔ ((𝜒 ⊼ (𝜓 ⊼ 𝜑)) ↔ (𝜑 ⊼ (𝜓 ⊼ 𝜒))))
23 nancom 1525 . . . . 5 ((𝜓 ⊼ 𝜑) ↔ (𝜑 ⊼ 𝜓))
2423nanbi2i 1534 . . . 4 ((𝜒 ⊼ (𝜓 ⊼ 𝜑)) ↔ (𝜒 ⊼ (𝜑 ⊼ 𝜓)))
25 nancom 1525 . . . 4 ((𝜒 ⊼ (𝜑 ⊼ 𝜓)) ↔ ((𝜑 ⊼ 𝜓) ⊼ 𝜒))
2624, 25bitri 278 . . 3 ((𝜒 ⊼ (𝜓 ⊼ 𝜑)) ↔ ((𝜑 ⊼ 𝜓) ⊼ 𝜒))
2726bibi1i 341 . 2 (((𝜒 ⊼ (𝜓 ⊼ 𝜑)) ↔ (𝜑 ⊼ (𝜓 ⊼ 𝜒))) ↔ (((𝜑 ⊼ 𝜓) ⊼ 𝜒) ↔ (𝜑 ⊼ (𝜓 ⊼ 𝜒))))
2822, 27bitri 278 1 ((𝜑 ↔ 𝜒) ↔ (((𝜑 ⊼ 𝜓) ⊼ 𝜒) ↔ (𝜑 ⊼ (𝜓 ⊼ 𝜒))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   ⊼ wnan 1520
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8
This proof depends on definitions:  df-bi 210  df-an 402  df-nan 1521
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator