Metamath Proof Explorer


Theorem mgmidpfod

Description: The operation of a magma with identity as a function is an onto function. (Contributed by FL, 2-Nov-2009) (Revised by Mario Carneiro, 22-Dec-2013) (Revised by AV, 16-Aug-2026)

Ref Expression
Hypotheses mgmidpfod.b B = Base G
mgmidpfod.p + ˙ = + G
mgmidpfod.g φ G Mgm
mgmidpfod.e φ e B x B e + ˙ x = x x + ˙ e = x
mgmidpfod.f ˙ = + 𝑓 G
Assertion mgmidpfod φ ˙ : B × B onto B

Proof

Step Hyp Ref Expression
1 mgmidpfod.b B = Base G
2 mgmidpfod.p + ˙ = + G
3 mgmidpfod.g φ G Mgm
4 mgmidpfod.e φ e B x B e + ˙ x = x x + ˙ e = x
5 mgmidpfod.f ˙ = + 𝑓 G
6 1 5 mgmplusf G Mgm ˙ : B × B B
7 3 6 syl φ ˙ : B × B B
8 1 2 5 plusfval e B x B e ˙ x = e + ˙ x
9 8 adantll φ e B x B e ˙ x = e + ˙ x
10 9 eqeq1d φ e B x B e ˙ x = x e + ˙ x = x
11 10 anbi1d φ e B x B e ˙ x = x x + ˙ e = x e + ˙ x = x x + ˙ e = x
12 11 ralbidva φ e B x B e ˙ x = x x + ˙ e = x x B e + ˙ x = x x + ˙ e = x
13 12 rexbidva φ e B x B e ˙ x = x x + ˙ e = x e B x B e + ˙ x = x x + ˙ e = x
14 4 13 mpbird φ e B x B e ˙ x = x x + ˙ e = x
15 simpl e ˙ x = x x + ˙ e = x e ˙ x = x
16 15 ralimi x B e ˙ x = x x + ˙ e = x x B e ˙ x = x
17 oveq2 x = y e ˙ x = e ˙ y
18 id x = y x = y
19 17 18 eqeq12d x = y e ˙ x = x e ˙ y = y
20 19 rspcv y B x B e ˙ x = x e ˙ y = y
21 eqcom y = e ˙ x e ˙ x = y
22 17 eqeq1d x = y e ˙ x = y e ˙ y = y
23 21 22 bitrid x = y y = e ˙ x e ˙ y = y
24 23 rspcev y B e ˙ y = y x B y = e ˙ x
25 24 ex y B e ˙ y = y x B y = e ˙ x
26 20 25 syld y B x B e ˙ x = x x B y = e ˙ x
27 16 26 syl5 y B x B e ˙ x = x x + ˙ e = x x B y = e ˙ x
28 27 reximdv y B e B x B e ˙ x = x x + ˙ e = x e B x B y = e ˙ x
29 28 impcom e B x B e ˙ x = x x + ˙ e = x y B e B x B y = e ˙ x
30 29 ralrimiva e B x B e ˙ x = x x + ˙ e = x y B e B x B y = e ˙ x
31 14 30 syl φ y B e B x B y = e ˙ x
32 foov ˙ : B × B onto B ˙ : B × B B y B e B x B y = e ˙ x
33 7 31 32 sylanbrc φ ˙ : B × B onto B