Contents

The AMS testmath.tex

Showcase

The AMS testmath.tex

The sample paper of the amsmath package, unchanged, with its own preamble, Computer Modern fonts, cross-references and a footnote. The file is a complete document, so it is compiled as one. How closely the browser follows LuaTeX’s own PDF of it, glyph by glyph, is in Accuracy

This page shows it with one line of source, plus a one-line preamble that adds microtype:

{{< latex file="testmath.tex" preamble="microtype" />}}
% latex-preambles/microtype.tex
\usepackage{microtype}

Sample Paper for the amsmath Package

File name: testmath.tex

American Mathematical Society

Version 2.0a, 2023/08/24

1 Introduction

This paper contains examples of various features from AMS-LA TEX.

2 Enumeration of Hamiltonian paths in a graph

Letbe the adjacency matrix of graph. The corresponding Kirchhoff matrixis obtained fromby replacing ineach diagonal entry by the degree of its corresponding vertex; i.e., theth diagonal entry is identified with the degree of theth vertex. It is well known that

whereis theth principal submatrix of.

\det\mathbf{K}(i|i)=\text{ the number of spanning trees of $G$},

Letbe the set of graphs obtained fromby attaching edgeto each spanning tree of. Denote by. It is obvious that the collection of Hamiltonian cycles is a subset of. Note that the cardinality ofis. Let.

$\wh X=\{\hat x_1,\dots,\hat x_n\}$

Define multiplication for the elements ofby

Letand. Then the number of Hamiltonian cyclesis given by the relation [8]

The task here is to express (3) in a form free of any,. The result also leads to the resolution of enumeration of Hamiltonian paths in a graph.

It is well known that the enumeration of Hamiltonian cycles and paths in a complete graphand in a complete bipartite graphcan only be found from first combinatorial principles [4]. One wonders if there exists a formula which can be used very efficiently to produceand. Recently, using Lagrangian methods, Goulden and Jackson have shown thatcan be expressed in terms of the determinant and permanent of the adjacency matrix [3]. However, the formula of Goulden and Jackson determines neithernoreffectively. In this paper, using an algebraic method, we parametrize the adjacency matrix. The resulting formula also involves the determinant and permanent, but it can easily be applied toand. In addition, we eliminate the permanent fromand show thatcan be represented by a determinantal function of multivariables, each variable with domain. Furthermore, we show thatcan be written by number of spanning trees of subgraphs. Finally, we apply the formulas to a complete multigraph.

The conditions,, are not required in this paper. All formulas can be extended to a digraph simply by multiplyingby 2.

3 Main Theorem

Notation. Forandwe writeifand.

\begin{notation} For $p,q\in P$ and $n\in\omega$

...

\end{notation}

Letbe anmatrix. Let. Using the properties of (2), it is readily seen that

Lemma 3.1.

whereis the permanent of.

Let. Define multiplication for the elements ofby

Then, it follows that

Lemma 3.2.

Note that all basic properties of determinants are direct consequences of Lemma 3.2. Write

where

Let. By (6) and (7), it is straightforward to show the following result:

Theorem 3.3.

whereandis the principal submatrix obtained fromby deleting itsrows and columns.

Remark 3.1. Letbe anmatrix. The conventionhas been used in (9) and hereafter.

Before proceeding with our discussion, we pause to note that Theorem 3.3 yields immediately a fundamental formula which can be used to compute the coefficients of a characteristic polynomial [9]:

Corollary 3.4. Write. Then

Let

\begin{pmatrix} D_1t&-a_{12}t_2&\dots&-a_{1n}t_n\\

-a_{21}t_1&D_2t&\dots&-a_{2n}t_n\\

\hdotsfor[2]{4}\\

-a_{n1}t_1&-a_{n2}t_2&\dots&D_nt\end{pmatrix}

where

Set

Then

whereis theth principal submatrix of.

Theorem 3.3 leads to

Note that

Let. Lemma 3.1 yields

\begin{multline}

\biggl(\sum_{\,i\in\mathbf{n}}a_{l _i}x_i\biggr)

