Moderators: kiore, Blip, The_Metatron
This is the wrong usage. The argument to ATOM should be a symbol in the alphabet, not a boolean value. The alphabet can be anything (I choose ints above), but it would be traditional to use characters. So if you want propositional variables a, b, c, d and e, you could define:SpeedOfSound wrote:
- Code: Select all
val A = ATOM true;
val B = ATOM false;
val C = ATOM false;
val D = ATOM true;
val E = ATOM true;
See? This is one world. There are 32 possible worlds given that we have no constraints. Very simple.
val a = ATOM #"a"
val b = ATOM #"b"
val c = ATOM #"c"
val d = ATOM #"d"
val e = ATOM #"e"
eval : (char -> bool) -> char term -> bool
"eval" takes two arguments. The first argument is a function, which is the environment in which you wish to evaluate the term given as the second argument.SpeedOfSound wrote:- eval e2;
stdIn:5.1-5.8 Error: operator and operand don't agree [tycon mismatch]
operator domain: 'Z -> bool
operand: bool term
in expression:
eval e2
-
Did I do some dumb shit here?
- eval (fn x => x) e2
- eval (fn c => c = #"a" orelse c = #"d" orelse c = #"e")
datatype term = ATOM of string | NEG of term | IMP of term * term
Feel free to throw me any other ML questions you have while doing the course, either by PM or in the maths forum.SpeedOfSound wrote:Yes. Very new to SML. Just a few weeks ago that I even heard of it. Let me play with some stuff here and catch up.
I see what you are doing and it is more general than what I tired to use it for. But I need to go back to my course and find out how I got lost. Battling a bout of depression right now too so baby steps. That usually lasts for three days.
I had the Y-combinator as my signature for a bit.SpeedOfSound wrote:Still working on it. SML. Holy Fucking Hell! I'm in love.
http://confreaks.com/videos/1287-rubyco ... rogramming
Thought you might like this foray into ruby and lambda calculus.
Little Idiot wrote:Is this thread a discussion on existence, or MSL?
Dont want to waste my time if the latter, as I dont talk that lingo.
(edit to add - not being facetious, its a serious question - I dont want to rerail the derail if its drifted onto MSL)
Yes, hamsters exist.
(As does the Large Hadron Collider, although I saw a hamster, but only saw photos of the (alleged) LHC)
Little Idiot wrote:Does the world exist?
Yes.
But this does not mean I am a physicalist or that the world is observer-independent material object 'out there' in space.
To me, the world exists within the context of my experience of it, as I assume it exists in your experience. This 'experienced world' which is forced upon me in the format I know as experience is a construction from many sources, including but not limited to my senses. Because the construction is a 'mental construction' I describe the world as mental.
One does not have to ascribe an observer independence upon the world to allow it to exist - and idealism does not need to declare 'the world does not exist' - we just provide the context (mental experience) in which the world is said to exist.
Little Idiot wrote:Ok, then if I may pass on the side, skip the starter and head straight into the main - isnt it simply a case of the word existence being context specific?
If I say 'Peter Pan can fly, but Captain Hook cant' I mean they exist with constant characteristics in the context of the story.
So, then in the context of that story, a child would be quite correct (and only in that context) if I started talking about Captain Hook flying. At least I'd have to justify how and why he could do so - where as no need to justify myself if it was Peter Pan flying.
If I say the integer '3' exists, then this is different to saying the integer 3.1 exists, as 3.1 is obviously not an integer.
I dont mean I can get a sack of 3 and bring it home.
Context specific.
If I say trees exist, the context is general, if I say the mango tree in my back garden, I am being specific about an instance of a tree - context specific.
Little Idiot wrote:Based on this, you cant give a definition of the word exist without relating a context for the word. Changing the context changes the 'definition' of the word because its a context specific word, like many others.
But that doesn't mean we cant use it - in general or philosophy - just gotta be careful and clear about our context.
Little Idiot wrote:Does the world exist?
Yes.
But this does not mean I am a physicalist or that the world is observer-independent material object 'out there' in space.
To me, the world exists within the context of my experience of it, as I assume it exists in your experience. This 'experienced world' which is forced upon me in the format I know as experience is a construction from many sources, including but not limited to my senses. Because the construction is a 'mental construction' I describe the world as mental.
One does not have to ascribe an observer independence upon the world to allow it to exist - and idealism does not need to declare 'the world does not exist' - we just provide the context (mental experience) in which the world is said to exist.
Destroyer wrote:Little Idiot wrote:Does the world exist?
Yes.
But this does not mean I am a physicalist or that the world is observer-independent material object 'out there' in space.
To me, the world exists within the context of my experience of it, as I assume it exists in your experience. This 'experienced world' which is forced upon me in the format I know as experience is a construction from many sources, including but not limited to my senses. Because the construction is a 'mental construction' I describe the world as mental.
One does not have to ascribe an observer independence upon the world to allow it to exist - and idealism does not need to declare 'the world does not exist' - we just provide the context (mental experience) in which the world is said to exist.
My bold.
But, if the context in which the world is said to exist is ‘mental’, then how does this differ from the context in which the world is said to be physical? If the context ‘mental’ implies that the observer is in some fundamental way distinct in nature from the observed material phenomenon, then how is that possible? How can that which is assumed to be distinct in nature from the system have any possible affiliation or means of contact with the system?
Users viewing this topic: No registered users and 1 guest