Skip to content

Commit 6e97e30

Browse files
authored
Merge pull request #93 from math-comp/fix-mmorphism
Fix the definition of `mmorphism` following math-comp/math-comp#1296
2 parents bd59c94 + 631c0a4 commit 6e97e30

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/monalg.v

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ Module Exports. HB.reexport. End Exports.
115115
Export Exports.
116116

117117
(* -------------------------------------------------------------------- *)
118-
Definition mmorphism (M : monomType) (S : ringType) (f : M -> S) :=
119-
{morph f : x y / (x * y)%M >-> (x * y)%R} * (f 1%M = 1) : Prop.
118+
Definition mmorphism (M : monomType) (S : ringType) (f : M -> S) : Prop :=
119+
(f 1%M = 1) * {morph f : x y / (x * y)%M >-> (x * y)%R}.
120120

121121
HB.mixin Record isMultiplicative
122122
(M : monomType) (S : ringType) (apply : M -> S) := {
@@ -143,10 +143,10 @@ Section MMorphismTheory.
143143
Variables (M : monomType) (S : ringType) (f : {mmorphism M -> S}).
144144

145145
Lemma mmorph1 : f 1%M = 1.
146-
Proof. exact: mmorphism_subproof.2. Qed.
146+
Proof. exact: mmorphism_subproof.1. Qed.
147147

148148
Lemma mmorphM : {morph f : x y / (x * y)%M >-> (x * y)%R}.
149-
Proof. exact: mmorphism_subproof.1. Qed.
149+
Proof. exact: mmorphism_subproof.2. Qed.
150150
End MMorphismTheory.
151151

152152
(* -------------------------------------------------------------------- *)

0 commit comments

Comments
 (0)