Created
March 27, 2019 16:51
-
-
Save adolfont/0017648a1ef12efe68a5b349fd14fcf8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule LogicaClassicaProposicional do | |
def nao(:v), do: :f | |
def nao(:f), do: :v | |
def e(:v,:v), do: :v | |
def e(:v,:f), do: :f | |
def e(:f,:v), do: :f | |
def e(:f,:f), do: :f | |
end | |
alias LogicaClassicaProposicional, as: LCP | |
IO.inspect LCP.nao(:f) | |
IO.inspect LCP.nao(:v) | |
IO.inspect LCP.e(:v,:v) | |
IO.inspect LCP.e(:v,:f) | |
IO.inspect LCP.e(:f,:v) | |
IO.inspect LCP.e(:f,:f) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment