-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathassumptionsofphysics.sty
More file actions
207 lines (163 loc) · 5.76 KB
/
assumptionsofphysics.sty
File metadata and controls
207 lines (163 loc) · 5.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{assumptionsofphysics}[2021/03/31 Macros and commands for the Assumptions of Physics project]
% Math packages
\RequirePackage{amsthm}
\RequirePackage{amsmath}
\RequirePackage{amssymb}
% Save lrconrner from amsmath
\let\amslrcorner\lrcorner
% For more complicated table formatting
\RequirePackage{multirow}
\RequirePackage{tabularx}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
% Remove line spaces between items of enumerate and itemize
\RequirePackage{enumitem}
\setlist{noitemsep}
% Adds double bracket symbols
\RequirePackage{stmaryrd}
% Allows to create negation symbols
\RequirePackage{MnSymbol}
% restore lrconrner from amsmath
\let\lrcorner\amslrcorner
% Redeclaration for section numbering
% -----------------------------------
\DeclareOption{sectionnum}{
% Usual (decimal) numbering
\renewcommand{\thesection}{\arabic{section}}
\renewcommand{\thesubsection}{\thesection.\arabic{subsection}}
\renewcommand{\thesubsubsection}{\thesubsection.\arabic{subsubsection}}
% Fix references
\makeatletter
\renewcommand{\p@subsection}{}
\renewcommand{\p@subsubsection}{}
\makeatother
}
\ProcessOptions\relax
% Theorem styles
% --------------
\newtheorem{assump}{Assumption}
\renewcommand*{\theassump}{\Roman{assump}}
\newtheorem{postulate}{Postulate}
\renewcommand*{\thepostulate}{\Roman{postulate}}
\newtheorem{axiom}[equation]{Axiom}
\newtheorem{defn}[equation]{Definition}
\newtheorem{ext}[equation]{Extension}
\newtheorem{lemma}[equation]{Lemma}
\newtheorem{prop}[equation]{Proposition}
\newtheorem{coro}[equation]{Corollary}
\newtheorem{thrm}[equation]{Theorem}
\newtheorem{conj}[equation]{Conjecture}
\newtheorem{insightStyle}[equation]{Insight}
\newtheorem{desid}[equation]{Desideratum}
\makeatletter
\newenvironment{insight}
{\insightStyle}
{\endinsightStyle\@endpetrue}
\makeatother
\newenvironment{remark}{\emph{Remark}.}{}
\newenvironment{rationale}{\emph{Rationale}.}{\qed}
\newenvironment{justification}{\emph{Justification}.}{\qed}
\newenvironment{example}[1][]{\refstepcounter{equation}\par\medskip\noindent\emph{Example \theequation}\ifx\newenvironment#1\newenvironment\else~(#1)\fi.}{\medskip}
\renewenvironment{proof}{\emph{Proof}.}{\qed}
\renewenvironment{check}{\emph{Consistency check}.}{\qed}
% General math symbols
% --------------------
\newcommand{\eqtext}[2][4.5in]{\parbox{#1}{#2}} % Equation box for Reverse Physics
% General math symbols
% --------------------
\DeclareMathOperator{\Id}{Id} % Identity function
\DeclareMathOperator{\trace}{tr} % Trace
\DeclareMathOperator{\nimplies}{\not\implies}
\newcommand{\indicator}[1][A] {\mathbf{1}_{#1}} % Indicator function
% LOGIC symbols
% -------------
% Boolean symbols and algebra
\def\Bool{\mathbb{B}}
\def\TRUE{\textup{\textsc{true}}}
\def\FALSE{\textup{\textsc{false}}}
\def\AND{\wedge}
\def\bigAND{\bigwedge}
\def\OR{\vee}
\def\bigOR{\bigvee}
\def\NOT{\neg}
% Logical context and related symbols
\def\logCtx{\mathcal{S}}
\def\vstmtSet{\mathcal{S}_\textsf{v}}
\def\dstmtSet{\mathcal{S}_\textsf{d}}
\newcommand{\pAss}[1][\mathcal{S}] {\mathcal{A}_{#1}}
\DeclareMathOperator{\truth}{truth}
% Experimental test symbols
\newcommand{\exptSet}{\mathcal{E}}
\newcommand{\expt}[1][e] {\mathsf{#1}}
\DeclareMathOperator{\result}{result}
\def\SUCCESS{\textsc{success}}
\def\FAILURE{\textsc{failure}}
\def\UNDEF{\textsc{undefined}}
% Statements
\def\certainty{\top} % Certainty
\def\impossibility{\bot} % Impossibility
\newcommand{\stmt}[1][s] {\mathsf{#1}} % Statement
\newcommand{\tstmt}[1][s] {\bar{\mathsf{#1}}} % Theoretical statement
\newcommand{\statement}[1] {\emph{``#1"}} % Sentence statements
% Relationships between statements
\def\comp{\doublefrown} % Compatibility
\def\ncomp{\ndoublefrown}
\def\narrower{\preccurlyeq} % Narrowness
\def\nnarrower{\npreccurlyeq}
\def\snarrower{\prec}
\def\nsnarrower{\nprec}
\def\broader{\succcurlyeq} % Broadness
\def\nbroader{\nsucccurlyeq}
\def\sbroader{\succ}
\def\nsbroader{\nsucc}
\def\indep{\upmodels} % Independence
\def\nindep{\nupmodels}
% Experimental domains and related symbols
\newcommand{\edomain}[1][D] {\mathcal{#1}} % Experimental domain
\newcommand{\tdomain}[1][D] {\bar{\mathcal{#1}}} % Theoretical domain
\newcommand{\basis}[1][B] {\mathcal{#1}} % Basis
\newcommand{\resPoss}[1][x] {\mathring{#1}} % Residual possibility
\newcommand{\estPoss}[1][x] {\dot{#1}} % Established possibility
\DeclareMathOperator{\ver}{ver} % Verifiable part
\DeclareMathOperator{\fal}{fal} % Falsifiable part
\DeclareMathOperator{\und}{und} % Undecidable part
% Experimental relationships symbols
% ----------------------------------
\newcommand{\erel}[1][r] {#1} % Experimental relationship
% Properties and quantities
% ------------------------
\newcommand{\refStmt}[1][r]{\textbf{#1}} % reference
% Topology symbols
% ----------------
\DeclareMathOperator{\interior}{int} % Set interior
\DeclareMathOperator{\exterior}{ext} % Set exterior
% Linear algebra symbols
% ----------------------
\DeclareMathOperator{\tr}{tr}
% Special functions
% ----------------------
\DeclareMathOperator{\erf}{erf}
% Quantum mechanics
% ----------------------
\def\>{\rangle}
\def\<{\langle}
% Informational granularity symbols
% ---------------------------------
% Level of detail
\def\eqgran{\doteq} % Equigranularity
\def\finer{\leqdot} % Fineneess
\def\sfiner{\lessdot}
\def\nfiner{\nleqdot}
\def\nsfiner{\nlessdot}
\def\coarser{\geqdot} % Coarseness
\def\scoarser{\gtrdot}
\def\ncoarser{\ngeqdot}
\def\nscoarser{\ngtrdot}
% Unit defined ordering
\def\lequ{\leq_{\stmt[u]}}
\def\gequ{\geq_{\stmt[u]}}
\newcommand{\equ}[1][u] {=_{\stmt[#1]}}
\def\ltu{<_{\stmt[u]}}
\def\nequ{\neq_{\stmt[u]}}