Update README.md
Browse files
README.md
CHANGED
@@ -24,6 +24,90 @@ Training Details
|
|
24 |
β’ Epochs: 15
|
25 |
β’ Batch Size: 2
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
# Usage
|
29 |
|
|
|
24 |
β’ Epochs: 15
|
25 |
β’ Batch Size: 2
|
26 |
|
27 |
+
# Example Usage
|
28 |
+
|
29 |
+
For the following natural language argument:
|
30 |
+
|
31 |
+
Eating a balanced diet and exercising regularly are key to maintaining good health. If you maintain good health, you'll have more energy throughout the day. John has been eating a balanced diet and exercising regularly for the past few months. Therefore, it's likely that John now has more energy throughout his day.
|
32 |
+
|
33 |
+
This model was able to accurately break down the argument into its premises and conclusion, and give a complete proof in propositional logic form, citing lines and inference rules:
|
34 |
+
|
35 |
+
Premise 1: If someone eats a balanced diet and exercises regularly, they will maintain good health. Premise 2: John eats a balanced diet and exercises regularly. Conclusion: Therefore, John has more energy throughout his day.
|
36 |
+
|
37 |
+
Natural language proof: If a person eats a balanced diet and exercises regularly, they will maintain good health. We know that John eats a balanced diet and exercises regularly. Therefore, we can conclude that John maintains good health. From this, we can further deduce that John has more energy throughout his day. Thus, we can conclude that John has more energy throughout his day.
|
38 |
+
I will use the following mapping for the premises:
|
39 |
+
The letter 'a' represents the premise 'A person eats a balanced diet'.
|
40 |
+
The letter 'b' represents the premise 'A person exercises regularly'.
|
41 |
+
The letter 'c' represents the premise 'A person maintains good health'.
|
42 |
+
The letter 'd' represents the premise 'A person has more energy throughout his/her day'.
|
43 |
+
|
44 |
+
Propositional logic proof:
|
45 |
+
1. Original Premise: (a β§ b) β c
|
46 |
+
2. Original Premise: a β§ b
|
47 |
+
3. Derived Step: c (From 1 and 2, Modus Ponens)
|
48 |
+
4. Original Premise: c β d
|
49 |
+
5. Conclusion: d (From 3 and 4, Modus Ponens)
|
50 |
+
|
51 |
+
|
52 |
+
For the same prompt, here is how Llama 3.1 8b Instruct performed:
|
53 |
+
|
54 |
+
The argument can be broken down as follows:
|
55 |
+
|
56 |
+
Premise 1: EBD β§ ER β G (If you eat a balanced diet and exercise regularly, you'll maintain good health.)
|
57 |
+
Premise 2: G β ME (If you maintain good health, you'll have more energy throughout the day.)
|
58 |
+
Premise 3: EBD β§ ER (John has been eating a balanced diet and exercising regularly for the past few months.)
|
59 |
+
|
60 |
+
Conclusion: β΄ MEL (It's likely that John now has more energy throughout his day.)
|
61 |
+
|
62 |
+
Here is the full proof in propositional logic form:
|
63 |
+
|
64 |
+
1. EBD β§ ER β G
|
65 |
+
2. G β ME
|
66 |
+
3. EBD β§ ER
|
67 |
+
4. β’ (EBD β§ ER) β§ (G β ME)
|
68 |
+
5. β’ ((EBD β§ ER) β G) β§ (G β ME)
|
69 |
+
6. β’ (EBD β§ ER) β (G β ME)
|
70 |
+
7. β’ (EBD β§ ER) β ((EBD β§ ER) β ME)
|
71 |
+
8. β’ ((EBD β§ ER) β ME)
|
72 |
+
|
73 |
+
The final answer is β΄ MEL, or "It's likely that John now has more energy throughout his day."
|
74 |
+
|
75 |
+
And here is how Claude 3.5 Sonnet performed:
|
76 |
+
|
77 |
+
Premises:
|
78 |
+
P1: Eating a balanced diet and exercising regularly are key to maintaining good health.
|
79 |
+
P2: If you maintain good health, you'll have more energy throughout the day.
|
80 |
+
P3: John has been eating a balanced diet and exercising regularly for the past few months.
|
81 |
+
Conclusion:
|
82 |
+
C: It's likely that John now has more energy throughout his day.
|
83 |
+
Mapping of premises to letters for propositional logic:
|
84 |
+
A: Eating a balanced diet and exercising regularly
|
85 |
+
B: Maintaining good health
|
86 |
+
C: Having more energy throughout the day
|
87 |
+
J: John has been eating a balanced diet and exercising regularly
|
88 |
+
Natural Language Proof:
|
89 |
+
|
90 |
+
Eating a balanced diet and exercising regularly are key to maintaining good health. (Premise 1)
|
91 |
+
If you maintain good health, you'll have more energy throughout the day. (Premise 2)
|
92 |
+
John has been eating a balanced diet and exercising regularly for the past few months. (Premise 3)
|
93 |
+
Since John has been eating a balanced diet and exercising regularly, he is likely maintaining good health. (From 1 and 3)
|
94 |
+
Since John is likely maintaining good health, it's likely he has more energy throughout the day. (From 2 and 4)
|
95 |
+
Therefore, it's likely that John now has more energy throughout his day. (Conclusion)
|
96 |
+
|
97 |
+
Propositional Logic Proof:
|
98 |
+
|
99 |
+
A β B (Premise 1)
|
100 |
+
B β C (Premise 2)
|
101 |
+
J (Premise 3)
|
102 |
+
J β A (Definition of J)
|
103 |
+
J β§ (J β A) (Conjunction of 3 and 4)
|
104 |
+
A (Modus Ponens on 4 and 5)
|
105 |
+
A β§ (A β B) (Conjunction of 1 and 6)
|
106 |
+
B (Modus Ponens on 1 and 7)
|
107 |
+
B β§ (B β C) (Conjunction of 2 and 8)
|
108 |
+
C (Modus Ponens on 2 and 9)
|
109 |
+
|
110 |
+
Therefore, C (John likely has more energy throughout his day)
|
111 |
|
112 |
# Usage
|
113 |
|