\det\mathbf{K}(t=1,x_1,\dots,x_n;l |l )\\

=\biggl(\prod_{\,i\in\mathbf{n}}\hat x_i\biggr)

\sum_{I\subseteq\mathbf{n}-\{l \}}

(-1)^{\envert{I}}\per\mathbf{A}^{(\lambda)}(I|I)

\det\mathbf{A}^{(\lambda)}

(\overline I\cup\{l \}|\overline I\cup\{l \}).

\label{sum-ali}

\end{multline}

By (3), (6), and (7), we have

Proposition 3.5.

where

4 Application

We consider here the applications of Theorems 5.1 and 5.2 to a complete multipartite graph. It can be shown that the number of spanning trees ofmay be written

where

It follows from Theorems 5.1 and 5.2 that

... \binom{n_i}{l _i}\\

and

The enumeration ofin agraph can also be carried out by Theorem 7.2 or 7.3 together with the algebraic method of (2). Some elegant representations may be obtained. For example,in agraph may be written

5 Secret Key Exchanges

Modern cryptography is fundamentally concerned with the problem of secure private communication. A Secret Key Exchange is a protocol where Alice and Bob, having no secret information in common to start, are able to agree on a common secret key, conversing over a public channel. The notion of a Secret Key Exchange protocol was first introduced in the seminal paper of Diffie and Hellman [1]. [1] presented a concrete implementation of a Secret Key Exchange protocol, dependent on a specific assumption (a variant on the discrete log), specially tailored to yield Secret Key Exchange. Secret Key Exchange is of course trivial if trapdoor permutations exist. However, there is no known implementation based on a weaker general assumption.

The concept of an informationally one-way function was introduced in [5]. We give only an informal definition here:

Definition 5.1. A polynomial time computable functionis informationally one-way if there is no probabilistic polynomial time algorithm which (with probability of the formfor some) returns on inputa random element of.

In the non-uniform setting [5] show that these are not weaker than one-way functions:

Theorem 5.1 ([5] (non-uniform)). The existence of informationally one-way functions implies the existence of one-way functions.

We will stick to the convention introduced above of saying β€œnon-uniform” before the theorem statement when the theorem makes use of non-uniformity. It should be understood that if nothing is said then the result holds for both the uniform and the non-uniform models.

It now follows from Theorem 5.1 that

Theorem 5.2 (non-uniform). Weak SKE implies the existence of a one-way function.

More recently, the polynomial-time, interior point algorithms for linear programming have been extended to the case of convex quadratic programs [11, 13], certain linear complementarity problems [7, 10], and the nonlinear complementarity problem [6]. The connection between these algorithms and the classical Newton method for nonlinear equations is well explained in [7].

6 Review

We begin our discussion with the following definition:

Definition 6.1. A functionis said to be B-differentiable at the pointif (i)is Lipschitz continuous in a neighborhood of, and (ii) there exists a positive homogeneous function, called the B-derivative ofat, such that

The functionis B-differentiable in setif it is B-differentiable at every point in. The B-derivativeis said to be strong if

Lemma 6.1. There exists a smooth functiondefined forsatisfying the following properties:

(i)is bounded above and below by positive constants.

(ii) If, then.

(iii) For allin the domain of,.

(iv) If, then.

Proof. We chooseto be a radial function depending only on. Letbe a suitable smooth function satisfyingfor, andfor. The radial Laplacian

has smooth coefficients for. Therefore, we may apply the existence and uniqueness theory for ordinary differential equations. Simply letbe the solution of the differential equation

with initial conditions given byand.

Next, letbe a finite collection of pairwise disjoint disks, all of which are contained in the unit disk centered at the origin in. We assume that. Suppose thatdenotes the smaller concentric disk. We define a smooth weight functionforby settingwhenandwhenis an element of. It follows from Lemma 6.1 thatsatisfies the properties:

(i)is bounded above and below by positive constants.

(ii)for all, the domain where the functionis defined.

(iii)when.

Letdenote the annulus, and set. The properties (2) and (3) ofmay be summarized as, whereis the characteristic function of.

