Evaluator
-
- Syntax of atoms as an list.
-
- Transform an AST graph to a list of atoms. Alpha convert link names.
-
- The evaluator.
-
- Matches atoms and graph contexts and returns the obtained graph substitutions.
-
- Matches atoms and returns the link mappings and the rest graph.
-
- Transform the link names in the rest graphs and supply fusions according to the link mappings.
-
- Matches graph contexts and returns the obtained graph substitutions.
-
- Substitute graph contexts with the given graph substitution (rewriting after matching).
link_env
を用いてマッチングを行う.
- fusion をどのように扱うか?
- local link の fusion は事前に吸収しておく.
- free link の fusion, a quotient set of free link names, をどのように扱うか?
- host graph の free fusion が graph template の free fusion の subset でなければ,そもそもマッチングに失敗する.
- host graph でもともと互いに素な自由リンクが, マッチングの過程で同じ同値類に属するようになるようなことはない.
- 逆に,graph template で互いに素であったとしても, graph template 内の graph context に fusion を補えば, host graph で同じ同値類に属する自由リンクにマッチできる.
- 従って,host graph の free fusion が graph template の free fusion の subset (finer) であることを確認すれば良い.
- マッチングの際に,非単射的であれば,quotient set を update する?
- Check that the set of free link names of the host graph and the graph template are the same.
- Check that the free fusion of the host graph is a finer quotient set than the free fusion of the graph template.
- Match atoms updating
link_env
.- Free