proinsias 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 74a472d29dbd34791b03fe2ca6c089cc834d3fa9f273bafcbf1292aa0bbc9835
4
+ data.tar.gz: 6830f5f82905af79f24af413ecd719e37a5c3934b87b7b6ef8df582f7a67cf81
5
+ SHA512:
6
+ metadata.gz: c3e66a79d8c0d1801ad4abc5885cf58a0c905fdef367e22d9c14cf694a09229d8a9730889bc9ed761978f0255e992bd3e0f8dac62f9eeb57c61b8873b85e39f2
7
+ data.tar.gz: 9d9290f85f4b7093da9e85960d9ab4d66656af6a4748431b5c4fd734c6f932979676dcc70fa671bcbe50ebabd418a37497f206d300d92134523e289522b81cdf
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.5.1
5
+ before_install: gem install bundler -v 1.16.2
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in proinsias.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,37 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ proinsias (0.1.0)
5
+ moory (~> 1.1.3)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ diff-lcs (1.3)
11
+ moory (1.1.3)
12
+ rake (10.5.0)
13
+ rspec (3.7.0)
14
+ rspec-core (~> 3.7.0)
15
+ rspec-expectations (~> 3.7.0)
16
+ rspec-mocks (~> 3.7.0)
17
+ rspec-core (3.7.1)
18
+ rspec-support (~> 3.7.0)
19
+ rspec-expectations (3.7.0)
20
+ diff-lcs (>= 1.2.0, < 2.0)
21
+ rspec-support (~> 3.7.0)
22
+ rspec-mocks (3.7.0)
23
+ diff-lcs (>= 1.2.0, < 2.0)
24
+ rspec-support (~> 3.7.0)
25
+ rspec-support (3.7.1)
26
+
27
+ PLATFORMS
28
+ ruby
29
+
30
+ DEPENDENCIES
31
+ bundler (~> 1.16)
32
+ proinsias!
33
+ rake (~> 10.0)
34
+ rspec (~> 3.0)
35
+
36
+ BUNDLED WITH
37
+ 1.16.2
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Adam W. Grant
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
13
+ all 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
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # Proinsias
2
+
3
+ Welcome to the Proinsias gem!
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'proinsias'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install proinsias
20
+
21
+ ## Usage
22
+
23
+ TODO: Write usage instructions here
24
+
25
+ ## Development
26
+
27
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
28
+
29
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
30
+
31
+ ## Contributing
32
+
33
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/proinsias.
34
+
35
+ ## License
36
+
37
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "proinsias"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,28 @@
1
+ module Proinsias
2
+ class Assembler
3
+ attr_reader :receiver, :opening
4
+
5
+ def feed(incoming)
6
+ receiver ?
7
+ connect(incoming) :
8
+ @receiver = incoming
9
+
10
+ @opening = incoming.expectant? ? incoming : nil
11
+ end
12
+
13
+ def connect(incoming)
14
+ if opening
15
+ opening.receive(incoming)
16
+ return @receiver
17
+ end
18
+ if incoming > receiver
19
+ incoming.receive(receiver)
20
+ return @receiver = incoming
21
+ end
22
+ if incoming < receiver
23
+ receiver.absorb(incoming)
24
+ return @receiver
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,45 @@
1
+ module Proinsias
2
+ module Configurations
3
+ PIP = # PIP: Prefix Infix Parenthetical
4
+ {
5
+ basis: 'basis',
6
+ specs: {
7
+ 'basis' => {
8
+ rules: """
9
+ ^ : constant : $
10
+ ^ : variable : $
11
+ ^ : prefix / open / defer : Δ
12
+ ^ : lparen / parenthetical / defer : Δ
13
+ $ : infix / open / defer : Δ
14
+
15
+ Δ : term : $
16
+ """,
17
+ },
18
+ 'open' => {
19
+ rules: """
20
+ ^ : constant / term / reconvene : $
21
+ ^ : variable / term / reconvene : $
22
+ ^ : prefix / open / defer : Δ
23
+ ^ : lparen / parenthetical / defer : Δ
24
+ $ : infix / open / defer : Δ
25
+
26
+ Δ : term / term / reconvene : $
27
+ """,
28
+ },
29
+ 'parenthetical' => {
30
+ rules: """
31
+ ^ : constant : C
32
+ ^ : variable : C
33
+ ^ : prefix / open / defer : Δ
34
+ ^ : lparen / parenthetical / defer : Δ
35
+ ^ : rparen / void / reconvene : $
36
+ C : infix / open / defer : Δ
37
+ C : rparen / term / reconvene : $
38
+
39
+ Δ : term : C
40
+ """
41
+ }
42
+ }
43
+ }
44
+ end
45
+ end
@@ -0,0 +1,68 @@
1
+ require 'moory'
2
+
3
+ module Proinsias
4
+ module Decoder
5
+ RULES = """
6
+ ^ : p / variable / produce : ^
7
+ ^ : q / variable / produce : ^
8
+ ^ : r / variable / produce : ^
9
+ ^ : s / variable / produce : ^
10
+
11
+ ^ : ¬ / prefix / produce : ^
12
+
13
+ ^ : ≡ / infix / produce : ^
14
+ ^ : ∧ / infix / produce : ^
15
+ ^ : ∨ / infix / produce : ^
16
+ ^ : ⇒ / infix / produce : ^
17
+ ^ : ⇐ / infix / produce : ^
18
+
19
+ ^ : ( / lparen / produce : ^
20
+ ^ : ) / rparen / produce : ^
21
+
22
+ ^ : t : 0
23
+ 0 : r : 1
24
+ 1 : u : 2
25
+ 2 : e / constant / produce : ^
26
+
27
+ ^ : f : 3
28
+ 3 : a : 4
29
+ 4 : l : 5
30
+ 5 : s : 6
31
+ 6 : e / constant / produce : ^
32
+ """
33
+
34
+ class Automaton < Moory::Logistic::Unit
35
+ IGNORE = [' ', "\t", "\n"]
36
+
37
+ def initialize(consumer)
38
+ @buffer = ""
39
+ @consumer = consumer
40
+ super(rules: RULES)
41
+ end
42
+
43
+ def configure(rules)
44
+ super
45
+ repertoire.learn(name: 'produce', item: method(:produce))
46
+ end
47
+
48
+ def produce(output)
49
+ @consumer.call(
50
+ Token.new(
51
+ glyph: @buffer,
52
+ role: output
53
+ )
54
+ )
55
+ @buffer = ""
56
+ end
57
+
58
+ def issue(stimulus)
59
+ return if IGNORE.include?(stimulus)
60
+
61
+ @buffer << stimulus
62
+ unless success = super(stimulus)
63
+ produce(nil)
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,136 @@
1
+ module Proinsias
2
+ module Competitor
3
+ module Optimistic
4
+ attr_reader :strength
5
+ include Comparable
6
+
7
+ def <=>(other)
8
+ return 1 if strength > other.strength
9
+ return 1 if strength == other.strength
10
+ return -1 if strength < other.strength
11
+ end
12
+ end
13
+
14
+ module Pessimistic
15
+ attr_reader :strength
16
+ include Comparable
17
+
18
+ def <=>(other)
19
+ return 1 if strength > other.strength
20
+ return -1 if strength == other.strength
21
+ return -1 if strength < other.strength
22
+ end
23
+ end
24
+ end
25
+
26
+ module Atoms
27
+ class Atom
28
+ include Receiver
29
+ include Competitor::Pessimistic
30
+
31
+ def initialize(glyph)
32
+ @glyph = glyph
33
+ @capacity = 0
34
+ @strength = 0
35
+ end
36
+
37
+ def to_ast
38
+ @glyph
39
+ end
40
+ end
41
+
42
+ Constant = Atom
43
+ Variable = Atom
44
+ end
45
+
46
+ module Operators
47
+ class Operator
48
+ def to_ast
49
+ {
50
+ @glyph => arguments.collect { |a| a.to_ast }
51
+ }
52
+ end
53
+ end
54
+
55
+ class BinaryOperator < Operator
56
+ include Proinsias::Receiver
57
+
58
+ def initialize(glyph)
59
+ @glyph = glyph
60
+ @capacity = 2
61
+ end
62
+ end
63
+
64
+ class UnaryOperator < Operator
65
+ include Proinsias::Receiver
66
+
67
+ def initialize(glyph)
68
+ @glyph = glyph
69
+ @capacity = 1
70
+ end
71
+ end
72
+
73
+ class Negation < UnaryOperator
74
+ include Competitor::Pessimistic
75
+
76
+ def initialize
77
+ super('¬')
78
+ @strength = 2
79
+ end
80
+ end
81
+
82
+ class Equivalence < BinaryOperator
83
+ include Competitor::Optimistic
84
+
85
+ def initialize
86
+ super('≡')
87
+ @strength = 12
88
+ end
89
+ end
90
+
91
+ class Consequence < BinaryOperator
92
+ include Competitor::Optimistic
93
+
94
+ def initialize
95
+ super('⇐')
96
+ @strength = 11
97
+ end
98
+ end
99
+
100
+ class Implication < BinaryOperator
101
+ include Competitor::Pessimistic
102
+
103
+ def initialize
104
+ super('⇒')
105
+ @strength = 11
106
+ end
107
+ end
108
+
109
+ class Equality < BinaryOperator
110
+ include Competitor::Optimistic
111
+
112
+ def initialize
113
+ super('=')
114
+ @strength = 9
115
+ end
116
+ end
117
+
118
+ class Disjunction < BinaryOperator
119
+ include Competitor::Optimistic
120
+
121
+ def initialize
122
+ super('∨')
123
+ @strength = 10
124
+ end
125
+ end
126
+
127
+ class Conjunction < BinaryOperator
128
+ include Competitor::Optimistic
129
+
130
+ def initialize
131
+ super('∧')
132
+ @strength = 10
133
+ end
134
+ end
135
+ end
136
+ end
@@ -0,0 +1,92 @@
1
+ module Proinsias
2
+ module Receiver
3
+ attr_reader :received, :capacity
4
+
5
+ alias nodes received
6
+ alias arguments received
7
+
8
+ def received
9
+ @received ||= []
10
+ end
11
+
12
+ def receive(guest)
13
+ (received << guest
14
+ guest) unless full?
15
+ end
16
+
17
+ def full?
18
+ ! expectant?
19
+ end
20
+
21
+ def expectant?
22
+ received.count < capacity
23
+ end
24
+
25
+ def last
26
+ received.last
27
+ end
28
+
29
+ def seek(inspector)
30
+ inspector.call(self) ?
31
+ self :
32
+ refer(inspector)
33
+ end
34
+
35
+ def step_up(mark)
36
+ seek(
37
+ proc { |candidate| candidate.received.last >= mark }
38
+ )
39
+ end
40
+
41
+ def integrate(incoming)
42
+ if self < incoming
43
+ unplug(step_up(incoming)).tap do |unplugged|
44
+ incoming.receive(unplugged.plug)
45
+ unplugged.receiver.receive(incoming)
46
+ end
47
+ self
48
+ elsif self == incoming
49
+ # This is where we will have to consider "contrary" receivers
50
+ # which we don't yet have.
51
+ incoming.receive(self)
52
+ incoming
53
+ elsif self > incoming
54
+ incoming.receive(self)
55
+ incoming
56
+ end
57
+ end
58
+
59
+ def unplug(stock)
60
+ Unplugged.new(
61
+ receiver: stock,
62
+ plug: stock.nodes.pop
63
+ )
64
+ end
65
+
66
+ Unplugged = Struct.new(:receiver, :plug, keyword_init: true)
67
+
68
+ # new interface
69
+ def accommodates?(other)
70
+ other > last
71
+ end
72
+
73
+ def absorb(other)
74
+ accommodates?(other) ?
75
+ splice(other) :
76
+ last.absorb(other)
77
+ end
78
+
79
+ def splice(other)
80
+ other.receive(received.pop)
81
+ receive(other)
82
+ end
83
+
84
+ private
85
+
86
+ def refer(inspector)
87
+ received.count > 0 ?
88
+ received.last.seek(inspector) :
89
+ nil
90
+ end
91
+ end
92
+ end
@@ -0,0 +1,31 @@
1
+ require 'moory'
2
+
3
+ module Proinsias
4
+ class Sieve
5
+ def initialize(filter:, consumer:, quarantine:nil)
6
+ @consumer = consumer
7
+ @quarantine = quarantine
8
+ @filter = filter
9
+ end
10
+
11
+ def issue(token)
12
+ fits?(token) ?
13
+ release(token) :
14
+ quarantine(token)
15
+ end
16
+
17
+ private
18
+
19
+ def fits?(token)
20
+ @filter.issue(token.role)
21
+ end
22
+
23
+ def release(token)
24
+ @consumer.call(token)
25
+ end
26
+
27
+ def quarantine(token)
28
+ @quarantine.call(token) if @quarantine
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,3 @@
1
+ module Proinsias
2
+ Token = Struct.new(:role, :glyph, keyword_init: true)
3
+ end
@@ -0,0 +1,3 @@
1
+ module Proinsias
2
+ VERSION = "0.1.0"
3
+ end
data/lib/proinsias.rb ADDED
@@ -0,0 +1,12 @@
1
+ require "proinsias/version"
2
+ require "proinsias/token"
3
+ require "proinsias/decoder"
4
+ require "proinsias/configurations"
5
+ require "proinsias/sieve"
6
+ require "proinsias/receiver"
7
+ require "proinsias/operators"
8
+ require "proinsias/assembler"
9
+
10
+ module Proinsias
11
+ # Your code goes here...
12
+ end
data/proinsias.gemspec ADDED
@@ -0,0 +1,39 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "proinsias/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "proinsias"
8
+ spec.version = Proinsias::VERSION
9
+ spec.authors = ["Adam W. Grant"]
10
+ spec.email = ["adam_grnt@yahoo.co.uk"]
11
+
12
+ spec.summary = %q{Manipulate formulae of the Propositional Calculus.}
13
+ spec.homepage = "https://github.com/elclavijero/proinsias"
14
+ spec.license = "MIT"
15
+
16
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
17
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
18
+ # if spec.respond_to?(:metadata)
19
+ # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
20
+ # else
21
+ # raise "RubyGems 2.0 or newer is required to protect against " \
22
+ # "public gem pushes."
23
+ # end
24
+
25
+ # Specify which files should be added to the gem when it is released.
26
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
28
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
29
+ end
30
+ spec.bindir = "exe"
31
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
+ spec.require_paths = ["lib"]
33
+
34
+ spec.add_development_dependency "bundler", "~> 1.16"
35
+ spec.add_development_dependency "rake", "~> 10.0"
36
+ spec.add_development_dependency "rspec", "~> 3.0"
37
+
38
+ spec.add_dependency "moory", "~> 1.1.3"
39
+ end
metadata ADDED
@@ -0,0 +1,120 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: proinsias
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Adam W. Grant
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-08-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: moory
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.1.3
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 1.1.3
69
+ description:
70
+ email:
71
+ - adam_grnt@yahoo.co.uk
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".rspec"
78
+ - ".travis.yml"
79
+ - Gemfile
80
+ - Gemfile.lock
81
+ - LICENSE.txt
82
+ - README.md
83
+ - Rakefile
84
+ - bin/console
85
+ - bin/setup
86
+ - lib/proinsias.rb
87
+ - lib/proinsias/assembler.rb
88
+ - lib/proinsias/configurations.rb
89
+ - lib/proinsias/decoder.rb
90
+ - lib/proinsias/operators.rb
91
+ - lib/proinsias/receiver.rb
92
+ - lib/proinsias/sieve.rb
93
+ - lib/proinsias/token.rb
94
+ - lib/proinsias/version.rb
95
+ - proinsias.gemspec
96
+ homepage: https://github.com/elclavijero/proinsias
97
+ licenses:
98
+ - MIT
99
+ metadata: {}
100
+ post_install_message:
101
+ rdoc_options: []
102
+ require_paths:
103
+ - lib
104
+ required_ruby_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ requirements: []
115
+ rubyforge_project:
116
+ rubygems_version: 2.7.6
117
+ signing_key:
118
+ specification_version: 4
119
+ summary: Manipulate formulae of the Propositional Calculus.
120
+ test_files: []