The HOL model and bridges¶
The system has two layers (architecture note, section 15). The logical core follows
Isabelle/HOL: its real, complex, and ereal types and their functions,
imported from Isabelle2025-2 into judgment_mathlib,
with Isabelle's conventions where mathematics leaves a value open. This profile uses its own explicit
extended-complex conventions. No
constant of one layer is identified with a constant of the other; bridge
theorems relate them, each under a guard that excludes exactly the points
where the conventions differ. This page:
- lists Isabelle's conventions;
- builds the carrier \(\hat S\) inside HOL from Isabelle's
complex, so that axioms G1 to G7 become theorems; - states and proves the bridge theorems;
- places the carrier in Isabelle's classes;
- shows how a theorem imported from Isabelle becomes a result of the profile.
Results are numbered H. Isabelle's definitions are quoted from
Isabelle2025-2's sources (HOL/Fields.thy, HOL/Power.thy,
HOL/Transcendental.thy, HOL/NthRoot.thy, HOL/Complex.thy,
HOL/Analysis/Complex_Transcendental.thy,
HOL/Library/Extended_Real.thy).
Isabelle's conventions¶
| Operation | Isabelle/HOL | This profile |
|---|---|---|
| division | \(x / 0 = 0\) (inverse_zero, an axiom of every division_ring) |
\(1/0 = C_\infty\), \(0/0 = I\) |
| natural power | \(x \mathbin{\hat{}} 0 = 1\), also for \(x = 0\) (power_0) |
\(0^0 = I\) |
general power powr |
\(x^a = (\text{if } x = 0 \text{ then } 0 \text{ else } \exp(a \ln x))\); so \(0^a = 0\) for every \(a\) | \(0^a = 0\), \(C_\infty\), or \(I\) as \(\mathrm{Re}\,a > 0\), \(< 0\), \(= 0\) |
real ln |
\(\ln 0 = 0\), \(\ln(-x) = \ln x\) (since Isabelle2025; earlier unspecified for \(x \le 0\)) | \(\log 0 = -\infty\), \(\log(-x) = \ln x + i\pi\) for \(x > 0\) |
real sqrt |
odd: \(\sqrt{-x} = -\sqrt x\) (real_sqrt_minus) |
\(\sqrt{-x} = i\sqrt x\) for \(x > 0\) |
complex Ln |
the \(w\) with \(e^w = z\) and \(-\pi < \mathrm{Im}\,w \le \pi\); unspecified at \(0\) | the same on \(z \ne 0\); \(\log 0 = -\infty\) |
csqrt |
\(\mathrm{Re} = \sqrt{(\lvert z\rvert + \mathrm{Re}\,z)/2}\), \(\mathrm{Im} = s\sqrt{(\lvert z\rvert - \mathrm{Re}\,z)/2}\), \(s = \operatorname{sgn}(\mathrm{Im}\,z)\), or \(1\) when \(\mathrm{Im}\,z = 0\) | principal square root, closed from above |
Arcsin, Arccos |
\(-i \,\mathrm{Ln}(iz + \mathrm{csqrt}(1 - z^2))\), \(\;-i \,\mathrm{Ln}(z + i\,\mathrm{csqrt}(1 - z^2))\) | Definition F-1 |
Arctan |
\(\tfrac{i}{2} \mathrm{Ln}\big((1 - iz)/(1 + iz)\big)\) | \(\tfrac{i}{2}\big(\log(1 - iz) - \log(1 + iz)\big)\) |
tan |
\(\sin x / \cos x\), so \(\tan(\pi/2) = 0\) | \(\tan(\pi/2) = C_\infty\) |
ereal arithmetic |
\(\infty + (-\infty) = \infty\), \(0 \cdot \infty = 0\), \(1/0 = \infty\) | \(I\), \(I\), \(C_\infty\) |
ereal order |
the extended real line | the same (G5) |
The carrier inside HOL¶
Definition H-1 (the model type). In the theory of Isabelle's
Complex_Main (imported, tier 1 or 2), let \(\hat S_H\) be the type defined
(the kernel's K2.6) by the predicate on \(\mathbb N \times \mathbb C\):
with witness \((0, 0)\), and let \(\mathrm{Fin}\,z = \mathsf{abs}(0, z)\), \(\mathrm{Dir}\,\theta = \mathsf{abs}(1, \theta)\) for \(\lvert\theta\rvert = 1\), \(C_\infty = \mathsf{abs}(2, 0)\), \(I = \mathsf{abs}(3, 0)\), and \(D(z) = \mathrm{Dir}(z / \lvert z\rvert)\) for finite \(z \ne 0\), \(I\) otherwise.
Definition H-2 (the model's operations). Each constant of the profile is defined on \(\hat S_H\) by cases on the classes of its arguments: on finite arguments by Isabelle's operation on \(\mathbb C\), where the two conventions agree; elsewhere by the tables of the theory pages (Definitions X-2 to X-4, W-1, W-1a, E-3, E-4, F-1). For example:
- \(\mathrm{Fin}\,a + \mathrm{Fin}\,b = \mathrm{Fin}(a + b)\) and \(\mathrm{Fin}\,a \cdot \mathrm{Fin}\,b = \mathrm{Fin}(ab)\);
- \((\mathrm{Fin}\,a)^{-1} = \mathrm{Fin}(a^{-1})\) for \(a \ne 0\), and \(C_\infty\) for \(a = 0\);
- \(\exp(\mathrm{Fin}\,z) = \mathrm{Fin}(\exp z)\); \(\log(\mathrm{Fin}\,z) = \mathrm{Fin}(\mathrm{Ln}\,z)\) for \(z \ne 0\), and \(D(-1)\) for \(z = 0\);
- \(\mathrm{finite}(s) \iff \exists z.\, s = \mathrm{Fin}\,z\), and \(\mathrm{real}(s) \iff \exists x{:}\mathbb R.\, s = \mathrm{Fin}(x)\);
- \(<\) on extended reals by Isabelle's order on
real, with \(D(-1) < \mathrm{Fin}\,x < D(1)\).
Every definition is a constant definition or a definition by cases through the conditional, so the model theory is a definitional extension of the imported one.
Theorem H-1 (the model satisfies the axioms). In the model theory, each of G1 to G7, read with the definitions of Definition H-2, is a theorem.
Proof. This is Theorem A-1's proof, carried out from judgment_mathlib's
theorems, imported from Isabelle2025-2, instead of from set theory. G1 follows from the type definition
(the four classes are disjoint by the first component, and
\(\mathrm{Dir}\,\theta = \mathrm{Dir}\,\theta'\) exactly when
\(\theta = \theta'\), so \(D(z) = D(w)\) exactly when \(z/\lvert z\rvert = w/\lvert w\rvert\),
that is, when \(z = cw\) with \(c > 0\)). G2 and G3 transfer the instance
complex :: field and the decomposition \(z = \mathrm{Re}\,z + i\,\mathrm{Im}\,z\)
through \(\mathrm{Fin}\). G4 transfers real :: linordered_field and the
completeness of real (real :: conditionally_complete_linorder): a
predicate on \(\hat S_H\) that holds only of reals and is bounded above
gives, through \(\mathrm{Fin}\), a nonempty bounded set of real, whose
supremum is the least upper bound. G5 and G6 are the case tables of
Definition H-2. G7 transfers Isabelle's exp_add, the totality and
inverse properties of Ln (its definition by the description
THE w. exp w = z ∧ -pi < Im w ∧ Im w ≤ pi, unique for \(z \ne 0\)), and
the power-series bound on \(\lvert e^z - 1 - z\rvert\) for
\(\lvert z\rvert \le 1\). \(\square\)
Corollary H-2 (the profile is interpreted in HOL). Sending Scalar to
\(\hat S_H\) and each constant of the profile to its definition in
Definition H-2 is an interpretation of the profile in the model theory
(judgment_store's Definition IN-1). Every theorem of the profile is a
theorem of the model theory.
Proof. The interpretation's obligations are the profile's axioms, which are theorems of the model theory by Theorem H-1. The choice-defined coordinates agree with the native coordinates: the real decomposition of a finite complex number has unique real and imaginary components; on nonfinite values both definitions return \(I\). The chosen positive first solution of \(\exp(i a)=-1\) is native \(\pi\), using the period of the complex exponential and the absence of an earlier positive solution.
For each elementary definition, the finite formula is exactly F-1. In a directed case, any representative selected by choice is a nonzero \(z\) with \(u=\operatorname{sgn}z\). Since \(\lvert z\rvert>0\), \(\operatorname{Re}u=\operatorname{Re}z/\lvert z\rvert\) and \(\operatorname{Im}u=\operatorname{Im}z/\lvert z\rvert\) have the same signs as the chosen coordinates. Thus every F-2 branch selects the same value; the remaining two exceptional constructors agree by cases. These are the 27 definition-correspondence obligations, in addition to the eight axiom declarations. The other definitions map to their defining equations.
Before applying the interpretation, scalar's ACU and literal conversion
steps are expanded into ordinary equality proofs citing their proved laws
(conversion elimination). The source definition bodies may already have
been ACU-normalized. To align these bodies, introduce opaque names proved
equal to the model operations. No ACU operator and no literal kind is
registered for them in the model theory: their ACU laws are replayed
first, as theorems that follow from Theorem H-1, and every later step that
the source checks by ACU or rational-literal conversion is replayed as an
equality proof citing those proved laws. Checked equality transport
supplies each definition image in this common signature.
judgment_store's checked interpretation then translates the ordinary
proof rules, preserving their hypotheses and guards. Unfolding the opaque
names replaces them with the original H-2 operations in every conclusion,
so the model theory gains no axiom, no ACU registration and no literal
kind. Theorem IN-1 does the rest. \(\square\)
Once Corollary H-2 is checked in the HOL model, the profile's axioms are theorems relative to HOL and Isabelle's definitions, and the consistency of the profile no longer rests on the paper proof of Theorem A-1. Results of CAS sessions are moved into the model theory when they need judgment_mathlib's theorems.
Bridge theorems¶
Definition H-3 (bridge). A bridge for a profile operation \(f\) and an Isabelle operation \(f_H\) on \(\mathbb C\) is a theorem of the model theory
with a guard \(G\) on complex values. A guard is exact when the equation fails, or Isabelle's side is unspecified, at every point outside it.
Theorem H-4 (arithmetic). For complex \(a, b\) and natural \(n\):
- \(\mathrm{Fin}\,a + \mathrm{Fin}\,b = \mathrm{Fin}(a + b)\), \(\mathrm{Fin}\,a \cdot \mathrm{Fin}\,b = \mathrm{Fin}(ab)\), and \(-\mathrm{Fin}\,a = \mathrm{Fin}(-a)\), unguarded;
- \(b \ne 0 \to \mathrm{Fin}\,a / \mathrm{Fin}\,b = \mathrm{Fin}(a / b)\), with an exact guard;
- \(a \ne 0 \lor n \ge 1 \to (\mathrm{Fin}\,a)^n = \mathrm{Fin}(a \mathbin{\hat{}} n)\), with an exact guard.
Proof. (1) is Definition H-2. (2): for \(b \ne 0\) both sides are \(\mathrm{Fin}(a b^{-1})\); for \(b = 0\) the left side is \(\mathrm{Fin}\,a \cdot C_\infty \in \{C_\infty, I\}\), not finite, while Isabelle's \(a / 0 = 0\). (3): for \(a \ne 0\) or \(n \ge 1\) both are the \(n\)-fold product; at \(a = 0\), \(n = 0\) the profile gives \(I\) and Isabelle \(1\). \(\square\)
Theorem H-5 (exponential, logarithms, powers, square roots). For complex \(z, w\) and real \(x\):
- \(\exp(\mathrm{Fin}\,z) = \mathrm{Fin}(\exp z)\), unguarded;
- \(z \ne 0 \to \log(\mathrm{Fin}\,z) = \mathrm{Fin}(\mathrm{Ln}\,z)\), exact;
- \(x > 0 \to \log(\mathrm{Fin}\,x) = \mathrm{Fin}(\ln x)\) (Isabelle's real
ln), exact; - \(z \ne 0 \lor \mathrm{Re}\,w > 0 \to (\mathrm{Fin}\,z)^{\mathrm{Fin}\,w} = \mathrm{Fin}(z \mathbin{\mathrm{powr}} w)\), exact;
- \(\sqrt{\mathrm{Fin}\,z} = \mathrm{Fin}(\mathrm{csqrt}\,z)\), unguarded;
- \(x \ge 0 \to \sqrt{\mathrm{Fin}\,x} = \mathrm{Fin}(\sqrt x)\) (Isabelle's
real
sqrt), exact.
Proof. (1), (2) by Definition H-2; at \(z = 0\), Isabelle's \(\mathrm{Ln}\,0\) is unspecified. (3): for \(x > 0\), \(\mathrm{Ln}\,x\) is real and equals \(\ln x\); at \(x = 0\) Isabelle gives \(0\) and the profile \(-\infty\); at \(x < 0\) Isabelle gives \(\ln\lvert x\rvert\) and the profile \(\ln\lvert x\rvert + i\pi\). (4): for \(z \ne 0\) both are \(\exp(w\,\mathrm{Ln}\,z)\) (Definition W-1, and Theorem W-2 at integer \(w\)); for \(z = 0\) Isabelle gives \(0\) and the profile gives \(0\) exactly when \(\mathrm{Re}\,w > 0\). (5): write \(c = \mathrm{csqrt}\,z\). From its definition, \(\mathrm{Re}\,c \ge 0\); \((\mathrm{Re}\,c)^2 - (\mathrm{Im}\,c)^2 = \mathrm{Re}\,z\); and \(2\,\mathrm{Re}\,c\,\mathrm{Im}\,c = s\sqrt{\lvert z\rvert^2 - (\mathrm{Re}\,z)^2} = s\lvert\mathrm{Im}\,z\rvert = \mathrm{Im}\,z\) (both sides vanish when \(\mathrm{Im}\,z = 0\)). So \(c^2 = z\), and \(c\) is the square root with argument in \((-\pi/2, \pi/2]\), since \(\mathrm{Re}\,c = 0\) only for real \(z \le 0\), where \(\mathrm{Im}\,c \ge 0\). That root is the profile's (Theorem W-5(2)). (6): for \(x \ge 0\) both are the nonnegative root; for \(x < 0\) Isabelle gives \(-\sqrt{\lvert x\rvert}\) and the profile \(i\sqrt{\lvert x\rvert}\). \(\square\)
Theorem H-6 (inverse trigonometric functions). For complex \(z\):
- \(\arcsin(\mathrm{Fin}\,z) = \mathrm{Fin}(\mathrm{Arcsin}\,z)\), unguarded;
- \(\arccos(\mathrm{Fin}\,z) = \mathrm{Fin}(\mathrm{Arccos}\,z)\), unguarded;
- \(z \notin \{iy : y \ge 1\} \cup \{-i\} \to \arctan(\mathrm{Fin}\,z) = \mathrm{Fin}(\mathrm{Arctan}\,z)\), exact; on \(\{iy : y > 1\}\), \(\mathrm{Arctan}\,z = \arctan z - \pi\).
Proof. Let \(s = \mathrm{csqrt}(1 - z^2)\) and \(u = iz + s\). Then \((s + iz)(s - iz) = s^2 + z^2 = 1\), so \(u \ne 0\) and \(s - iz = 1/u\).
(1) Isabelle's formula is Definition F-1's, with \(\mathrm{csqrt}\) equal to the profile's square root (Theorem H-5(5)) and \(\mathrm{Ln}\) to its logarithm on \(u \ne 0\) (Theorem H-5(2)).
(2) First, \(\mathrm{Re}\,u \ge 0\): since \(\mathrm{Re}\,u + \mathrm{Re}(1/u) = \mathrm{Re}(u + (s - iz)) = 2\,\mathrm{Re}\,s \ge 0\) and \(\mathrm{Re}(1/u) = \mathrm{Re}\,u / \lvert u\rvert^2\), we get \(\mathrm{Re}\,u\,(1 + \lvert u\rvert^{-2}) \ge 0\). Hence \(\arg u \in [-\pi/2, \pi/2]\). Next, \(z + is = i(s - iz) = i/u\), so \(\mathrm{Ln}(z + is) = i\pi/2 - \mathrm{Ln}\,u + 2\pi i k\) for the integer \(k\) that puts the imaginary part, \(\pi/2 - \arg u + 2\pi k\), into \((-\pi, \pi]\). Since \(\pi/2 - \arg u \in [0, \pi]\), \(k = 0\). Therefore \(\mathrm{Arccos}\,z = -i(i\pi/2 - \mathrm{Ln}\,u) = \pi/2 + i\,\mathrm{Ln}\,u = \pi/2 - \mathrm{Arcsin}\,z\), which is Definition F-1's \(\arccos z\).
(3) Let \(a = 1 - iz\) and \(b = 1 + iz\), so \(a + b = 2\). Off \(z = \pm i\) both are nonzero, and \(\mathrm{Ln}(a/b) = \mathrm{Ln}\,a - \mathrm{Ln}\,b + 2\pi i k\) with \(k = 0\) exactly when \(\arg a - \arg b \in (-\pi, \pi]\); then \(\mathrm{Arctan}\,z = \tfrac{i}{2}(\mathrm{Ln}\,a - \mathrm{Ln}\,b) = \arctan z\). Write \(z = x + iy\), so \(\mathrm{Im}\,b = x = -\mathrm{Im}\,a\).
- If \(x > 0\): \(\arg b \in (0, \pi)\) and \(\arg a \in (-\pi, 0)\), so \(\arg a - \arg b \in (-2\pi, 0)\). Also \(a/b = 2/b - 1\) has negative imaginary part, so \(\arg(a/b) \in (-\pi, 0)\). The two differ by a multiple of \(2\pi\) and both lie in \((-2\pi, 0)\), so they are equal, and \(k = 0\). The case \(x < 0\) is symmetric.
- If \(x = 0\), \(z = iy\), and \(a = 1 + y\), \(b = 1 - y\) are real. For \(-1 < y < 1\) both are positive: \(k = 0\). For \(y < -1\), \(\arg a = \pi\), \(\arg b = 0\), and the difference \(\pi\) lies in \((-\pi, \pi]\): \(k = 0\). For \(y > 1\), \(\arg a = 0\) and \(\arg b = \pi\): the difference \(-\pi\) does not, \(k = 1\), and \(\mathrm{Arctan}\,z = \arctan z + \tfrac{i}{2} \cdot 2\pi i = \arctan z - \pi\).
- At \(z = i\) Isabelle's quotient is \(2/0 = 0\) and at \(z = -i\) it is \(0/2 = 0\); \(\mathrm{Ln}\,0\) is unspecified, while the profile gives \(D(i)\) and \(D(-i)\).
So the guard is exact. \(\square\)
The numerical comparison of
tests/judgment_mathlib/reference/conventions.py (Isabelle's
formulas evaluated at 40 digits against the profile's at points on and off
every cut) agrees everywhere except at \(2i\) and \(\pm i\), as the theorem
says.
Theorem H-7 (real functions, the tangent, the extended reals).
- For real \(x\): \(\exp\), \(\sin\), \(\cos\), and \(\arctan\) agree with Isabelle's real functions, unguarded; \(\arcsin\) and \(\arccos\) agree for \(-1 \le x \le 1\) (Isabelle's are unspecified outside).
- For complex \(z\): \(\cos z \ne 0 \to \tan(\mathrm{Fin}\,z) = \mathrm{Fin}(\tan z)\), exact (at a zero of the cosine Isabelle's quotient is \(0\), the profile's \(C_\infty\)).
- Map
erealinto \(\hat S_H\) by \(e(\mathrm{ereal}\,r) = \mathrm{Fin}\,r\), \(e(\infty) = D(1)\), \(e(-\infty) = D(-1)\). Then \(x < y \iff e(x) < e(y)\), unguarded, and \(e(x + y) = e(x) + e(y)\) and \(e(xy) = e(x)e(y)\) except at \(\infty + (-\infty)\) and at \(0 \cdot (\pm\infty)\) (in either order), and \(e(1/x) = 1/e(x)\) except at \(x = 0\).
Proof. (1): both sides are the same power series on reals, or the same principal values (\(\arctan x \in (-\pi/2, \pi/2)\), \(\arcsin x \in [-\pi/2, \pi/2]\), \(\arccos x \in [0, \pi]\)). (2): off the zeros of \(\cos\) both are \(\sin z/\cos z\); at a zero, \(\sin z \ne 0\) and the profile gives \(\sin z \cdot C_\infty = C_\infty\). (3): the order is G5's; the arithmetic exceptions are the table's. \(\square\)
The carrier in Isabelle's classes¶
Proposition H-8. \((\hat S_H, +, 0)\) and \((\hat S_H, \cdot, 1)\) are
commutative monoids (Theorem A-4), so \(\hat S_H\) can be declared an
instance of Isabelle's comm_monoid_add and comm_monoid_mult, with
Isabelle's overloaded plus, zero, times, one defined at
\(\hat S_H\) as the profile's operations. It is an instance of no class
requiring additive inverses (ab_group_add: \(x - x = I\) for infinite
\(x\)), distributivity (semiring: Theorem X-4), or a field's laws.
Proof. The instance witnesses are Theorem A-4's laws. An instance declaration needs a proof of its class predicate (the kernel's Definition Y-10), and each excluded class has an axiom that fails in \(\hat S_H\). \(\square\)
The implementation replays A-4's six case proofs against the model's proved G1–G7 statements. Checked equations for the four overloaded operations identify the native class axioms with those laws; folding the opaque class predicates gives the two closed instance witnesses. The witness recipes use the theory before instance admission, so they do not depend on the membership facts they establish.
For example, the native theorem sum.swap gives, for finite sets \(A,B\),
Its statement, as Isabelle states it, is used unchanged; the new additive monoid instance discharges its class premise. Values of \(f\) may include infinities and Indeterminate because A-4 holds on the whole carrier.
Isabelle's theorems that need only these classes and their superclasses
(plus, zero, semigroup_add, monoid_add, ab_semigroup_add, and
the multiplicative ones, with dvd and power) then apply to the carrier
as they are: 514 of the 10,950 class theorems of Isabelle2025-2's HOL
session, such as the rearrangements of finite sums. No field theorem can
be applied by mistake. One caution shows why the layers stay apart: Isabelle's own
natural power ^ at this type would be iterated multiplication, with
\(0 \mathbin{\hat{}} 0 = 1\); it is a different constant from the profile's
pow, where \(0^0 = I\).
From an Isabelle theorem to a result of the profile¶
Algorithm H-9 (transfer through bridges). To prove a statement of the profile about finite values with Isabelle's library:
- write each argument as \(\mathrm{Fin}\,a\) (the guard \(\mathrm{finite}\));
- rewrite each profile operation applied to \(\mathrm{Fin}\) values by its bridge, collecting the bridges' guards;
- apply an Isabelle theorem to the resulting equation over \(\mathbb C\) (imported: replayed or a statement);
- rewrite back by the bridges.
The result's guard is the conjunction of the finiteness guards, the bridges' guards, and the Isabelle theorem's hypotheses.
Theorem H-10 (transfer is sound). Algorithm H-9 produces a kernel judgment in the model theory, depending on the bridge theorems (proved), the model's definitions, and the Isabelle theorem used; its label shows that theorem's source if it is an imported statement.
Proof. Each step is a rewrite by a theorem whose guard has been discharged or kept, and the kernel computes the dependencies (K1.7). \(\square\)
Example: transferring exponential addition. For finite \(a, b\):
\(\exp(a + b) = \exp(\mathrm{Fin}\,\alpha + \mathrm{Fin}\,\beta) = \exp(\mathrm{Fin}(\alpha + \beta)) = \mathrm{Fin}(\exp(\alpha + \beta))\)
by Theorems H-4(1) and H-5(1); Isabelle's exp_add gives
\(\exp(\alpha + \beta) = \exp\alpha \cdot \exp\beta\); and back,
\(\mathrm{Fin}(\exp\alpha \cdot \exp\beta) = \exp a \cdot \exp b\). All the
bridges used are unguarded, so the result's guard is
\(\mathrm{finite}(a) \land \mathrm{finite}(b)\).
The analytic library¶
build_analysis applies H-9 to 45 general laws and 60 generated finite
value equations. It extends the conservative model; the axiomatic
profile's signature and axiom list stay fixed. Its two theorem groups are
analysis and analysis-values. Each result retains its exact guard,
native statement provenance, and a closed recipe whose input theory
precedes admission of the result.
Write \(\lvert z\rvert=\sqrt{\operatorname{abs2}(z)}\). This is notation for the existing operations. The root and absolute-value results are:
| Names | Hypotheses and conclusions |
|---|---|
pow_mul_positive |
Positive real \(x,y\) and finite \(w\) imply \((xy)^w=x^wy^w\). |
sqrt_of_sq |
For finite \(z\), \(\sqrt{z^2}=z\) if \(\Re z>0\) or \(\Re z=0\land\Im z\ge0\), and \(-z\) otherwise. |
sqrt_of_sq_nonneg, sqrt_abs |
For nonnegative real \(x\), \(\sqrt{x^2}=x\); for every real \(x\), \(\sqrt{x^2}=\lvert x\rvert\). |
abs_real, abs_nonnegative, abs_neg |
For finite \(z\), \(\lvert z\rvert\) is real and nonnegative, and \(\lvert -z\rvert=\lvert z\rvert\). |
abs_mult, abs_triangle |
For finite \(z,w\), \(\lvert zw\rvert=\lvert z\rvert\lvert w\rvert\) and \(\lvert z+w\rvert\le\lvert z\rvert+\lvert w\rvert\). |
surd_pow, surd_mono |
For positive integer \(n\) and real \(x\), with \(x\ge0\) or \(n\) odd, \(\operatorname{surd}(x,n)^n=x\). If also \(y\) is real and \(x<y\), their surds are strictly ordered. |
Proof. Rewrite finite operations by H-4 and H-5. The principal complex
square root selects exactly the stated half-plane. Its value on the
nonnegative reals is the real square root, so \(\sqrt{z\bar z}\) is the
complex norm. Norm negation, multiplication and the triangle inequality
give the five absolute-value laws. Positive-real logarithm additivity
and exp_add prove the power law. Existence and strict monotonicity of
Isabelle's real roots establish both surd laws; the odd-degree branch
includes negative arguments. The explicit guard excludes even roots of
negative reals. \(\square\)
The logarithm laws retain the principal strip \(-\pi<\Im z\le\pi\).
log_exp_unwound uses that strip and finiteness of its argument.
log_mul_unwound requires finite nonzero factors and the same strip for
the sum of their logarithms. log_inv_offcut requires a finite argument
with nonzero imaginary part or positive real part. log_mul_positive
uses positive real factors. Their proofs apply principal-strip uniqueness
after the corresponding exponential equation; the strict and closed
endpoints follow the chosen principal logarithm. Together with exp_add,
these are five general laws.
The eight inverse laws are sin_arcsin, cos_arccos, tan_arctan,
arcsin_sin_range, arctan_tan_range, sinh_arcsinh, cosh_arccosh and
tanh_arctanh. The forward sine, cosine, hyperbolic sine and hyperbolic
cosine identities require finiteness. Tangent additionally excludes
\(\pm i\), and hyperbolic tangent excludes \(\pm1\). Both reverse identities use
the open strip \(-\pi/2<\Re z<\pi/2\) with their specified boundary rays:
arcsine includes \(\Re z=-\pi/2,\Im z\ge0\) and
\(\Re z=\pi/2,\Im z\le0\); arctangent includes
\(\Re z=-\pi/2,\Im z<0\) and \(\Re z=\pi/2,\Im z>0\).
The arctangent endpoints themselves are excluded. Expanding the principal
logarithm and square-root definitions gives the forward identities.
Their principal ranges give the reverse identities; tangent periodicity
and the boundary logarithm equations handle its two boundary rays.
For the hyperbolic identities, the square-root equations show that each
logarithm argument is nonzero and determine its inverse. Substituting
\(\exp(\log u)=u\) into the exponential definitions of sinh and cosh then
gives their forward inverses. For arctanh, exponentiating twice its
logarithm difference gives \((1+z)/(1-z)\); the exponential quotient for tanh
reduces to \(z\). Excluding \(\pm1\) justifies both logarithms and the nonzero
cosh denominator.
The remaining 21 laws concern real arguments:
| Names | Statement |
|---|---|
sin_real, cos_real, exp_real, arctan_real, sinh_real, cosh_real, tanh_real |
The named function maps real arguments to real results. |
abs_sin_le_one, abs_cos_le_one |
The absolute value is at most one on the reals. |
exp_pos, exp_strict_mono |
Real exponentials are positive and strictly increasing. |
log_real_pos, log_strict_mono |
The logarithm is real on positive reals and strictly increasing there. |
arctan_bounds, arctan_strict_mono |
Real arctangent lies strictly between \(-\pi/2\) and \(\pi/2\) and is strictly increasing. |
sinh_strict_mono, tanh_strict_mono |
Both functions are strictly increasing on the reals. |
arcsin_real, arcsin_bounds, arcsin_strict_mono |
On \([-1,1]\), arcsine is real, lies in \([-\pi/2,\pi/2]\), and is strictly increasing. |
pi_bounds |
\(3<\pi<4\). |
Proof. H-6 reduces the guarded comparisons to real comparisons. The real restrictions of the complex functions agree with their real counterparts on the listed domains. Isabelle's real trigonometric, exponential, logarithm, hyperbolic and inverse-function theorems then establish the results, including their endpoint inequalities. Its real bounds on \(\pi\) imply the last closed conjunction. \(\square\)
For finite values, the independent reference generator supplies 59
special-point and cut-boundary values, plus \(\sqrt{(-1)^2}=1\) for power and root tests.
Exact components are selected from rational multiples of
\(1,\pi,\sqrt2,\log2,\log3,\log(2+\sqrt3)\). An unknown or ambiguous
component stops generation. Numerical recognition only proposes an
equation: the Isabelle proof of judgment_mathlib's theorem expands the
carrier operations and proves each selected exact value using logarithm
branches, principal roots, and exact trigonometric identities. The kernel checks its transfer to
the actual target. The two nonfinite reference points, log(0) and
arcsech(0), already have algebraic elementary functions proofs.
The obligations that judgment_mathlib's theorems state were generated
from the kernel's actual target terms. The kernel checks each library
theorem against its actual target, so a changed guard or value cannot
silently reuse an old theorem. Every result is a closed checked proof,
with no local or hypothesis dependencies. build_analysis takes only
library theorems that the kernel rechecked when it loaded the library in
full, so no result rests on an imported statement; a statement-only import
does not replay Isabelle's proofs, which the library holds as exported
proofs.