From Coq Require Import Bool. From Coq Require Import ZArith. From Coq Require Import Lia. Require Import Crypto.Util.ZUtil.Definitions. Require Import Crypto.Util.ZUtil.Notations. Require Import Crypto.Util.ZUtil.Land. Require Import Crypto.Util.ZUtil.Lor. Require Import Crypto.Util.ZUtil.Testbit. Require Import Crypto.Util.ZUtil.Div. Require Import Crypto.Util.ZUtil.LandLorShiftBounds. Require Import Crypto.Util.ZUtil.Zselect. Require Import Crypto.Util.ZUtil.Ones. Require Import Crypto.Util.ZUtil.OnesFrom. Require Import Crypto.Util.ZUtil.Pow. Require Import Crypto.Util.ZUtil.TruncatingShiftl. Require Import Crypto.Util.ZUtil.SignBit. Require Import Crypto.Util.ZUtil.TwosComplement. Require Import Crypto.Util.Decidable. Require Import Crypto.Util.LetIn. Require Import Crypto.Util.ListUtil. Require Import Crypto.Util.ZUtil.Tactics.SolveRange. Require Import Crypto.Util.ZUtil.Tactics.SolveTestbit. Local Open Scope Z_scope. Module Z. Lemma arithmetic_shiftr1_testbit_spec_full m a i (Hm : 0 < m) (Ha : 0 <= a < 2 ^ m) : Z.testbit (Z.arithmetic_shiftr1 m a) i = if (i