math.sty 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. % Style helpers for use in Math M413
  2. \usepackage[leqno]{amsmath}
  3. \usepackage{amsfonts}
  4. \usepackage{amssymb}
  5. \usepackage{amsthm}
  6. \usepackage{latexsym}
  7. \numberwithin{equation}{section}
  8. \DeclareMathOperator{\suchthat}{s.t.}
  9. \DeclareMathOperator{\st}{\;|\;}
  10. \DeclareMathOperator{\lub}{lub}
  11. \DeclareMathOperator{\glb}{glb}
  12. \DeclareMathOperator{\C}{C}
  13. \DeclareMathOperator{\Rl}{R_L}
  14. \DeclareMathOperator{\Rm}{R_M}
  15. \DeclareMathOperator{\Poly}{\mathcal{P}}
  16. \DeclareMathOperator{\NPoly}{\mathcal{NP}}
  17. \DeclareMathOperator{\outdegree}{out-degree}
  18. \DeclareMathOperator{\indegree}{in-degree}
  19. % Abbreviations for Commonly used sets
  20. \newcommand{\field}[1]{\mathbb{#1}}
  21. \newcommand{\Q}{\field{Q}} % Rational numbers
  22. \newcommand{\N}{\field{N}} % Natural numbers
  23. \newcommand{\R}{\field{R}} % Real numbers
  24. \newcommand{\Z}{\field{Z}} % Integers
  25. \newcommand{\Zp}{\field{Z}^+} % Positive Integers
  26. % Theorem declarations
  27. \theoremstyle{plain}
  28. \newtheorem{theorem}{Theorem}[section]
  29. \newtheorem{lemma}{Lemma}[section]
  30. \newtheorem{correllary}{Correllary}[section]
  31. \newtheorem{proposition}{Proposition}[section]
  32. \theoremstyle{definition}
  33. \newtheorem{definition}{Definition}[section]
  34. \newtheorem{example}{Example}[section]
  35. \theoremstyle{remark}
  36. \newtheorem*{remark}{Remark}
  37. \newtheorem*{note}{Note}
  38. \newtheorem{case}{Case}
  39. % Meaningful abbreviations, etc
  40. \newcommand{\onlyif}{\Rightarrow}
  41. \newcommand{\thus}{\Longrightarrow}
  42. \newcommand{\contradicts}{\rightarrow\leftarrow}
  43. \newcommand{\Union}{\bigcup}
  44. \newcommand{\union}{\cup}
  45. \newcommand{\Intersect}{\bigcap}
  46. \newcommand{\intersect}{\cap}
  47. \newcommand{\setdiff}{\setminus}
  48. \newcommand{\divides}{|}
  49. \newcommand{\Land}{\;\bigwedge\;}
  50. \newcommand{\Lor}{\;\bigvee\;}
  51. \newcommand{\floor}[1]{\lfloor#1\rfloor}
  52. \newcommand{\inverse}[1]{\ensuremath\frac{1}{#1}}
  53. \newcommand{\abs}[1]{\ensuremath \lvert#1\rvert}
  54. \newcommand{\norm}[1]{\ensuremath \lVert#1\rVert}
  55. \newcommand{\inner}[2]{\ensuremath #1 \cdot #2}
  56. \newcommand{\cross}{\times}
  57. \newcommand{\setcomplement}[1]{\overline{#1}}
  58. \newcommand{\emptystring}{\epsilon}
  59. \newcommand{\concat}[2]{#1 \cdot #2}
  60. \newcommand{\pair}[2]{\langle #1, #2 \rangle}
  61. \newcommand{\closure}[1]{#1^*}
  62. \newcommand{\strlen}[1]{\abs{#1}}
  63. \newcommand{\produce}{\rightarrow}
  64. \newcommand{\derive}{\Rightarrow}
  65. \newcommand{\derives}{\stackrel{*}{\Rightarrow}}