Suppose thatis a nonnegative real constant. We apply Proposition 3.5 with. If, assume thatis a bounded domain containing the support ofand. A calculation gives

The boundedness, property (1) of, then yields

Letbe the set of blocks ofand let. Ifthenis constant on the blocks of.

Ifthenfor someso that

Thus by MΓΆbius inversion

Thus there is a bijection fromto. In particular.

Next note that. We see this by choosing a basis forconsisting of vectorsdefined by

\[v^{k}_{i}=

\begin{cases} 1 & \text{if $i \in \Lambda_{k}$},\\

0 &\text{otherwise.} \end{cases}

\]

Lemma 6.2. Letbe an arrangement. Then

In order to computerecall the definition offrom Lemma 3.1. Since,. Thus ifthen. Let. Then

Corollary 6.3. Letbe a triple of arrangements. Then

Definition 6.2. Letbe a triple with respect to the hyperplane. Calla separator if.

Corollary 6.4. Letbe a triple with respect to.

(i) Ifis a separator then

and hence

(ii) Ifis not a separator then

and

Proof. It follows from Theorem 5.1 thathas leading term

The conclusion follows by comparing coefficients of the leading terms on both sides of the equation in Corollary 6.3. Ifis a separator thenand there is no contribution from.

The PoincarΓ© polynomial of an arrangement will appear repeatedly in these notes. It will be shown to equal the PoincarΓ© polynomial of the graded algebras which we are going to associate with. It is also the PoincarΓ© polynomial of the complementfor a complex arrangement. Here we prove that the PoincarΓ© polynomial is the chamber counting function for a real arrangement. The complementis a disjoint union of chambers

The number of chambers is determined by the PoincarΓ© polynomial as follows.

Theorem 6.5. Letbe a real arrangement. Then

Proof. We check the properties required in Corollary 6.4: (i) follows from, and (ii) is a consequence of Corollary 3.4.

Figure 1:

Figure 2:

Theorem 6.6. Letbe a protocol for a random pair. If one ofandis a prefix of the other and, then

Proof. We show by induction onthat

The induction hypothesis holds vacuously for. Assume it holds for, in particular. Then one ofandis a prefix of the other which implies that one ofandis a prefix of the other. If theth message is transmitted bythen, by the separate-transmissions property and the induction hypothesis,, hence one ofandis a prefix of the other. By the implicit-termination property, neithernorcan be a proper prefix of the other, hence they must be the same and. If theth message is transmitted bythen, symmetrically,by the induction hypothesis and the separate-transmissions property, and, then,by the implicit-termination property, proving the induction step.

Ifis a protocol for, and,are distinct inputs in, then, by the correct-decision property,.

Equation (25) defined’s ambiguity setto be the set of possiblevalues when. The last corollary implies that for all, the multiset1 of codewordsis prefix free.

1 A multiset allows multiplicity of elements. Hence,is prefix free as a set, but not as a multiset.

7 One-Way Complexity

, the one-way complexity of a random pair, is the number of bitsmust transmit in the worst case whenis not permitted to transmit any feedback messages. Starting with, the support set of, we define, the characteristic hypergraph of, and show that

Letbe a random pair. For eachin, the support set of, Equation (25) definedto be the set of possiblevalues when. The characteristic hypergraphofhasas its vertex set and the hyperedgefor each.

We can now prove a continuity theorem.

Theorem 7.1. Letbe an open set, let, and let

for every. Letbe a Lipschitz continuous function such that, and let. Thenand

In addition, for-almost everythe restriction of the functiontois differentiable atand

Before proving the theorem, we state without proof three elementary remarks which will be useful in the sequel.

Remark 7.1. Letbe a continuous function such thatas. Then

for any function.

Remark 7.2. Letbe a Lipschitz continuous function and assume that

exists for everyand thatis a linear function of. Thenis differentiable at 0.

Remark 7.3. Letbe a linear function, and letbe a function. Then the restriction ofto the range ofis differentiable at 0 if and only ifis differentiable at 0 and

Proof. We begin by showing thatand

whereis the Lipschitz constant of. By (13) and by the approximation result quoted in Β§3, it is possible to find a sequenceconverging toinand such that

