├── .gitignore ├── LICENSE ├── README.md ├── bin └── .directory ├── capabilities ├── advanced │ ├── act │ │ └── act.synth │ ├── compare │ │ └── compare.synth │ ├── learn │ │ └── learn.synth │ └── nlp │ │ ├── common │ │ └── ASCII.synth │ │ ├── data │ │ └── .directory │ │ ├── nlp.synth │ │ ├── read │ │ └── read.synth │ │ └── write │ │ └── write.synth └── basic │ ├── plan │ └── plan.synth │ ├── recognize │ └── recognize.synth │ └── understand │ └── understand.synth ├── ext └── .directory ├── interpreter ├── alloc.c ├── alloc.h ├── graph.c ├── graph.h ├── interp.c ├── interp.h ├── parser.c ├── parser.h ├── repl.c ├── repl.h ├── runloop.c ├── runloop.h ├── rx.c ├── rx.h ├── sched.c ├── sched.h ├── signals.c ├── signals.h └── tests │ ├── test_alloc.c │ ├── test_graph.c │ ├── test_parser.c │ ├── test_rx.c │ └── test_sched.c ├── make.py ├── synth.c ├── synth.h ├── tools ├── common │ └── inputs.py ├── graph │ ├── check.py │ ├── create.py │ ├── query.py │ ├── reset.py │ └── stats.py ├── interface │ └── create.py ├── pathways │ └── create.py ├── situations │ └── create.py └── stages │ └── create.py └── utils ├── chained_list.c ├── chained_list.h ├── chained_pool.c ├── chained_pool.h ├── cli.c ├── cli.h ├── hash.c ├── hash.h ├── hashmap.c ├── hashmap.h ├── list.c ├── list.h ├── map.c ├── map.h ├── pool.c ├── pool.h ├── test.c ├── test.h └── tests ├── test_chained_list.c ├── test_chained_pool.c ├── test_cli.c ├── test_hash.c ├── test_hashmap.c ├── test_list.c ├── test_map.c ├── test_pool.c └── test_sanity.c /.gitignore: -------------------------------------------------------------------------------- 1 | # Object files 2 | *.o 3 | *.ko 4 | *.obj 5 | *.elf 6 | 7 | # Libraries 8 | *.lib 9 | *.a 10 | 11 | # Shared objects (inc. Windows DLLs) 12 | *.dll 13 | *.so 14 | *.so.* 15 | *.dylib 16 | 17 | # Executables 18 | *.exe 19 | *.out 20 | *.app 21 | *.i*86 22 | *.x86_64 23 | *.hex 24 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 AI-Now 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Intro 2 | ===== 3 | 4 | Synth is a unified cognitive architecture with the capabilities of a human mind. 5 | 6 | Synth is intended to be used to construct the first super-human(e)ly intelligent machine. 7 | 8 | Synth is based on a large amount of basic research completed between 2012-2013, which has resulted in a design called v7. 9 | 10 | This codebase is the attempt to fully implement that design, creating a framework that can be used to bootstrap a synthetic mind, by feeding it 1) English texts containing (trustless) information, and 2) English texts containing an ethics specification. 11 | 12 | We expect to reach our target of a fully working AI some time in 2016. Before then, we will need to commercialize this project, in order to procure the hardware necessary to run the production system, and to ensure the physical security of the code. 13 | 14 | (If you have about $20 million lieing around, that you think might have better uses -- give us a call.) 15 | 16 | Details 17 | ======= 18 | 19 | For more information on the project, please visit [our blog](http://synthetic-sky.tumblr.com) or [our homepage](http://ainow.weebly.com). 20 | -------------------------------------------------------------------------------- /bin/.directory: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/bin/.directory -------------------------------------------------------------------------------- /capabilities/advanced/act/act.synth: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/capabilities/advanced/act/act.synth -------------------------------------------------------------------------------- /capabilities/advanced/compare/compare.synth: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/capabilities/advanced/compare/compare.synth -------------------------------------------------------------------------------- /capabilities/advanced/learn/learn.synth: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/capabilities/advanced/learn/learn.synth -------------------------------------------------------------------------------- /capabilities/advanced/nlp/common/ASCII.synth: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/capabilities/advanced/nlp/common/ASCII.synth -------------------------------------------------------------------------------- /capabilities/advanced/nlp/data/.directory: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/capabilities/advanced/nlp/data/.directory -------------------------------------------------------------------------------- /capabilities/advanced/nlp/nlp.synth: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/capabilities/advanced/nlp/nlp.synth -------------------------------------------------------------------------------- /capabilities/advanced/nlp/read/read.synth: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/capabilities/advanced/nlp/read/read.synth -------------------------------------------------------------------------------- /capabilities/advanced/nlp/write/write.synth: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/capabilities/advanced/nlp/write/write.synth -------------------------------------------------------------------------------- /capabilities/basic/plan/plan.synth: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/capabilities/basic/plan/plan.synth -------------------------------------------------------------------------------- /capabilities/basic/recognize/recognize.synth: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/capabilities/basic/recognize/recognize.synth -------------------------------------------------------------------------------- /capabilities/basic/understand/understand.synth: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/capabilities/basic/understand/understand.synth -------------------------------------------------------------------------------- /ext/.directory: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/ext/.directory -------------------------------------------------------------------------------- /interpreter/alloc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/alloc.c -------------------------------------------------------------------------------- /interpreter/alloc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/alloc.h -------------------------------------------------------------------------------- /interpreter/graph.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/graph.c -------------------------------------------------------------------------------- /interpreter/graph.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/graph.h -------------------------------------------------------------------------------- /interpreter/interp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/interp.c -------------------------------------------------------------------------------- /interpreter/interp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/interp.h -------------------------------------------------------------------------------- /interpreter/parser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/parser.c -------------------------------------------------------------------------------- /interpreter/parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/parser.h -------------------------------------------------------------------------------- /interpreter/repl.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/repl.c -------------------------------------------------------------------------------- /interpreter/repl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/repl.h -------------------------------------------------------------------------------- /interpreter/runloop.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/runloop.c -------------------------------------------------------------------------------- /interpreter/runloop.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/runloop.h -------------------------------------------------------------------------------- /interpreter/rx.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/rx.c -------------------------------------------------------------------------------- /interpreter/rx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/rx.h -------------------------------------------------------------------------------- /interpreter/sched.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/sched.c -------------------------------------------------------------------------------- /interpreter/sched.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/sched.h -------------------------------------------------------------------------------- /interpreter/signals.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/signals.c -------------------------------------------------------------------------------- /interpreter/signals.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/signals.h -------------------------------------------------------------------------------- /interpreter/tests/test_alloc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/tests/test_alloc.c -------------------------------------------------------------------------------- /interpreter/tests/test_graph.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/tests/test_graph.c -------------------------------------------------------------------------------- /interpreter/tests/test_parser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/tests/test_parser.c -------------------------------------------------------------------------------- /interpreter/tests/test_rx.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/tests/test_rx.c -------------------------------------------------------------------------------- /interpreter/tests/test_sched.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/interpreter/tests/test_sched.c -------------------------------------------------------------------------------- /make.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | print "Synth Build Tool" 4 | 5 | os.system ("gcc -o bin/synth -include synth.h synth.c */*.c */*/*.c") 6 | -------------------------------------------------------------------------------- /synth.c: -------------------------------------------------------------------------------- 1 | #include "synth.h" 2 | 3 | int main () 4 | { 5 | test_suite (); 6 | } 7 | -------------------------------------------------------------------------------- /synth.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "utils/test.h" 4 | -------------------------------------------------------------------------------- /tools/common/inputs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/tools/common/inputs.py -------------------------------------------------------------------------------- /tools/graph/check.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/tools/graph/check.py -------------------------------------------------------------------------------- /tools/graph/create.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/tools/graph/create.py -------------------------------------------------------------------------------- /tools/graph/query.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/tools/graph/query.py -------------------------------------------------------------------------------- /tools/graph/reset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/tools/graph/reset.py -------------------------------------------------------------------------------- /tools/graph/stats.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/tools/graph/stats.py -------------------------------------------------------------------------------- /tools/interface/create.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/tools/interface/create.py -------------------------------------------------------------------------------- /tools/pathways/create.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/tools/pathways/create.py -------------------------------------------------------------------------------- /tools/situations/create.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/tools/situations/create.py -------------------------------------------------------------------------------- /tools/stages/create.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/tools/stages/create.py -------------------------------------------------------------------------------- /utils/chained_list.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/chained_list.c -------------------------------------------------------------------------------- /utils/chained_list.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/chained_list.h -------------------------------------------------------------------------------- /utils/chained_pool.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/chained_pool.c -------------------------------------------------------------------------------- /utils/chained_pool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/chained_pool.h -------------------------------------------------------------------------------- /utils/cli.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/cli.c -------------------------------------------------------------------------------- /utils/cli.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/cli.h -------------------------------------------------------------------------------- /utils/hash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/hash.c -------------------------------------------------------------------------------- /utils/hash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/hash.h -------------------------------------------------------------------------------- /utils/hashmap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/hashmap.c -------------------------------------------------------------------------------- /utils/hashmap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/hashmap.h -------------------------------------------------------------------------------- /utils/list.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/list.c -------------------------------------------------------------------------------- /utils/list.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/list.h -------------------------------------------------------------------------------- /utils/map.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/map.c -------------------------------------------------------------------------------- /utils/map.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/map.h -------------------------------------------------------------------------------- /utils/pool.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/pool.c -------------------------------------------------------------------------------- /utils/pool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/pool.h -------------------------------------------------------------------------------- /utils/test.c: -------------------------------------------------------------------------------- 1 | void test_suite () 2 | { 3 | test_sanity (); 4 | } 5 | -------------------------------------------------------------------------------- /utils/test.h: -------------------------------------------------------------------------------- 1 | // micro test framework 2 | static int test_number; 3 | static int planned_tests; 4 | #define ok(result, description) \ 5 | test_number++; \ 6 | if (result) printf("ok, %i\n", test_number); else printf("fail, %i: %s", test_number, #description); 7 | #define fail(result, description) ok(!(result), description) 8 | #define plan(num) planned_tests = num; 9 | 10 | // test suite 11 | void test_suite (); 12 | void test_sanity (); 13 | -------------------------------------------------------------------------------- /utils/tests/test_chained_list.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/tests/test_chained_list.c -------------------------------------------------------------------------------- /utils/tests/test_chained_pool.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/tests/test_chained_pool.c -------------------------------------------------------------------------------- /utils/tests/test_cli.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/tests/test_cli.c -------------------------------------------------------------------------------- /utils/tests/test_hash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/tests/test_hash.c -------------------------------------------------------------------------------- /utils/tests/test_hashmap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/tests/test_hashmap.c -------------------------------------------------------------------------------- /utils/tests/test_list.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/tests/test_list.c -------------------------------------------------------------------------------- /utils/tests/test_map.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/tests/test_map.c -------------------------------------------------------------------------------- /utils/tests/test_pool.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AI-Now/Synth/08096d6fd8d3980beab25b23894312b18555c968/utils/tests/test_pool.c -------------------------------------------------------------------------------- /utils/tests/test_sanity.c: -------------------------------------------------------------------------------- 1 | void test_sanity () { 2 | plan (2) 3 | ok (1, 1 should be true) 4 | fail (0, 0 should be false) 5 | } 6 | --------------------------------------------------------------------------------