{"id":45181236,"url":"https://github.com/welopment/unification","last_synced_at":"2026-03-05T08:01:26.547Z","repository":{"id":56841579,"uuid":"151557577","full_name":"welopment/unification","owner":"welopment","description":"Unification Algorithm in Dart.","archived":false,"fork":false,"pushed_at":"2019-12-18T15:41:17.000Z","size":7078,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-08-20T23:27:38.846Z","etag":null,"topics":["algorithm","dart","flutter","flutter-package","logic","pattern-matching","unification"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/unification","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/welopment.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-04T10:55:20.000Z","updated_at":"2019-12-18T15:41:19.000Z","dependencies_parsed_at":"2022-08-29T12:51:08.445Z","dependency_job_id":null,"html_url":"https://github.com/welopment/unification","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/welopment/unification","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welopment%2Funification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welopment%2Funification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welopment%2Funification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welopment%2Funification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/welopment","download_url":"https://codeload.github.com/welopment/unification/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/welopment%2Funification/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30115662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithm","dart","flutter","flutter-package","logic","pattern-matching","unification"],"created_at":"2026-02-20T10:00:30.842Z","updated_at":"2026-03-05T08:01:26.514Z","avatar_url":"https://github.com/welopment.png","language":"Dart","readme":"Unification\n===========\n\nA library providing implementations of first-order logical unification for dart and flutter.\n\n# Getting started\n\nAdd the dependency to your pubspec.yaml file:\n\n```yaml\ndependencies:\n  unification: #latest version\n```\n\nAdd the import statement to your source files:\n\n```dart\nimport 'package:unification/unification.dart';\n```\n\nOr, give it a try and run the example:\n\n```dart\ndart ./example/main.dart \n```\n\nModify the example to test more less simple tasks!\n\n# Example:\n\n```dart\n  import \"package:unification/unification.dart\";\n  \n \n  //\n   Termtype\u003cString, Id\u003e term1 = Term(Id(1, 1), [\n    Var(\n      Id(1, 2),\n    ),\n    Var(\n      Id(1, 2),\n    ),\n  ]);\n  //\n  Termtype\u003cString, Id\u003e term2 = Term(Id(2, 1), [\n    Var(\n      Id(2, 2),\n    ),\n    Term(Id(2, 3), [\n      Var(\n        Id(2, 2),\n      ),\n    ]),\n  ]);\n  print('Occurs Check: Circularity.');\n  UnificationR\u003cString, Id\u003e u = UnificationR\u003cString, Id\u003e();\n  var mgu = u.unify(term1, term2, []);\n  var unifiedTerm1 = u.subsitute(mgu, term1);\n  var unifiedTerm2 = u.subsitute(mgu, term2);\n  print('mgu      \u003e ' + mgu.toString());\n  print('term 1   \u003e ' + unifiedTerm1.toString());\n  print('term 2   \u003e ' + unifiedTerm2.toString());\n```\n\n\n\n[Read more](https://en.wikipedia.org/wiki/Unification) \nabout unification in logic on Wikipedia.\n\n\n\n\n\n\n\n\n\n\n\n","funding_links":[],"categories":["Dart"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwelopment%2Funification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwelopment%2Funification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwelopment%2Funification/lists"}