Metamath Proof Explorer


Theorem atmod4i2

Description: Version of modular law that holds in a Hilbert lattice, when one element is an atom. (Contributed by NM, 4-Jun-2012) (Revised by Mario Carneiro, 10-Mar-2013)

Ref Expression
Hypotheses atmod.b 𝐵 = ( Base ‘ 𝐾 )
atmod.l = ( le ‘ 𝐾 )
atmod.j = ( join ‘ 𝐾 )
atmod.m = ( meet ‘ 𝐾 )
atmod.a 𝐴 = ( Atoms ‘ 𝐾 )
Assertion atmod4i2 ( ( 𝐾 ∈ HL ∧ ( 𝑃𝐴𝑋𝐵𝑌𝐵 ) ∧ 𝑋 𝑌 ) → ( ( 𝑃 𝑌 ) 𝑋 ) = ( ( 𝑃 𝑋 ) 𝑌 ) )

Proof

Step Hyp Ref Expression
1 atmod.b 𝐵 = ( Base ‘ 𝐾 )
2 atmod.l = ( le ‘ 𝐾 )
3 atmod.j = ( join ‘ 𝐾 )
4 atmod.m = ( meet ‘ 𝐾 )
5 atmod.a 𝐴 = ( Atoms ‘ 𝐾 )
6 hllat ( 𝐾 ∈ HL → 𝐾 ∈ Lat )
7 6 3ad2ant1 ( ( 𝐾 ∈ HL ∧ ( 𝑃𝐴𝑋𝐵𝑌𝐵 ) ∧ 𝑋 𝑌 ) → 𝐾 ∈ Lat )
8 simp21 ( ( 𝐾 ∈ HL ∧ ( 𝑃𝐴𝑋𝐵𝑌𝐵 ) ∧ 𝑋 𝑌 ) → 𝑃𝐴 )
9 1 5 atbase ( 𝑃𝐴𝑃𝐵 )
10 8 9 syl ( ( 𝐾 ∈ HL ∧ ( 𝑃𝐴𝑋𝐵𝑌𝐵 ) ∧ 𝑋 𝑌 ) → 𝑃𝐵 )
11 simp23 ( ( 𝐾 ∈ HL ∧ ( 𝑃𝐴𝑋𝐵𝑌𝐵 ) ∧ 𝑋 𝑌 ) → 𝑌𝐵 )
12 1 4 latmcl ( ( 𝐾 ∈ Lat ∧ 𝑃𝐵𝑌𝐵 ) → ( 𝑃 𝑌 ) ∈ 𝐵 )
13 7 10 11 12 syl3anc ( ( 𝐾 ∈ HL ∧ ( 𝑃𝐴𝑋𝐵𝑌𝐵 ) ∧ 𝑋 𝑌 ) → ( 𝑃 𝑌 ) ∈ 𝐵 )
14 simp22 ( ( 𝐾 ∈ HL ∧ ( 𝑃𝐴𝑋𝐵𝑌𝐵 ) ∧ 𝑋 𝑌 ) → 𝑋𝐵 )
15 1 3 latjcom ( ( 𝐾 ∈ Lat ∧ ( 𝑃 𝑌 ) ∈ 𝐵𝑋𝐵 ) → ( ( 𝑃 𝑌 ) 𝑋 ) = ( 𝑋 ( 𝑃 𝑌 ) ) )
16 7 13 14 15 syl3anc ( ( 𝐾 ∈ HL ∧ ( 𝑃𝐴𝑋𝐵𝑌𝐵 ) ∧ 𝑋 𝑌 ) → ( ( 𝑃 𝑌 ) 𝑋 ) = ( 𝑋 ( 𝑃 𝑌 ) ) )
17 1 2 3 4 5 atmod1i2 ( ( 𝐾 ∈ HL ∧ ( 𝑃𝐴𝑋𝐵𝑌𝐵 ) ∧ 𝑋 𝑌 ) → ( 𝑋 ( 𝑃 𝑌 ) ) = ( ( 𝑋 𝑃 ) 𝑌 ) )
18 1 3 latjcom ( ( 𝐾 ∈ Lat ∧ 𝑋𝐵𝑃𝐵 ) → ( 𝑋 𝑃 ) = ( 𝑃 𝑋 ) )
19 7 14 10 18 syl3anc ( ( 𝐾 ∈ HL ∧ ( 𝑃𝐴𝑋𝐵𝑌𝐵 ) ∧ 𝑋 𝑌 ) → ( 𝑋 𝑃 ) = ( 𝑃 𝑋 ) )
20 19 oveq1d ( ( 𝐾 ∈ HL ∧ ( 𝑃𝐴𝑋𝐵𝑌𝐵 ) ∧ 𝑋 𝑌 ) → ( ( 𝑋 𝑃 ) 𝑌 ) = ( ( 𝑃 𝑋 ) 𝑌 ) )
21 16 17 20 3eqtrd ( ( 𝐾 ∈ HL ∧ ( 𝑃𝐴𝑋𝐵𝑌𝐵 ) ∧ 𝑋 𝑌 ) → ( ( 𝑃 𝑌 ) 𝑋 ) = ( ( 𝑃 𝑋 ) 𝑌 ) )