package coq

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module PatternopsSource

Functions on patterns
Sourceval constr_pattern_eq : Pattern.constr_pattern -> Pattern.constr_pattern -> bool
Sourceval occur_meta_pattern : Pattern.constr_pattern -> bool
Sourceval noccurn_pattern : int -> Pattern.constr_pattern -> bool
Sourceexception BoundPattern

head_pattern_bound t extracts the head variable/constant of the type t or raises BoundPattern (even if a sort); it raises an anomaly if t is an abstraction

Sourceval head_pattern_bound : Pattern.constr_pattern -> Names.GlobRef.t

head_of_constr_reference c assumes r denotes a reference and returns its label; raises an anomaly otherwise

Sourceval head_of_constr_reference : Evd.evar_map -> EConstr.constr -> Names.GlobRef.t
  • deprecated use [EConstr.destRef]

pattern_of_constr c translates a term c with metavariables into a pattern; currently, no destructor (Cases, Fix, Cofix) and no existential variable are allowed in c

pattern_of_glob_constr l c translates a term c with metavariables into a pattern; variables bound in l are replaced by the pattern to which they are bound

OCaml

Innovation. Community. Security.