src/Pure/morphism.ML
changeset 28074 90adbbf03187
parent 24031 e94e541346d7
child 28965 1de908189869
equal deleted inserted replaced
28073:5e9f00f4f209 28074:90adbbf03187
    15 end
    15 end
    16 
    16 
    17 signature MORPHISM =
    17 signature MORPHISM =
    18 sig
    18 sig
    19   include BASIC_MORPHISM
    19   include BASIC_MORPHISM
    20   val var: morphism -> string * mixfix -> string * mixfix
    20   val var: morphism -> Name.binding * mixfix -> Name.binding * mixfix
    21   val name: morphism -> string -> string
    21   val name: morphism -> Name.binding -> Name.binding
    22   val typ: morphism -> typ -> typ
    22   val typ: morphism -> typ -> typ
    23   val term: morphism -> term -> term
    23   val term: morphism -> term -> term
    24   val fact: morphism -> thm list -> thm list
    24   val fact: morphism -> thm list -> thm list
    25   val thm: morphism -> thm -> thm
    25   val thm: morphism -> thm -> thm
    26   val cterm: morphism -> cterm -> cterm
    26   val cterm: morphism -> cterm -> cterm
    27   val morphism:
    27   val morphism:
    28    {name: string -> string,
    28    {name: Name.binding -> Name.binding,
    29     var: string * mixfix -> string * mixfix,
    29     var: Name.binding * mixfix -> Name.binding * mixfix,
    30     typ: typ -> typ,
    30     typ: typ -> typ,
    31     term: term -> term,
    31     term: term -> term,
    32     fact: thm list -> thm list} -> morphism
    32     fact: thm list -> thm list} -> morphism
    33   val name_morphism: (string -> string) -> morphism
    33   val name_morphism: (Name.binding -> Name.binding) -> morphism
    34   val var_morphism: (string * mixfix -> string * mixfix) -> morphism
    34   val var_morphism: (Name.binding * mixfix -> Name.binding * mixfix) -> morphism
    35   val typ_morphism: (typ -> typ) -> morphism
    35   val typ_morphism: (typ -> typ) -> morphism
    36   val term_morphism: (term -> term) -> morphism
    36   val term_morphism: (term -> term) -> morphism
    37   val fact_morphism: (thm list -> thm list) -> morphism
    37   val fact_morphism: (thm list -> thm list) -> morphism
    38   val thm_morphism: (thm -> thm) -> morphism
    38   val thm_morphism: (thm -> thm) -> morphism
    39   val identity: morphism
    39   val identity: morphism
    44 
    44 
    45 structure Morphism: MORPHISM =
    45 structure Morphism: MORPHISM =
    46 struct
    46 struct
    47 
    47 
    48 datatype morphism = Morphism of
    48 datatype morphism = Morphism of
    49  {name: string -> string,
    49  {name: Name.binding -> Name.binding,
    50   var: string * mixfix -> string * mixfix,
    50   var: Name.binding * mixfix -> Name.binding * mixfix,
    51   typ: typ -> typ,
    51   typ: typ -> typ,
    52   term: term -> term,
    52   term: term -> term,
    53   fact: thm list -> thm list};
    53   fact: thm list -> thm list};
    54 
    54 
    55 type declaration = morphism -> Context.generic -> Context.generic;
    55 type declaration = morphism -> Context.generic -> Context.generic;