The functionsare locally Lipschitz continuous in, and the definition of differential implies thatalmost everywhere in. The lower semicontinuity of the total variation and (13) yield

Since, we have also

therefore. Repeating the same argument for every open set, we get (29) for every, because,are Radon measures. To prove Lemma 6.1, first we observe that

In fact, for everywe have

hence

whenever. By a similar argument, ifis a point such that there exists a tripletsatisfying (14), (15), then

andif. Hence, by (1.8) we get

and Lemma 6.1 is proved.

To prove (31), it is not restrictive to assume that. Moreover, to simplify our notation, from now on we shall assume that. The proof of (31) is divided into two steps. In the first step we prove the statement in the one-dimensional case, using Theorem 5.2. In the second step we achieve the general result using Theorem 7.1.

Step 1

Assume that. Sinceis at most countable, (7) yields that, so that (19) and (21) imply thatis the Radon-NikodΓ½m decomposition ofin absolutely continuous and singular part with respect to. By Theorem 5.2, we have

-almost everywhere in. It is well known (see, for instance, [12, 2.5.16]) that every one-dimensional function of bounded variationhas a unique left continuous representative, i.e., a functionsuch thatalmost everywhere andfor every. These conditions imply

and

Letbe such thatfor everyand assume that the limits in (22) exist. By (23) and (24) we get

for every. Using the Lipschitz condition onwe find

By (29), the functionis continuous and converges to 0 as. Therefore Remark 7.1 and the previous inequality imply

By (22),for every; moreover, applying the same argument to the functions,, we get

and our statement is proved.

Step 2

Let us consider now the general case. Letbe such that, and let. In the following, we shall identifywith, and we shall denote bythe variable ranging inand bythe variable ranging in. By the just proven one-dimensional result, and by Theorem 3.3, we get

for-almost every. We claim that

for-almost every. In fact, by (16) and (18) we get

and (24) follows from (13). By the same argument it is possible to prove that

for-almost every. By (24) and (25) we get

for-almost every, and using again (14), (15) we get

-a.e. in.

Since the functionis strictly positive-almost everywhere, we obtain also

-almost everywhere in.

Finally, since

and since both sides of (33) are zero-almost everywhere on-negligible sets, we conclude that

-a.e. in. Sinceis arbitrary, by Remarks 7.2 and 7.3 the restriction ofto the affine spaceis differentiable atfor-almost everyand (26) holds.

It follows from (13), (14), and (15) that

Let,. Lemma 1 leads to

By (3), (13), and (37), we have the following result:

Theorem 7.2.

where

It is worth noting thatof (39) is similar to the coefficientsof the characteristic polynomial of (10). It is well known in graph theory that the coefficientscan be expressed as a sum over certain subgraphs. It is interesting to see whether,, structural properties of a graph.

We may call (38) a parametric representation of. In computation, the parameterplays very important roles. The choice of the parameter usually depends on the properties of the given graph. For a complete graph, let,. It follows from (39) that

By (38)

For a complete bipartite graph, let,. By (39),

Theorem 7.2 leads to

Now, we consider an asymmetrical approach. Theorem 3.3 leads to

By (3) and (16) we have the following asymmetrical result:

Theorem 7.3.

which reduces to Goulden–Jackson’s formula when[9].

8 Various font features of the amsmath package

8.1 Bold versions of special symbols

In the amsmath package \boldsymbol is used for getting individual bold math symbols and bold Greek lettersβ€”everything in math except for letters of the Latin alphabet, where you’d use \mathbf. For example,

A_\infty + \pi A_0 \sim

\mathbf{A}_{\boldsymbol{\infty}} \boldsymbol{+}

\boldsymbol{\pi} \mathbf{A}_{\boldsymbol{0}}

looks like this:

8.2 β€œPoor man’s bold”

If a bold version of a particular symbol doesn’t exist in the available fonts, then \boldsymbol can’t be used to make that symbol bold. At the present time, this means that \boldsymbol can’t be used with symbols from the msam and msbm fonts, among others. In some cases, poor man’s bold (\pmb) can be used instead of \boldsymbol:

