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

Theorem nanass 1499
Description: A characterization of when an expression involving alternative denials associates. Remark: alternative denial is commutative, see nancom 1485. (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 223 . . . 4 ((𝜑𝜒) → (𝜒𝜑))
2 nanbi2 1491 . . . 4 ((𝜑𝜒) → ((𝜓𝜑) ↔ (𝜓𝜒)))
31, 2nanbi12d 1498 . . 3 ((𝜑𝜒) → ((𝜒 ⊼ (𝜓𝜑)) ↔ (𝜑 ⊼ (𝜓𝜒))))
4 nannan 1486 . . . . . 6 ((𝜑 ⊼ (𝜓𝜒)) ↔ (𝜑 → (𝜓𝜒)))
5 simpr 487 . . . . . . 7 ((𝜓𝜒) → 𝜒)
65imim2i 16 . . . . . 6 ((𝜑 → (𝜓𝜒)) → (𝜑𝜒))
74, 6sylbi 219 . . . . 5 ((𝜑 ⊼ (𝜓𝜒)) → (𝜑𝜒))
8 nannan 1486 . . . . . 6 ((𝜒 ⊼ (𝜓𝜑)) ↔ (𝜒 → (𝜓𝜑)))
9 simpr 487 . . . . . . 7 ((𝜓𝜑) → 𝜑)
109imim2i 16 . . . . . 6 ((𝜒 → (𝜓𝜑)) → (𝜒𝜑))
118, 10sylbi 219 . . . . 5 ((𝜒 ⊼ (𝜓𝜑)) → (𝜒𝜑))
127, 11impbid21d 213 . . . 4 ((𝜒 ⊼ (𝜓𝜑)) → ((𝜑 ⊼ (𝜓𝜒)) → (𝜑𝜒)))
13 nanan 1482 . . . . . 6 ((𝜑 ∧ (𝜓𝜒)) ↔ ¬ (𝜑 ⊼ (𝜓𝜒)))
14 simpl 485 . . . . . 6 ((𝜑 ∧ (𝜓𝜒)) → 𝜑)
1513, 14sylbir 237 . . . . 5 (¬ (𝜑 ⊼ (𝜓𝜒)) → 𝜑)
16 nanan 1482 . . . . . 6 ((𝜒 ∧ (𝜓𝜑)) ↔ ¬ (𝜒 ⊼ (𝜓𝜑)))
17 simpl 485 . . . . . 6 ((𝜒 ∧ (𝜓𝜑)) → 𝜒)
1816, 17sylbir 237 . . . . 5 (¬ (𝜒 ⊼ (𝜓𝜑)) → 𝜒)
19 pm5.1im 265 . . . . 5 (𝜑 → (𝜒 → (𝜑𝜒)))
2015, 18, 19syl2imc 41 . . . 4 (¬ (𝜒 ⊼ (𝜓𝜑)) → (¬ (𝜑 ⊼ (𝜓𝜒)) → (𝜑𝜒)))
2112, 20bija 384 . . 3 (((𝜒 ⊼ (𝜓𝜑)) ↔ (𝜑 ⊼ (𝜓𝜒))) → (𝜑𝜒))
223, 21impbii 211 . 2 ((𝜑𝜒) ↔ ((𝜒 ⊼ (𝜓𝜑)) ↔ (𝜑 ⊼ (𝜓𝜒))))
23 nancom 1485 . . . . 5 ((𝜓𝜑) ↔ (𝜑𝜓))
2423nanbi2i 1494 . . . 4 ((𝜒 ⊼ (𝜓𝜑)) ↔ (𝜒 ⊼ (𝜑𝜓)))
25 nancom 1485 . . . 4 ((𝜒 ⊼ (𝜑𝜓)) ↔ ((𝜑𝜓) ⊼ 𝜒))
2624, 25bitri 277 . . 3 ((𝜒 ⊼ (𝜓𝜑)) ↔ ((𝜑𝜓) ⊼ 𝜒))
2726bibi1i 341 . 2 (((𝜒 ⊼ (𝜓𝜑)) ↔ (𝜑 ⊼ (𝜓𝜒))) ↔ (((𝜑𝜓) ⊼ 𝜒) ↔ (𝜑 ⊼ (𝜓𝜒))))
2822, 27bitri 277 1 ((𝜑𝜒) ↔ (((𝜑𝜓) ⊼ 𝜒) ↔ (𝜑 ⊼ (𝜓𝜒))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398  wnan 1480
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8
This theorem depends on definitions:  df-bi 209  df-an 399  df-nan 1481
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator