Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to https://github.com/math-comp/math-comp/pull/1031 #80

Merged
merged 1 commit into from
Jun 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions refinements/rational.v
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ rewrite refinesE /Rrat /fun_hrel /Qint_to_rat /= /cast /cast_pos_int /=.
rewrite /pos_to_int /mul_op /mul_pos /mul_int /add_op /add_int /=.
rewrite val_insubd muln_gt0 da_gt0 db_gt0 /=.
rewrite [x]RratE [y]RratE /= addf_div ?intr_eq0 -?lt0n //.
by rewrite ?(rmorphD, rmorphM) //= PoszM intrM !natz.
by rewrite ?(rmorphD, rmorphM)/= ?PoszM ?intrM !natz.
Qed.

Instance Rrat_opp : refines (Rrat ==> Rrat) -%R -%C.
Expand All @@ -177,7 +177,7 @@ apply refines_abstr2 => x [na [da da_gt0]] rx y [nb [db db_gt0]] ry.
rewrite refinesE /Rrat /fun_hrel /Qint_to_rat /= /mul_op /mul_int /mul_pos /=.
rewrite val_insubd muln_gt0 da_gt0 db_gt0 /=.
rewrite [x]RratE [y]RratE mulrACA -invfM ?(rmorphD, rmorphM) /=.
by rewrite PoszM rmorphM /=.
by rewrite ?PoszM ?rmorphM /=.
Qed.

Instance Rrat_expnat :
Expand Down