Encyclopedia Foundation Foundation Primitive Recognition Calculus Prcjcost Distance Triangle Prc Jcost D
ARTICLE 3 claims 2 theorems 1 open
Foundation Primitive Recognition Calculus Prcjcost Distance Triangle Prc Jcost D
A machine-checked proof reduces a deep geometric property to a single inequality, but the inequality itself remains unproved.
A conditional bridge
The triangle inequality is the rule that a direct path between two points is never longer than a path that stops at a third point. In the Recognition Science framework, a ledger (a discrete record of recognition events) assigns a cost to every pair of entries, and the framework's central cost function J(x) = (x + 1/x)/2 - 1 produces a distance-like quantity. The declaration prc_jcost_distance_triangle_conditional_certificate is a machine-checked theorem that establishes a precise conditional statement: if a certain rational inequality holds, then the J-cost distance satisfies the triangle inequality, and the resulting quotient structure behaves as a proper metric space.
The certificate works by building a bridge between two different descriptions of the distance. On one side is the abstract J-cost distance defined on the framework's rational numbers. On the other side is a concrete rational formula, displayed as (g + g⁻¹)/2 - 1 where g = 1 + (x - y)². The theorem proves these two descriptions agree exactly, a result called PRCJCostDistance_toRat. This agreement is what allows the framework to transport the triangle inequality from the simple rational formula to the abstract distance.
The remaining mathematical problem is isolated in a single statement called PRCJCostDistanceVerifierTriangleTarget. This is the explicit rational inequality that must be proved for the triangle inequality to close. The certificate does not prove this inequality; it only shows that proving it would complete the entire chain, reducing the null-distance setoid target (the condition that makes the quotient well-defined) to this one verifiable fact. The structure assembles the pieces: the distance display, the verifier target as a self-referential identity, and the two implications that would finish the construction.
In plain terms, the declaration is a carefully scoped promise. It says: the framework has reduced a deep geometric requirement to a single, concrete inequality about rational numbers. Everything else in the chain, from the distance formula to the quotient structure, is already proved. The certificate is honest about what remains: the analytic estimate itself is stated only on the conservative rational displays, not as a proved theorem. This is a standard technique in formal verification, where a large proof is broken into a conditional certificate plus a remaining lemma, and the lemma is clearly marked as the only open step.
THEOREM prc_jcost_distance_triangle_conditional_certificate · IndisputableMonolith/Foundation/PrimitiveRecognitionCalculus/PRCJCostDistanceTriangle.lean
/-- Build Order step 9a conditional closure: PRC triangle transport is reduced
to the displayed rational inequality. -/
theorem prc_jcost_distance_triangle_conditional_certificate :
PRCJCostDistanceTriangleConditionalCertificate where
distance_display := PRCJCostDistance_toRat
verifier_triangle_target := rfl
triangle_from_verifier := PRCJCostDistanceTriangleModulusTarget_of_verifier
setoid_from_verifier := PRCNullDistanceSetoidTarget_of_verifier_triangle
THEOREM PRCJCostDistance_toRat · IndisputableMonolith/Foundation/PrimitiveRecognitionCalculus/PRCJCostDistanceTriangle.lean
/-- Display theorem for the PRC J-cost distance. -/
theorem PRCJCostDistance_toRat (a b : PRCRat) :
(PRCJCostDistance a b).toRat =
PRCJCostDistanceRatDisplay a.toRat b.toRat := by
unfold PRCJCostDistance PRCJCostDistanceRatDisplay
rw [PRCJCost.onPRCRat_toRat, PRCSquareGap_toRat]
What this page does not claim
The certificate does not prove the triangle inequality for the J-cost distance; it only proves a conditional reduction. The certificate does not prove the explicit rational inequality in PRCJCostDistanceVerifierTriangleTarget, which remains an open target. The certificate does not establish that the J-cost distance is a metric in the classical sense, only that the quotient structure would be well-defined if the inequality holds.
Verify this page
Every tagged claim above names its theorem. To check one yourself rather than trust this page, elaborate the source module with Lean 4 and audit its axiom basis:
$ lake env lean IndisputableMonolith/Foundation/PrimitiveRecognitionCalculus/PRCJCostDistanceTriangle.lean
expected axiom basis: [propext, Classical.choice, Quot.sound] (the Lean kernel's standard three; no RS-specific axioms)
A page whose claims cannot be reproduced this way does not ship. In production, every anchor links to the exact declaration in the public source release, and this block carries the build receipt for the page itself.
Derived articles
This page is generated by a question-recursion engine: the questions its answers raise become the next pages. The current agenda, with open targets marked red:
- Can the explicit rational inequality in PRCJCostDistanceVerifierTriangleTarget be proved from the five plain conditions that force the J-cost function?
- What analytic techniques would close the verifier-rational triangle inequality?
- Does the null-distance setoid target, once closed, make the J-cost distance a complete metric space?
- How does the J-cost distance relate to the standard Euclidean distance on the rationals?
MACHINE LAYER · GROUNDED CLAIM TABLE · CLICK TO EXPAND
THEOREM prc_jcost_distance_triangle_conditional_certificate · IndisputableMonolith/Foundation/PrimitiveRecognitionCalculus/PRCJCostDistanceTriangle.lean
/-- Build Order step 9a conditional closure: PRC triangle transport is reduced to the displayed rational inequality. -/ theorem prc_jcost_distance_triangle_conditional_certificate : PRCJCostDistanceTriangleConditionalCertificate where distance_display := PRCJCostDistance_toRat verifier_triangle_target := rfl triangle_from_verifier := PRCJCostDistanceTriangleModulusTarget_of_verifier setoid_from_verifier := PRCNullDistanceSetoidTarget_of_verifier_triangleThe declaration is a machine-checked theorem that establishes a precise conditional statement: if a certain rational inequality holds, then the J-cost distance satisfies the triangle inequality. prc_jcost_distance_triangle_conditional_certificate · IndisputableMonolith/Foundation/PrimitiveRecognitionCalculus/PRCJCostDistanceTriangle.leanTHEOREM PRCJCostDistance_toRat · IndisputableMonolith/Foundation/PrimitiveRecognitionCalculus/PRCJCostDistanceTriangle.lean
/-- Display theorem for the PRC J-cost distance. -/ theorem PRCJCostDistance_toRat (a b : PRCRat) : (PRCJCostDistance a b).toRat = PRCJCostDistanceRatDisplay a.toRat b.toRat := by unfold PRCJCostDistance PRCJCostDistanceRatDisplay rw [PRCJCost.onPRCRat_toRat, PRCSquareGap_toRat]The theorem proves the abstract J-cost distance agrees exactly with a concrete rational formula, a result called PRCJCostDistance_toRat. PRCJCostDistance_toRat · IndisputableMonolith/Foundation/PrimitiveRecognitionCalculus/PRCJCostDistanceTriangle.lean- OPENThe remaining mathematical problem is isolated in a single statement called PRCJCostDistanceVerifierTriangleTarget, which is the explicit rational inequality that must be shown for the triangle inequality to close.