Skip to content

Instantly share code, notes, and snippets.

@vlj
Created February 15, 2020 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vlj/357444d4c96bee74dcc42c5d2a26d3c9 to your computer and use it in GitHub Desktop.
Save vlj/357444d4c96bee74dcc42c5d2a26d3c9 to your computer and use it in GitHub Desktop.
From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice path.
From mathcomp Require Import div fintype tuple finfun bigop finset fingroup perm.
From mathcomp Require Import div prime binomial ssralg finalg zmodp countalg ssrnum falgebra.
From mathcomp Require Import ssrint matrix algC.
Require Omega.
Set Implicit Arguments.
Unset Strict Implicit.
Unset Printing Implicit Defensive.
Local Open Scope ring_scope.
Lemma tmp:
forall p q x y, `|x - p%:Z - x| <= (max p q) /\ `|y - q%:Z - y| <= (max p q).
Proof.
move => p q x y.
split.
eapply Num.Theory.ler_trans.
Unset Printing Notations.
have: x - p%:Z - x = -p%:Z.
omega.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment