#[local] Instance Op_max_length : ZifyClasses.CstOp max_length :=
  { TCst := 16777211%Z ; TCstInj := eq_refl }.#[local] Ltac case_if :=
  lazymatch goal with
  | |- context C [if ?b then _ else _] => destruct b eqn:?
  | H : context C [if ?b then _ else _] |- _ => destruct b eqn:?
  end.

Lemma get_spec_in_bounds (s : string) (i : int) : to_Z i < to_Z (length s) -> char63_valid (get s i) /\ List.nth_error (to_list s) (to_nat i) = Some (get s i).