Metamath Proof Explorer


Theorem mulmoddvds

Description: If an integer is divisible by a positive integer, the product of this integer with another integer modulo the positive integer is 0. (Contributed by Alexander van der Vekens, 30-Aug-2018) (Proof shortened by AV, 18-Mar-2022)

Ref Expression
Assertion mulmoddvds ( ( ๐‘ โˆˆ โ„• โˆง ๐ด โˆˆ โ„ค โˆง ๐ต โˆˆ โ„ค ) โ†’ ( ๐‘ โˆฅ ๐ด โ†’ ( ( ๐ด ยท ๐ต ) mod ๐‘ ) = 0 ) )

Proof

Step Hyp Ref Expression
1 simp1 โŠข ( ( ๐‘ โˆˆ โ„• โˆง ๐ด โˆˆ โ„ค โˆง ๐ต โˆˆ โ„ค ) โ†’ ๐‘ โˆˆ โ„• )
2 nnz โŠข ( ๐‘ โˆˆ โ„• โ†’ ๐‘ โˆˆ โ„ค )
3 dvdsmultr1 โŠข ( ( ๐‘ โˆˆ โ„ค โˆง ๐ด โˆˆ โ„ค โˆง ๐ต โˆˆ โ„ค ) โ†’ ( ๐‘ โˆฅ ๐ด โ†’ ๐‘ โˆฅ ( ๐ด ยท ๐ต ) ) )
4 2 3 syl3an1 โŠข ( ( ๐‘ โˆˆ โ„• โˆง ๐ด โˆˆ โ„ค โˆง ๐ต โˆˆ โ„ค ) โ†’ ( ๐‘ โˆฅ ๐ด โ†’ ๐‘ โˆฅ ( ๐ด ยท ๐ต ) ) )
5 dvdsmod0 โŠข ( ( ๐‘ โˆˆ โ„• โˆง ๐‘ โˆฅ ( ๐ด ยท ๐ต ) ) โ†’ ( ( ๐ด ยท ๐ต ) mod ๐‘ ) = 0 )
6 1 4 5 syl6an โŠข ( ( ๐‘ โˆˆ โ„• โˆง ๐ด โˆˆ โ„ค โˆง ๐ต โˆˆ โ„ค ) โ†’ ( ๐‘ โˆฅ ๐ด โ†’ ( ( ๐ด ยท ๐ต ) mod ๐‘ ) = 0 ) )