Step-by-step derivation
S001 · implies
Before
source roles = [qf-app20-optimization-linear-constraint-audit, optimization-linear-constraint-audit]
After
derived = [[constraint, objective, direction, ALLrows, best, ALLarg_indices]]
Conditions: none
Follow THIS bank exact keys,domain/frame,operation and answer role.STR22/App20 tuples differ from legacy scalars;retain or omit/1 by the ORIGINAL contract,not a generic visual convention.
Step identifiers and dependencies
Rule: R58_EXACT_source_interface_and_answer_ROLE · Uses: G001
S002 · calculation
Before
Optimization ORIGINAL row0 constraint A times x := mul(1, 0)
After
Optimization ORIGINAL row0 constraint A times x = 0
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S001
S003 · calculation
Before
Optimization ORIGINAL row0 constraint B times y := mul(1, 0)
After
Optimization ORIGINAL row0 constraint B times y = 0
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S002
S004 · calculation
Before
Optimization ORIGINAL row0 constraint sum := sum(0, 0)
After
Optimization ORIGINAL row0 constraint sum = 0
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S003
S005 · calculation
Before
Optimization ORIGINAL row0 objective u times x := mul(0, 0)
After
Optimization ORIGINAL row0 objective u times x = 0
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S004
S006 · calculation
Before
Optimization ORIGINAL row0 objective v times y := mul(2, 0)
After
Optimization ORIGINAL row0 objective v times y = 0
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S005
S007 · calculation
Before
Optimization ORIGINAL row0 objective sum := sum(0, 0)
After
Optimization ORIGINAL row0 objective sum = 0
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S006
S008 · implies
Before
source roles = [0, [0, 0], [1, 1, 9], [0, 2]]
After
derived = [0, 9, [0, 0, 0, Yes, 0]]
Conditions: none
At the SAME original row calculate A*x+B*y<=c INCLUSIVELY and u*x+v*y.Preserve original index and repeated points.Semantic-identity sorting/deduplication cannot change this raw question or its answer.
Step identifiers and dependencies
Rule: Optimization_EACH_original_point_INCLUSIVE_constraint_AND_objective · Uses: G001, S007
S009 · calculation
Before
Optimization ORIGINAL row1 constraint A times x := mul(1, 1)
After
Optimization ORIGINAL row1 constraint A times x = 1
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S008
S010 · calculation
Before
Optimization ORIGINAL row1 constraint B times y := mul(1, 2)
After
Optimization ORIGINAL row1 constraint B times y = 2
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S009
S011 · calculation
Before
Optimization ORIGINAL row1 constraint sum := sum(1, 2)
After
Optimization ORIGINAL row1 constraint sum = 3
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S010
S012 · calculation
Before
Optimization ORIGINAL row1 objective u times x := mul(0, 1)
After
Optimization ORIGINAL row1 objective u times x = 0
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S011
S013 · calculation
Before
Optimization ORIGINAL row1 objective v times y := mul(2, 2)
After
Optimization ORIGINAL row1 objective v times y = 4
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S012
S014 · calculation
Before
Optimization ORIGINAL row1 objective sum := sum(0, 4)
After
Optimization ORIGINAL row1 objective sum = 4
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S013
S015 · implies
Before
source roles = [1, [1, 2], [1, 1, 9], [0, 2]]
After
derived = [3, 9, [1, 1, 2, Yes, 4]]
Conditions: none
At the SAME original row calculate A*x+B*y<=c INCLUSIVELY and u*x+v*y.Preserve original index and repeated points.Semantic-identity sorting/deduplication cannot change this raw question or its answer.
Step identifiers and dependencies
Rule: Optimization_EACH_original_point_INCLUSIVE_constraint_AND_objective · Uses: G001, S014
S016 · calculation
Before
Optimization ORIGINAL row2 constraint A times x := mul(1, 2)
After
Optimization ORIGINAL row2 constraint A times x = 2
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S015
S017 · calculation
Before
Optimization ORIGINAL row2 constraint B times y := mul(1, 3)
After
Optimization ORIGINAL row2 constraint B times y = 3
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S016
S018 · calculation
Before
Optimization ORIGINAL row2 constraint sum := sum(2, 3)
After
Optimization ORIGINAL row2 constraint sum = 5
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S017
S019 · calculation
Before
Optimization ORIGINAL row2 objective u times x := mul(0, 2)
After
Optimization ORIGINAL row2 objective u times x = 0
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S018
S020 · calculation
Before
Optimization ORIGINAL row2 objective v times y := mul(2, 3)
After
Optimization ORIGINAL row2 objective v times y = 6
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S019
S021 · calculation
Before
Optimization ORIGINAL row2 objective sum := sum(0, 6)
After
Optimization ORIGINAL row2 objective sum = 6
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S020
S022 · implies
Before
source roles = [2, [2, 3], [1, 1, 9], [0, 2]]
After
derived = [5, 9, [2, 2, 3, Yes, 6]]
Conditions: none
At the SAME original row calculate A*x+B*y<=c INCLUSIVELY and u*x+v*y.Preserve original index and repeated points.Semantic-identity sorting/deduplication cannot change this raw question or its answer.
Step identifiers and dependencies
Rule: Optimization_EACH_original_point_INCLUSIVE_constraint_AND_objective · Uses: G001, S021
S023 · calculation
Before
Optimization ORIGINAL row3 constraint A times x := mul(1, 3)
After
Optimization ORIGINAL row3 constraint A times x = 3
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S022
S024 · calculation
Before
Optimization ORIGINAL row3 constraint B times y := mul(1, 0)
After
Optimization ORIGINAL row3 constraint B times y = 0
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S023
S025 · calculation
Before
Optimization ORIGINAL row3 constraint sum := sum(3, 0)
After
Optimization ORIGINAL row3 constraint sum = 3
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S024
S026 · calculation
Before
Optimization ORIGINAL row3 objective u times x := mul(0, 3)
After
Optimization ORIGINAL row3 objective u times x = 0
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S025
S027 · calculation
Before
Optimization ORIGINAL row3 objective v times y := mul(2, 0)
After
Optimization ORIGINAL row3 objective v times y = 0
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S026
S028 · calculation
Before
Optimization ORIGINAL row3 objective sum := sum(0, 0)
After
Optimization ORIGINAL row3 objective sum = 0
Conditions: none
Substitute exact ORIGINAL operands.Additional teaching algebra does not inherit raw-input caps;only declared SOURCE rational operations apply their own profile.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S027
S029 · implies
Before
source roles = [3, [3, 0], [1, 1, 9], [0, 2]]
After
derived = [3, 9, [3, 3, 0, Yes, 0]]
Conditions: none
At the SAME original row calculate A*x+B*y<=c INCLUSIVELY and u*x+v*y.Preserve original index and repeated points.Semantic-identity sorting/deduplication cannot change this raw question or its answer.
Step identifiers and dependencies
Rule: Optimization_EACH_original_point_INCLUSIVE_constraint_AND_objective · Uses: G001, S028
S030 · implies
Before
source roles = [linear finite candidate list, [0, 4, 6, 0], [0, 1, 2, 3], max]
After
derived = [6, [2], [[0, 0, Yes, No], [1, 4, Yes, No], [2, 6, Yes, Yes], [3, 0, Yes, No]]]
Conditions: none
Check the corresponding bound for EVERY feasible ORIGINAL index and retain ALL equality indices.The optimal value differs from its arg set.Ignore better infeasible values and do not assume uniqueness.The conclusion is ONLY for this complete declared finite set.
Step identifiers and dependencies
Rule: Optimization_ALL_feasible_objectives_bound_AND_every_tied_index · Uses: G001, S029
S031 · implies
Before
source roles = [[[0, 0], [1, 2], [2, 3], [3, 0]], [1, 1, 9], [0, 2], max]
After
derived = [[[0, 0, 0, Yes, 0], [1, 1, 2, Yes, 4], [2, 2, 3, Yes, 6], [3, 3, 0, Yes, 0]], 6, [2]]
Conditions: none
All rows are evaluated,but optimize ONLY eligible ORIGINAL listed candidates.The whole half-plane was not declared as the candidate set;the finite best is not a continuous-domain global solution.
Step identifiers and dependencies
Rule: Optimization_FINITE_list_not_continuous_halfplane · Uses: G001, S030