author | wenzelm |
Sat, 20 May 2023 21:48:41 +0200 | |
changeset 78089 | 52d071212a7a |
parent 78085 | dd7bb7f99ad5 |
child 78112 | 10487f6571bc |
permissions | -rw-r--r-- |
21476 | 1 |
(* Title: Pure/morphism.ML |
2 |
Author: Makarius |
|
3 |
||
4 |
Abstract morphisms on formal entities. |
|
5 |
*) |
|
6 |
||
7 |
infix 1 $> |
|
8 |
||
9 |
signature BASIC_MORPHISM = |
|
10 |
sig |
|
11 |
type morphism |
|
12 |
val $> : morphism * morphism -> morphism |
|
13 |
end |
|
14 |
||
15 |
signature MORPHISM = |
|
16 |
sig |
|
17 |
include BASIC_MORPHISM |
|
54740 | 18 |
exception MORPHISM of string * exn |
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
19 |
val the_theory: theory option -> theory |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
20 |
val set_context: theory -> morphism -> morphism |
78063 | 21 |
val set_context': Proof.context -> morphism -> morphism |
22 |
val set_context'': Context.generic -> morphism -> morphism |
|
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
23 |
val reset_context: morphism -> morphism |
67650 | 24 |
val morphism: string -> |
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
25 |
{binding: (theory option -> binding -> binding) list, |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
26 |
typ: (theory option -> typ -> typ) list, |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
27 |
term: (theory option -> term -> term) list, |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
28 |
fact: (theory option -> thm list -> thm list) list} -> morphism |
77902 | 29 |
val is_identity: morphism -> bool |
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
30 |
val is_empty: morphism -> bool |
54740 | 31 |
val pretty: morphism -> Pretty.T |
29581 | 32 |
val binding: morphism -> binding -> binding |
69062 | 33 |
val binding_prefix: morphism -> (string * bool) list |
21476 | 34 |
val typ: morphism -> typ -> typ |
35 |
val term: morphism -> term -> term |
|
21521 | 36 |
val fact: morphism -> thm list -> thm list |
21476 | 37 |
val thm: morphism -> thm -> thm |
22235 | 38 |
val cterm: morphism -> cterm -> cterm |
67650 | 39 |
val identity: morphism |
78060 | 40 |
val default: morphism option -> morphism |
67650 | 41 |
val compose: morphism -> morphism -> morphism |
78072 | 42 |
type 'a entity |
43 |
val entity: (morphism -> 'a) -> 'a entity |
|
78075
15ab73949713
more careful reset/set_context for stored declarations;
wenzelm
parents:
78072
diff
changeset
|
44 |
val entity_reset_context: 'a entity -> 'a entity |
15ab73949713
more careful reset/set_context for stored declarations;
wenzelm
parents:
78072
diff
changeset
|
45 |
val entity_set_context: theory -> 'a entity -> 'a entity |
15ab73949713
more careful reset/set_context for stored declarations;
wenzelm
parents:
78072
diff
changeset
|
46 |
val entity_set_context': Proof.context -> 'a entity -> 'a entity |
15ab73949713
more careful reset/set_context for stored declarations;
wenzelm
parents:
78072
diff
changeset
|
47 |
val entity_set_context'': Context.generic -> 'a entity -> 'a entity |
78072 | 48 |
val transform: morphism -> 'a entity -> 'a entity |
78078 | 49 |
val transform_reset_context: morphism -> 'a entity -> 'a entity |
78072 | 50 |
val form: 'a entity -> 'a |
51 |
val form_entity: (morphism -> 'a) -> 'a |
|
78085 | 52 |
type declaration = morphism -> Context.generic -> Context.generic |
53 |
type declaration_entity = (Context.generic -> Context.generic) entity |
|
54740 | 54 |
val binding_morphism: string -> (binding -> binding) -> morphism |
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
55 |
val typ_morphism': string -> (theory -> typ -> typ) -> morphism |
54740 | 56 |
val typ_morphism: string -> (typ -> typ) -> morphism |
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
57 |
val term_morphism': string -> (theory -> term -> term) -> morphism |
54740 | 58 |
val term_morphism: string -> (term -> term) -> morphism |
78081 | 59 |
val fact_morphism': string -> (theory -> thm list -> thm list) -> morphism |
54740 | 60 |
val fact_morphism: string -> (thm list -> thm list) -> morphism |
78081 | 61 |
val thm_morphism': string -> (theory -> thm -> thm) -> morphism |
54740 | 62 |
val thm_morphism: string -> (thm -> thm) -> morphism |
53087 | 63 |
val transfer_morphism: theory -> morphism |
67664 | 64 |
val transfer_morphism': Proof.context -> morphism |
65 |
val transfer_morphism'': Context.generic -> morphism |
|
61064 | 66 |
val trim_context_morphism: morphism |
78064
4e865c45458b
clarified transfer / trim_context on persistent Token.source (e.g. attribute expressions): actually set/reset implicit context;
wenzelm
parents:
78063
diff
changeset
|
67 |
val set_trim_context: theory -> morphism -> morphism |
4e865c45458b
clarified transfer / trim_context on persistent Token.source (e.g. attribute expressions): actually set/reset implicit context;
wenzelm
parents:
78063
diff
changeset
|
68 |
val set_trim_context': Proof.context -> morphism -> morphism |
4e865c45458b
clarified transfer / trim_context on persistent Token.source (e.g. attribute expressions): actually set/reset implicit context;
wenzelm
parents:
78063
diff
changeset
|
69 |
val set_trim_context'': Context.generic -> morphism -> morphism |
74282 | 70 |
val instantiate_frees_morphism: ctyp TFrees.table * cterm Frees.table -> morphism |
71 |
val instantiate_morphism: ctyp TVars.table * cterm Vars.table -> morphism |
|
21476 | 72 |
end; |
73 |
||
74 |
structure Morphism: MORPHISM = |
|
75 |
struct |
|
76 |
||
54740 | 77 |
(* named functions *) |
78 |
||
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
79 |
type 'a funs = (string * (theory option -> 'a -> 'a)) list; |
54740 | 80 |
|
81 |
exception MORPHISM of string * exn; |
|
82 |
||
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
83 |
fun app context (name, f) x = f context x |
62505 | 84 |
handle exn => |
85 |
if Exn.is_interrupt exn then Exn.reraise exn else raise MORPHISM (name, exn); |
|
54740 | 86 |
|
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
87 |
|
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
88 |
(* optional context *) |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
89 |
|
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
90 |
fun the_theory (SOME thy) = thy |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
91 |
| the_theory NONE = raise Fail "Morphism lacks theory context"; |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
92 |
|
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
93 |
fun join_transfer (SOME thy) = Thm.join_transfer thy |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
94 |
| join_transfer NONE = I; |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
95 |
|
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
96 |
val join_context = join_options Context.join_certificate_theory; |
54740 | 97 |
|
98 |
||
99 |
(* type morphism *) |
|
45289
25e9e7f527b4
slightly more explicit/syntactic modelling of morphisms;
wenzelm
parents:
37216
diff
changeset
|
100 |
|
21476 | 101 |
datatype morphism = Morphism of |
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
102 |
{context: theory option, |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
103 |
names: string list, |
54740 | 104 |
binding: binding funs, |
45289
25e9e7f527b4
slightly more explicit/syntactic modelling of morphisms;
wenzelm
parents:
37216
diff
changeset
|
105 |
typ: typ funs, |
25e9e7f527b4
slightly more explicit/syntactic modelling of morphisms;
wenzelm
parents:
37216
diff
changeset
|
106 |
term: term funs, |
25e9e7f527b4
slightly more explicit/syntactic modelling of morphisms;
wenzelm
parents:
37216
diff
changeset
|
107 |
fact: thm list funs}; |
21476 | 108 |
|
78057 | 109 |
fun rep (Morphism args) = args; |
110 |
||
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
111 |
fun apply which phi = |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
112 |
let val args = rep phi |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
113 |
in fold_rev (app (#context args)) (which args) end; |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
114 |
|
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
115 |
fun put_context context (Morphism {context = _, names, binding, typ, term, fact}) = |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
116 |
Morphism {context = context, names = names, binding = binding, typ = typ, term = term, fact = fact}; |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
117 |
|
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
118 |
val set_context = put_context o SOME; |
78063 | 119 |
val set_context' = set_context o Proof_Context.theory_of; |
120 |
val set_context'' = set_context o Context.theory_of; |
|
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
121 |
val reset_context = put_context NONE; |
24031 | 122 |
|
67650 | 123 |
fun morphism a {binding, typ, term, fact} = |
124 |
Morphism { |
|
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
125 |
context = NONE, |
67650 | 126 |
names = if a = "" then [] else [a], |
127 |
binding = map (pair a) binding, |
|
128 |
typ = map (pair a) typ, |
|
129 |
term = map (pair a) term, |
|
130 |
fact = map (pair a) fact}; |
|
131 |
||
77902 | 132 |
(*syntactic test only!*) |
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
133 |
fun is_identity (Morphism {context = _, names, binding, typ, term, fact}) = |
77902 | 134 |
null names andalso null binding andalso null typ andalso null term andalso null fact; |
135 |
||
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
136 |
fun is_empty phi = is_none (#context (rep phi)) andalso is_identity phi; |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
137 |
|
78057 | 138 |
fun pretty phi = Pretty.enum ";" "{" "}" (map Pretty.str (rev (#names (rep phi)))); |
54740 | 139 |
|
62819
d3ff367a16a0
careful export of type-dependent functions, without losing their special status;
wenzelm
parents:
62663
diff
changeset
|
140 |
val _ = ML_system_pp (fn _ => fn _ => Pretty.to_polyml o pretty); |
62663 | 141 |
|
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
142 |
val binding = apply #binding; |
69062 | 143 |
fun binding_prefix morph = Binding.name "x" |> binding morph |> Binding.prefix_of; |
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
144 |
val typ = apply #typ; |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
145 |
val term = apply #term; |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
146 |
fun fact phi = map (join_transfer (#context (rep phi))) #> apply #fact phi; |
21521 | 147 |
val thm = singleton o fact; |
22235 | 148 |
val cterm = Drule.cterm_rule o thm; |
21476 | 149 |
|
54740 | 150 |
|
67650 | 151 |
(* morphism combinators *) |
21492 | 152 |
|
54740 | 153 |
val identity = morphism "" {binding = [], typ = [], term = [], fact = []}; |
154 |
||
78060 | 155 |
val default = the_default identity; |
156 |
||
78057 | 157 |
fun compose phi1 phi2 = |
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
158 |
if is_empty phi1 then phi2 |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
159 |
else if is_empty phi2 then phi1 |
78058 | 160 |
else |
161 |
let |
|
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
162 |
val {context = context1, names = names1, binding = binding1, |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
163 |
typ = typ1, term = term1, fact = fact1} = rep phi1; |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
164 |
val {context = context2, names = names2, binding = binding2, |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
165 |
typ = typ2, term = term2, fact = fact2} = rep phi2; |
78058 | 166 |
in |
167 |
Morphism { |
|
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
168 |
context = join_context (context1, context2), |
78058 | 169 |
names = names1 @ names2, |
170 |
binding = binding1 @ binding2, |
|
171 |
typ = typ1 @ typ2, |
|
172 |
term = term1 @ term2, |
|
173 |
fact = fact1 @ fact2} |
|
174 |
end; |
|
21476 | 175 |
|
22571
3f00e937d1c9
renamed comp to compose (avoid clash with Alice keywords);
wenzelm
parents:
22235
diff
changeset
|
176 |
fun phi1 $> phi2 = compose phi2 phi1; |
21476 | 177 |
|
78072 | 178 |
|
179 |
(* abstract entities *) |
|
180 |
||
78075
15ab73949713
more careful reset/set_context for stored declarations;
wenzelm
parents:
78072
diff
changeset
|
181 |
datatype 'a entity = Entity of (morphism -> 'a) * morphism; |
15ab73949713
more careful reset/set_context for stored declarations;
wenzelm
parents:
78072
diff
changeset
|
182 |
fun entity f = Entity (f, identity); |
78072 | 183 |
|
78075
15ab73949713
more careful reset/set_context for stored declarations;
wenzelm
parents:
78072
diff
changeset
|
184 |
fun entity_morphism g (Entity (f, phi)) = Entity (f, g phi); |
15ab73949713
more careful reset/set_context for stored declarations;
wenzelm
parents:
78072
diff
changeset
|
185 |
fun entity_reset_context a = entity_morphism reset_context a; |
15ab73949713
more careful reset/set_context for stored declarations;
wenzelm
parents:
78072
diff
changeset
|
186 |
fun entity_set_context thy a = entity_morphism (set_context thy) a; |
15ab73949713
more careful reset/set_context for stored declarations;
wenzelm
parents:
78072
diff
changeset
|
187 |
fun entity_set_context' ctxt a = entity_morphism (set_context' ctxt) a; |
15ab73949713
more careful reset/set_context for stored declarations;
wenzelm
parents:
78072
diff
changeset
|
188 |
fun entity_set_context'' context a = entity_morphism (set_context'' context) a; |
15ab73949713
more careful reset/set_context for stored declarations;
wenzelm
parents:
78072
diff
changeset
|
189 |
|
78089 | 190 |
fun transform phi = entity_morphism (compose phi); |
191 |
fun transform_reset_context phi = entity_morphism (reset_context o compose phi); |
|
78078 | 192 |
|
78075
15ab73949713
more careful reset/set_context for stored declarations;
wenzelm
parents:
78072
diff
changeset
|
193 |
fun form (Entity (f, phi)) = f phi; |
78072 | 194 |
fun form_entity f = f identity; |
195 |
||
78085 | 196 |
type declaration = morphism -> Context.generic -> Context.generic; |
197 |
type declaration_entity = (Context.generic -> Context.generic) entity; |
|
22670
c803b2696ada
added Morphism.transform/form (generic non-sense);
wenzelm
parents:
22571
diff
changeset
|
198 |
|
67650 | 199 |
|
200 |
(* concrete morphisms *) |
|
201 |
||
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
202 |
fun binding_morphism a binding = morphism a {binding = [K binding], typ = [], term = [], fact = []}; |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
203 |
fun typ_morphism' a typ = morphism a {binding = [], typ = [typ o the_theory], term = [], fact = []}; |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
204 |
fun typ_morphism a typ = morphism a {binding = [], typ = [K typ], term = [], fact = []}; |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
205 |
fun term_morphism' a term = morphism a {binding = [], typ = [], term = [term o the_theory], fact = []}; |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
206 |
fun term_morphism a term = morphism a {binding = [], typ = [], term = [K term], fact = []}; |
78081 | 207 |
fun fact_morphism' a fact = morphism a {binding = [], typ = [], term = [], fact = [fact o the_theory]}; |
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
208 |
fun fact_morphism a fact = morphism a {binding = [], typ = [], term = [], fact = [K fact]}; |
78081 | 209 |
fun thm_morphism' a thm = morphism a {binding = [], typ = [], term = [], fact = [map o thm o the_theory]}; |
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
210 |
fun thm_morphism a thm = morphism a {binding = [], typ = [], term = [], fact = [K (map thm)]}; |
67650 | 211 |
|
78063 | 212 |
fun transfer_morphism thy = fact_morphism "transfer" I |> set_context thy; |
67664 | 213 |
val transfer_morphism' = transfer_morphism o Proof_Context.theory_of; |
214 |
val transfer_morphism'' = transfer_morphism o Context.theory_of; |
|
215 |
||
67650 | 216 |
val trim_context_morphism = thm_morphism "trim_context" Thm.trim_context; |
217 |
||
78064
4e865c45458b
clarified transfer / trim_context on persistent Token.source (e.g. attribute expressions): actually set/reset implicit context;
wenzelm
parents:
78063
diff
changeset
|
218 |
fun set_trim_context thy phi = set_context thy phi $> trim_context_morphism; |
4e865c45458b
clarified transfer / trim_context on persistent Token.source (e.g. attribute expressions): actually set/reset implicit context;
wenzelm
parents:
78063
diff
changeset
|
219 |
val set_trim_context' = set_trim_context o Proof_Context.theory_of; |
4e865c45458b
clarified transfer / trim_context on persistent Token.source (e.g. attribute expressions): actually set/reset implicit context;
wenzelm
parents:
78063
diff
changeset
|
220 |
val set_trim_context'' = set_trim_context o Context.theory_of; |
4e865c45458b
clarified transfer / trim_context on persistent Token.source (e.g. attribute expressions): actually set/reset implicit context;
wenzelm
parents:
78063
diff
changeset
|
221 |
|
67698
67caf783b9ee
explicit operations to instantiate frees: typ, term, thm, morphism;
wenzelm
parents:
67664
diff
changeset
|
222 |
|
67caf783b9ee
explicit operations to instantiate frees: typ, term, thm, morphism;
wenzelm
parents:
67664
diff
changeset
|
223 |
(* instantiate *) |
67caf783b9ee
explicit operations to instantiate frees: typ, term, thm, morphism;
wenzelm
parents:
67664
diff
changeset
|
224 |
|
74282 | 225 |
fun instantiate_frees_morphism (cinstT, cinst) = |
226 |
if TFrees.is_empty cinstT andalso Frees.is_empty cinst then identity |
|
227 |
else |
|
228 |
let |
|
229 |
val instT = TFrees.map (K Thm.typ_of) cinstT; |
|
230 |
val inst = Frees.map (K Thm.term_of) cinst; |
|
231 |
in |
|
232 |
morphism "instantiate_frees" |
|
233 |
{binding = [], |
|
234 |
typ = |
|
235 |
if TFrees.is_empty instT then [] |
|
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
236 |
else [K (Term_Subst.instantiateT_frees instT)], |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
237 |
term = [K (Term_Subst.instantiate_frees (instT, inst))], |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
238 |
fact = [K (map (Thm.instantiate_frees (cinstT, cinst)))]} |
74282 | 239 |
end; |
67698
67caf783b9ee
explicit operations to instantiate frees: typ, term, thm, morphism;
wenzelm
parents:
67664
diff
changeset
|
240 |
|
74282 | 241 |
fun instantiate_morphism (cinstT, cinst) = |
242 |
if TVars.is_empty cinstT andalso Vars.is_empty cinst then identity |
|
243 |
else |
|
244 |
let |
|
245 |
val instT = TVars.map (K Thm.typ_of) cinstT; |
|
246 |
val inst = Vars.map (K Thm.term_of) cinst; |
|
247 |
in |
|
248 |
morphism "instantiate" |
|
249 |
{binding = [], |
|
250 |
typ = |
|
251 |
if TVars.is_empty instT then [] |
|
78062
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
252 |
else [K (Term_Subst.instantiateT instT)], |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
253 |
term = [K (Term_Subst.instantiate (instT, inst))], |
edb195122938
support for context within morphism (for background theory);
wenzelm
parents:
78060
diff
changeset
|
254 |
fact = [K (map (Thm.instantiate (cinstT, cinst)))]} |
74282 | 255 |
end; |
67651
6dd41193a72a
more explicit instantiate_morphism (without checks for typ / term component);
wenzelm
parents:
67650
diff
changeset
|
256 |
|
21476 | 257 |
end; |
258 |
||
37216
3165bc303f66
modernized some structure names, keeping a few legacy aliases;
wenzelm
parents:
29605
diff
changeset
|
259 |
structure Basic_Morphism: BASIC_MORPHISM = Morphism; |
3165bc303f66
modernized some structure names, keeping a few legacy aliases;
wenzelm
parents:
29605
diff
changeset
|
260 |
open Basic_Morphism; |