Skip to content

Instantly share code, notes, and snippets.

@yoshihiro503
Last active September 20, 2022 00:30
Show Gist options
  • Save yoshihiro503/c6b64c8cf3f32a5a66601a0e9998b9e0 to your computer and use it in GitHub Desktop.
Save yoshihiro503/c6b64c8cf3f32a5a66601a0e9998b9e0 to your computer and use it in GitHub Desktop.
From mathcomp Require Import all_ssreflect.
Lemma rensyu : forall i x y,
i != 0 -> (x - y) = 0 -> x.+1 - y <= i.
Proof.
move=> i x y i0 /eqP xy.
rewrite -addn1.
rewrite leq_subLR.
apply: leq_add.
by [].
by case: i i0.
Qed.
@yoshihiro503
Copy link
Author

ありがとうございます。i=0の場合は先に考えた方が短くなるんですね。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment