The indexed algebraic library¶
The theorem library reference was generated from the public theorem store. Each row is a guard and a conclusion; the lambda parameters are display binders, not additional assumptions (checked lemma library says how the page is checked). Every new declaration retains a closed reconstruction recipe. The library introduces no axioms.
Field and domain laws¶
Finite additive cancellation and nonzero multiplicative cancellation are
G2. Division is multiplication by the inverse. Applying the inverse law
twice proves inv(inv(x)) = x for finite nonzero x; at zero the two G6
rules inv(0) = ComplexInfinity and inv(ComplexInfinity) = 0 prove the
same result. Thus its guard is finiteness alone, despite the historical
name inv_inv_nonzero_finite.
G6 writes negation as multiplication by −1. ACU and exact rational
conversion therefore prove double negation for every carrier element.
(x*y)/z = x*(y/z) is also unguarded ACU associativity. The finite
field and real closure laws are projections of G2 and G3. Integer closure
is proved from the profile declarations.
For rational closure, choose integer witnesses x = a/b, b != 0 from
the conservative rational definition. G3 and integer reality establish
that this quotient is real. Negation uses (-a)/b; addition and
multiplication use (a*d+c*b)/(b*d) and (a*c)/(b*d). Integer closure
supplies the witnesses and finite inverse cancellation proves b*d != 0.
For nonzero x, assuming a = 0 contradicts x != 0; the inverse witness
is b/a. Every displayed fraction equality is checked by the existing
finite fraction certificates.
Order and real infinities¶
Strict transitivity is G5. Expanding its definition of non-strict order
proves antisymmetry and x <= y < z -> x < z: a strict cycle contradicts
irreflexivity, and equality transports the remaining inequality.
Trichotomy on reals is G4. Carrier and extended-infinity case lemmas are
projections of G1 and the conservative extended-real predicate.
Strict comparison itself implies both operands are extended real.
Consequently translation needs only real(z) and x < y. Split x and y
into real, positive infinity and negative infinity. The finite branch is
G4 translation; mixed branches use G5's bounds and G6 finite/infinite
sums; impossible branches contradict strict transitivity and
irreflexivity. The same split proves multiplication monotonicity with
real(z), 0 < z and x < y. In the finite branch, translate to
0 < y-x, multiply by z using G4, distribute, then translate back.
For an infinite branch, G1 identifies a positive real multiple of each
axis with the same direction and G6 evaluates the product.
If 0 < x, G5 excludes negative infinity and leaves a positive real or
positive infinity. Splitting both factors proves positive_mul without
redundant real guards. For real x, G4 trichotomy at zero proves
0 <= x*x: positive multiplication handles x or −x, and the zero case
is exact conversion.
Finite addition preserves either real infinity. For a real multiplier,
the product with D(a), a = 1 or a = -1, is
if x=0 then Indeterminate else if 0<x then D(a) else D(-a).
G6 proves the zero branch; G1's positive scaling proves the positive
branch and uses scale −x in the negative branch. No nonzero assumption
is necessary because the result explicitly includes zero.
Guards, adapters, and analytic extensions¶
The guard-minimality test reads the reference page's statements and removes each conjunction atom in turn. Exact Gaussian rationals and the carrier's infinite classes provide 48 counterexamples for the added rewrite laws. It also checks each original guarded statement at those assignments. This reference test supplies no evidence to the kernel.
The seven finite-ring and one polynomial-evaluation adapters retain the precise guards and implication nesting required by the public law schemas. They are schema interfaces, not claims of minimal rewrite guards. All three bundles are independently validated; removing any required law is refused.
Absolute value and the triangle inequality use the principal-root and
real-order bridges. The separate build_analysis extension supplies
their guarded proofs in the conservative
model. The algebraic library remains independent of native inputs.