val type_of_binding (x: binding) : Tot typ
let type_of_binding (x : binding) : Tot typ =
  x.sort
val type_of_binding (x: binding) : Tot typ
let type_of_binding (x: binding) : Tot typ =
x.sort
FStar.Tactics.V2.Derived.fst.checked
prims.fst.checked FStar.VConfig.fsti.checked FStar.Tactics.Visit.fst.checked FStar.Tactics.V2.SyntaxHelpers.fst.checked FStar.Tactics.V2.SyntaxCoercions.fst.checked FStar.Tactics.V2.Builtins.fsti.checked FStar.Tactics.Util.fst.checked FStar.Tactics.Types.fsti.checked FStar.Tactics.Result.fsti.checked FStar.Tactics.NamedView.fsti.checked FStar.Tactics.Effect.fsti.checked FStar.Squash.fsti.checked FStar.Reflection.V2.Formula.fst.checked FStar.Reflection.V2.fst.checked FStar.Range.fsti.checked FStar.PropositionalExtensionality.fst.checked FStar.Pervasives.Native.fst.checked FStar.Pervasives.fsti.checked FStar.List.Tot.Base.fst.checked
FStar.Tactics.V2.Derived.fst
FStar.Tactics.NamedView.binding FStar.Reflection.V2.Data.__proj__Mkbinding__item__sort FStar.Reflection.Types.typ
(*
   Copyright 2008-2018 Microsoft Research

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*)
module FStar.Tactics.V2.Derived

open FStar.Reflection.V2
open FStar.Reflection.V2.Formula
open FStar.Tactics.Types
open FStar.Tactics.Effect
open FStar.Tactics.V2.Builtins
open FStar.Tactics.Result
open FStar.Tactics.Util
open FStar.Tactics.V2.SyntaxHelpers
open FStar.VConfig
open FStar.Tactics.NamedView
open FStar.Tactics.V2.SyntaxCoercions

module L = FStar.List.Tot.Base
module V = FStar.Tactics.Visit
private let (@) = L.op_At

let name_of_bv (bv : bv) : Tac string =
    unseal ((inspect_bv bv).ppname)

let bv_to_string (bv : bv) : Tac string =
    (* Could also print type...? *)
    name_of_bv bv

let name_of_binder (b : binder) : Tac string =
  unseal b.ppname

let binder_to_string (b : binder) : Tac string =
  // TODO: print aqual, attributes..? or no?
  name_of_binder b ^ "@@" ^ string_of_int b.uniq ^ "::(" ^ term_to_string b.sort ^ ")"

let binding_to_string (b : binding) : Tac string =
  unseal b.ppname

let type_of_var (x : namedv) : Tac typ =
  unseal ((inspect_namedv x).sort)
val type_of_binding (x: binding) : Tot typ
x: FStar.Tactics.NamedView.binding -> FStar.Reflection.Types.typ