Skip to content

Commit fe0e8ba

Browse files
committed
Better comments in the config file
1 parent 0de8446 commit fe0e8ba

File tree

1 file changed

+44
-31
lines changed

1 file changed

+44
-31
lines changed

open-logic-config.sty

Lines changed: 44 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@
3535

3636
\olgreekformulas
3737

38-
% Greek symbols: prefer varphi and varepsilon
38+
% We prefer `\varphi` to `\phi` and `\varepsilon` to `\epsilon`. If
39+
% you don't, you can say
40+
% ```
41+
% \let\phi\oldphi
42+
% \let\epsilon\oldepsilon
43+
% ```
3944

4045
\let\oldphi\phi
4146
\let\phi\varphi
@@ -57,7 +62,7 @@
5762
\DeclareDocumentMacro \True {\ensuremath{\mathbb{T}}}
5863
\DeclareDocumentMacro \False {\ensuremath{\mathbb{F}}}
5964

60-
% Other truth values
65+
% For many-valued logic we have `\Indet` ($\mathbb{I}$) and `Undef' ($\mathbb{U}$).
6166

6267
\DeclareDocumentMacro \Indet {\ensuremath{\mathbb{I}}}
6368
\DeclareDocumentMacro \Undef {\ensuremath{\mathbb{U}}}
@@ -73,14 +78,16 @@
7378
\DeclareDocumentMacro \ltrue {\top}
7479

7580
% - Negation is `\lnot` and defaults to $\lnot$. To use a different
76-
% symbol (e.g., tilde), use the following line.
77-
78-
% `\DeclareDocumentMacro \lnot {\mathord{\sim}}`
79-
80-
% - Conjunction is `\land` and deaults to $\land$. to use ampersand,
81-
% uncomment the following line
81+
% symbol (e.g., tilde), include the following code:
82+
% ```
83+
% \DeclareDocumentMacro \lnot {\mathord{\sim}}
84+
% ```
8285

83-
% `\DeclareDocumentMacro \land {\mathbin{\&}}`
86+
% - Conjunction is `\land` and deaults to $\land$. To use ampersand,
87+
% include the following code:
88+
% ```
89+
% \DeclareDocumentMacro \land {\mathbin{\&}}
90+
% ```
8491

8592
% - Disjunction is `\lor` and defaults to $\lor$.
8693

@@ -96,11 +103,11 @@
96103
\DeclareDocumentMacro \liff {\mathbin{\leftrightarrow}}
97104

98105
% - The conditional `\cif` and defaults to `\boxright` which produces
99-
% - Lewis's box-arrow symbol.
106+
% Lewis's box-arrow symbol.
100107

101108
\DeclareDocumentMacro \cif {\boxright}
102109

103-
% - The strict conditional `\strictif`
110+
% - The strict conditional `\strictif` defaults to `\fishhookright`
104111

105112
\DeclareDocumentMacro \strictif {\fishhookright}
106113

@@ -170,7 +177,8 @@
170177

171178
\DeclareDocumentMacro \nSequent {\mid}
172179

173-
% The sequent symbol in proofs displays as the above sequent symbol.
180+
% - The sequent symbol in proofs displays as the above sequent symbol.
181+
% (We use the `bussproofs` package to typeset proofs.)
174182

175183
\DeclareDocumentMacro \fCenter {\ensuremath{\,\Sequent\,}}
176184

@@ -220,7 +228,7 @@
220228
\DeclareDocumentMacro \FalseCl {\ensuremath{\lfalse_C}}
221229

222230
% - `\Discharge{!A}{n}`: typesets a discharged assumption with label
223-
% $n$, e.g., $[!A]^n$.
231+
% $n$, e.g., $[\phi]^n$.
224232

225233
\DeclareDocumentCommand \Discharge { m m }{[#1]^{#2}}
226234

@@ -302,7 +310,7 @@
302310

303311
% ### Substitution
304312

305-
% -`\subst{t}{x}`: typeset the substitution notation
313+
% - `\subst{t}{x}`: typeset the substitution notation
306314

307315
\DeclareDocumentCommand \subst { m m } {#1/#2}
308316

@@ -349,7 +357,7 @@
349357

350358
% ### The derivability relation
351359

352-
% `\Proves[L]` is used to create the symbol for the derivability
360+
% - `\Proves[L]` is used to create the symbol for the derivability
353361
% relation, `\Proves/` for the negation. By default this creates
354362
% $\vdash$; e.g., `\Gamma \Proves !A` yields $\Gamma \vdash
355363
% \varphi$. An optional argument may be used for the calculus or logic
@@ -376,7 +384,7 @@
376384

377385
% ### The semantic consequence relation relation
378386

379-
% `\Entails` is the semantic counterpart of `\Proves` and defaults to
387+
% - `\Entails` is the semantic counterpart of `\Proves` and defaults to
380388
% $\vDash$. It also takes an optional `/` for $\nvDash$ and an
381389
% optional argument for a subscript.
382390

@@ -541,7 +549,7 @@
541549

542550
\DeclareDocumentCommand \Expan { m m } {(\Struct{#1}, #2)}
543551

544-
% `\nssucc`, `\nsplus`, `\nstimes`, `\nsless`: non-standard
552+
% - `\nssucc`, `\nsplus`, `\nstimes`, `\nsless`: non-standard
545553
% arithmetical operations
546554

547555
\DeclareDocumentMacro \nszero {\mathbf{z}}
@@ -629,6 +637,13 @@
629637
{ \varphi_{#1}^{#2} }
630638
}
631639

640+
% - `\fdefined`, `\fundefined`: postfix for defined, undefined
641+
% functions; LaTeX code for this is under ``Special sets and
642+
% mathematical symbols''
643+
644+
% Lambda calculus
645+
% ---------------
646+
632647
% - `\redone`: one-step reduction
633648

634649
\DeclareDocumentCommand \redone { o } {
@@ -736,22 +751,19 @@
736751

737752
\DeclareDocumentCommand \scode { m } {\fn{c}_{#1}}
738753

739-
% - `\Gn{!A}`: G\"odel number of a string of symbols
754+
% - `\Gn{!A}`: Gödel number of a string of symbols
740755

741756
\DeclareDocumentCommand \Gn { m } {{^{\reflectbox{\tiny\#}}}{#1}{^{\mbox{\tiny\#}}}}
742757

743758
% Modal Logic
744759
% -----------
745760

746-
% Modal logic
747-
% ===========
748-
749761
% - `\mModel{M}` - modal structures; default: set first token in
750-
% Fraktur
762+
% arguemnt in Fraktur
751763

752764
\DeclareDocumentCommand \mModel { m }{\applytofirst{\mathfrak}{#1}}
753765

754-
% `\mSat[/]{M}{!A}[w]`, the relation of being satisfied in a
766+
% - `\mSat[/]{M}{!A}[w]`, the relation of being satisfied in a
755767
% model (at a world), is provided as the command
756768
% `\mSat` with two mandatory arguments (the model and the formula)
757769
% and one optional argument (the world). Use `\mSat/` to create
@@ -839,16 +851,15 @@
839851
\DeclareDocumentCommand \Setabs { m m }{\{ #1 : #2 \}}
840852

841853
% - Fregean extensions: Use `\fregeext{x}{!A(x)}` to produce
842-
% $\epsilon x\, !A(x)$.
854+
% $\epsilon x\, \varphi(x)$.
843855

844856
\DeclareDocumentCommand \fregeext { m m }{\oldepsilon #1 \, #2 }
845857

846858
% - Fregean number: Use `\fregenum{x}{!A(x)}` to produce
847-
% $\# x\, !A(x)$.
859+
% $\# x\, \varphi(x)$.
848860

849861
\DeclareDocumentCommand \fregenum { m m }{\# #1 \, #2 }
850862

851-
852863
% - `\Pow{X}`: Power set, produces $\wp(X)$
853864

854865
\DeclareDocumentCommand \Pow { m }{\wp(#1)}
@@ -1015,7 +1026,10 @@
10151026
% - `\Struct{M}` - First-order structures; by default, the first token
10161027
% in Fraktur
10171028

1018-
% `\applytofirst` will apply #1 to #2 after expanding #2 once.
1029+
% - `\applytofirst` will apply #1 to #2 after expanding #2 once. We
1030+
% use it to apply formatting to only the first token in the argument
1031+
% so that, e.g., `\Struct{M_k}` produces $\mathfrak{M}_k$ and not
1032+
% $\mathfrak{M_k }$.
10191033

10201034
\def\applytofirst#1#2{{\expandafter#1#2}}
10211035

@@ -1031,7 +1045,7 @@
10311045
\DeclareDocumentCommand \Log { m o }{\ensuremath{\mathbf{#1}
10321046
\IfNoValueTF {#2}{}{_{#2}}}}
10331047

1034-
% - Some logics
1048+
% - We include names for some specific logics
10351049

10361050
\DeclareDocumentMacro {\LogCL} {\Log{C}}
10371051
\DeclareDocumentMacro {\LogIL} {\Log{I}}
@@ -1043,7 +1057,6 @@
10431057
\DeclareDocumentMacro {\LogRM} {\Log{RM}}
10441058
\DeclareDocumentMacro {\LogHal} {\Log{Hal}}
10451059

1046-
10471060
% - `\Obj` - Object-language symbols; default: set entirely in
10481061
% sans-serif italics
10491062

@@ -1143,7 +1156,7 @@
11431156
}
11441157

11451158
% Additional set theory stuff
1146-
% ================
1159+
% ---------------------------
11471160
% From Tim Button's Open Set Theory
11481161

11491162
\DeclareDocumentMacro \unitline {\text{L}}
@@ -1210,7 +1223,7 @@
12101223
\newcommand\cardfont[1]{\mathfrak{#1}}
12111224

12121225
% Miscellaneous
1213-
% =============
1226+
% -------------
12141227

12151228
% `\fact` -- factorial function
12161229

0 commit comments

Comments
 (0)