\[\frac{\partial x}{\partial y}

\pmb{\bigg\vert}

\frac{\partial y}{\partial z}\]

So-called β€œlarge operator” symbols such asandrequire an additional command, \mathop, to produce proper spacing and limits when \pmb is used. For further details see The TEXbook.

\[\sum_{\substack{i<B\\\text{$i$ odd}}}

\prod_\kappa \kappa F(r_i)\qquad

\mathop{\pmb{\sum}}_{\substack{i<B\\\text{$i$ odd}}}

\mathop{\pmb{\prod}}_\kappa \kappa(r_i)

\]

9 Compound symbols and other features

9.1 Multiple integral signs

\iint, \iiint, and \iiiint give multiple integral signs with the spacing between them nicely adjusted, in both text and display style. \idotsint gives two integral signs with dots between them.

9.2 Over and under arrows

Some extra over and under arrow operations are provided in the amsmath package. (Basic LA TEX provides \overrightarrow and \overleftarrow).

\begin{align*}

\overrightarrow{\psi_\delta(t) E_t h}&

=\underrightarrow{\psi_\delta(t) E_t h}\\

\overleftarrow{\psi_\delta(t) E_t h}&

=\underleftarrow{\psi_\delta(t) E_t h}\\

\overleftrightarrow{\psi_\delta(t) E_t h}&

=\underleftrightarrow{\psi_\delta(t) E_t h}

\end{align*}

These all scale properly in subscript sizes:

\[\int_{\overrightarrow{AB}} ax\,dx\]

9.3 Dots

Normally you need only type \dots for ellipsis dots in a math formula. The main exception is when the dots fall at the end of the formula; then you need to specify one of \dotsc (series dots, after a comma), \dotsb (binary dots, for binary relations or operators), \dotsm (multiplication dots), or \dotsi (dots after an integral). For example, the input

Then we have the series $A_1,A_2,\dotsc$,

the regional sum $A_1+A_2+\dotsb$,

the orthogonal product $A_1A_2\dotsm$,

and the infinite integral

\[\int_{A_1}\int_{A_2}\dotsi\].

produces

Then we have the series, the regional sum, the orthogonal product, and the infinite integral

9.4 Accents in math

Double accents:

\[\Hat{\Hat{H}}\quad\Check{\Check{C}}\quad

\Tilde{\Tilde{T}}\quad\Acute{\Acute{A}}\quad

\Grave{\Grave{G}}\quad\Dot{\Dot{D}}\quad

\Ddot{\Ddot{D}}\quad\Breve{\Breve{B}}\quad

\Bar{\Bar{B}}\quad\Vec{\Vec{V}}\]

This double accent operation is complicated and tends to slow down the processing of a LA TEX file.

9.5 Dot accents

\dddot and \ddddot are available to produce triple and quadruple dot accents in addition to the \dot and \ddot accents already available in LA TEX:

\[\dddot{Q}\qquad\ddddot{R}\]

9.6 Roots

In the amsmath package \leftroot and \uproot allow you to adjust the position of the root index of a radical:

\sqrt[\leftroot{-2}\uproot{2}\beta]{k}

gives good positioning of the:

9.7 Boxed formulas

The command \boxed puts a box around its argument, like \fbox except that the contents are in math mode:

\boxed{W_t-F\subseteq V(P_i)\subseteq W_t}

9.8 Extensible arrows

\xleftarrow and \xrightarrow produce arrows that extend automatically to accommodate unusually wide subscripts or superscripts. The text of the subscript or superscript are given as an optional resp. mandatory argument: Example:

\[0 \xleftarrow[\zeta]{\alpha} F\times\triangle[n-1]

\xrightarrow{\partial_0\alpha(b)} E^{\partial_0b}\]

9.9 \overset, \underset, and \sideset

Examples:

\[\overset{*}{X}\qquad\underset{*}{X}\qquad

\overset{a}{\underset{b}{X}}\]

The command \sideset is for a rather special purpose: putting symbols at the subscript and superscript corners of a large operator symbol such asor, without affecting the placement of limits. Examples: