maxitg / SetReplace

C++/Wolfram Language package for exploring set and graph rewriting systems
MIT License
216 stars 43 forks source link

Event sets #658

Closed maxitg closed 2 years ago

maxitg commented 3 years ago

Changes

Comments

Examples

In[] := #["ExpressionsEventsGraph", VertexLabels -> Automatic, GraphLayout -> "SpringElectricalEmbedding"] &@
 SetReplaceTypeConvert[{WolframModelEvolutionObject, 2}]@
  GenerateFullEventSet[MultisetSubstitutionSystem[{a_, b_} /; a <= b :> {a + b}], 3]@{1}
image
In[] := WolframModel[<|"PatternRules" -> ({{v1_, v2_}, {v1_, v3_}} :> 
      Module[{v4}, {{v1, v2}, {v1, v4}, {v2, v4}, {v3, v4}}])|>, {{1, 1}, {1, 1}}, 3, 
  "EventSelectionFunction" -> "MultiwaySpacelike"]["ExpressionsEventsGraph", GraphLayout -> "SpringElectricalEmbedding"]
image
In[] := #["ExpressionsEventsGraph", GraphLayout -> "SpringElectricalEmbedding"] &@
 SetReplaceTypeConvert[{WolframModelEvolutionObject, 2}]@
  GenerateFullEventSet[
    MultisetSubstitutionSystem[{{v1_, v2_}, {v1_, v3_}} :> Module[{v4}, {{v1, v2}, {v1, v4}, {v2, v4}, {v3, v4}}]], 
    3]@{{1, 1}}
image

This change is Reviewable

maxitg commented 2 years ago

Closing this for now until it becomes more clear what the next steps are.