Skip to content

Commit

Permalink
Merge pull request #96 from coq-community/RingCollision
Browse files Browse the repository at this point in the history
Avoid ring collision on Z
  • Loading branch information
VincentSe authored May 27, 2020
2 parents 6f41984 + 73c7ae6 commit 9db8c9e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions liouville/QX_ZX.v
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ Let QX := cpoly_cring Q_as_CRing.
Add Ring q_r : (r_rt (Ring:=CRing_is_Ring Q_as_CRing)).
Add Ring qx_r : (r_rt (Ring:=CRing_is_Ring (cpoly_cring Q_as_CRing))).
Let ZX := cpoly_cring Z_as_CRing.
Add Ring z_r : (r_rt (Ring:=CRing_is_Ring Z_as_CRing)).
Add Ring zx_r : (r_rt (Ring:=CRing_is_Ring (cpoly_cring Z_as_CRing))).

Let ZX_deg := RX_deg Z_as_CRing Z_dec.
Expand Down Expand Up @@ -311,9 +310,7 @@ Proof.
Qed.
Lemma injZ_pres_mult : fun_pres_mult _ _ injZ_fun.
Proof.
intros x y.
simpl; unfold inject_Z, Qeq; simpl.
ring.
intros x y. reflexivity.
Qed.
Definition injZ_rh := Build_RingHom _ _ _ injZ_pres_plus injZ_pres_mult injZ_pres_unit.
Definition zx2qx := cpoly_map injZ_rh.
Expand Down

0 comments on commit 9db8c9e

Please sign in to comment.