mul
Multiplication on LogicNat is defined by recursion on the second argument, returning zero when the second factor is the identity element and otherwise adding the first factor to the product of the first factor with the predecessor. Algebraists building the phi-ring and cost structures cite this when assembling the arithmetic layer of Recognition Science. The definition is a direct recursive unfolding that mirrors the standard Peano construction for natural-number multiplication.
claimLet $N_L$ be the inductive type with constructors identity (zero-cost element) and step. Multiplication $N_L times N_L to N_L$ satisfies $n times identity = 0$ and $n times (step m) = (n times m) + n$, where $0$ and $+$ are the zero and addition already defined on $N_L$.
background
LogicNat is the inductive type whose constructors identity and step mirror the orbit {1, gamma, gamma^2, ...} as the smallest subset of positive reals closed under multiplication by gamma and containing 1; identity is the zero-cost multiplicative identity. The module ArithmeticFromLogic constructs the natural-number operations directly from the Law of Logic, using the same recursive pattern already introduced for addition in the sibling definitions. Upstream, the step constructor of LogicNat is the generator that forces the successor relation, while the mul definitions in IntegersFromLogic and RationalsFromLogic lift this operation to the quotient types.
proof idea
The declaration is a direct recursive definition by pattern matching on the second argument: the identity case returns the zero element already defined in the module, and the step case invokes the sibling addition operation on the recursive call.
why it matters in Recognition Science
This multiplication supplies the ring multiplication used by PhiRing.PhiInt, RecognitionCategory.PhiRingHom, and CostAlgebra.shiftedCompose_val, thereby enabling the coherence-cost calculation J_at_phi and the canonical object of the Recognition Category. It completes the arithmetic scaffolding required for the Recognition Composition Law and the forcing chain that reaches D = 3 spatial dimensions. The definition is cited in every downstream construction that treats LogicNat as a semiring.
scope and limits
- Does not prove commutativity or associativity.
- Does not define multiplication on LogicInt or LogicRat.
- Does not incorporate the J-cost function or phi-ladder.
- Does not address negative elements or division.
Lean usage
theorem mul_identity (n : LogicNat) : n * LogicNat.identity = LogicNat.zero := rfl
formal statement (Lean)
171def mul : LogicNat → LogicNat → LogicNat
172 | _, .identity => zero
173 | n, .step m => mul n m + n
174
175instance : Mul LogicNat := ⟨mul⟩
proof body
Definition body.
176
used by (40)
-
shiftedComposeH_val -
shiftedCompose_val -
J_at_phi -
PhiInt -
canonicalPhiRingObj -
PhiRingHom -
PhiRingObj -
divConstraint_continuous -
duhamelKernelDominatedConvergenceAt_of_forcing -
DimensionedQuantity -
dAlembert_contDiff_top -
dAlembert_contDiff_top -
dAlembert_first_deriv_of_contDiff -
dAlembert_second_deriv_at_zero_of_contDiff -
dAlembert_continuous_of_log_curvature -
deriv_neg_self_zero -
deriv_pos_self_zero -
tendsto_H_one_of_log_curvature -
Jcost_continuous_pos -
hasDerivAt_costAlphaLog_first -
mul_def -
toComplex_mul -
hasDerivAt_costAlphaLog -
log_bilinear_affine_lift_classification -
mul -
add_mul' -
mul -
response_limit_high_freq -
solution_exists -
G_ratio_continuous_snd