Original question and givens
Convexity means every pair of set members and every lambda in [0,1] has lambda*left+(1−lambda)*right in the set. Positive cases use complete algebraic certificates, not sampled lambda values. One exact counterexample suffices to refute convexity; a failed counterexample does not prove convexity. normal=[1, 1], bound=11, left=[0, 0], right=[10, 0], lambda=10/12∈[0,1]. Both endpoints must satisfy normal·point≤bound. Give (normal,bound,left,right,left dot product,right dot product,lambda,weighted point,its dot product,inside?). Use exact rational arithmetic, reduce fractions to positive denominators and omit /1 for integer outputs.
G001 — Convexity means every pair of set members and every lambda in [0,1] has lambda*left+(1−lambda)*right in the set. Positive cases use complete algebraic certificates, not sampled lambda values. One exact counterexample suffices to refute convexity; a failed counterexample does not prove convexity. normal=[1, 1], bound=11, left=[0, 0], right=[10, 0], lambda=10/12∈[0,1]. Both endpoints must satisfy normal·point≤bound. Give (normal,bound,left,right,left dot product,right dot product,lambda,weighted point,its dot product,inside?). Use exact rational arithmetic, reduce fractions to positive denominators and omit /1 for integer outputs.
Step-by-step derivation
S001 · calculation
Before
left endpoint dot term0 := mul(1, 0)
After
left endpoint dot term0 = 0
Conditions: none
Compute exactly with this step's specified roles,retaining signs,denominators and original pairings.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001
S002 · calculation
Before
left endpoint dot term1 := mul(1, 0)
After
left endpoint dot term1 = 0
Conditions: none
Compute exactly with this step's specified roles,retaining signs,denominators and original pairings.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S001
S003 · calculation
Before
left endpoint dot sum := sum(0, 0)
After
left endpoint dot sum = 0
Conditions: none
Compute exactly with this step's specified roles,retaining signs,denominators and original pairings.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S002
S004 · calculation
Before
right endpoint dot term0 := mul(1, 10)
After
right endpoint dot term0 = 10
Conditions: none
Compute exactly with this step's specified roles,retaining signs,denominators and original pairings.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S003
S005 · calculation
Before
right endpoint dot term1 := mul(1, 0)
After
right endpoint dot term1 = 0
Conditions: none
Compute exactly with this step's specified roles,retaining signs,denominators and original pairings.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S004
S006 · calculation
Before
right endpoint dot sum := sum(10, 0)
After
right endpoint dot sum = 10
Conditions: none
Compute exactly with this step's specified roles,retaining signs,denominators and original pairings.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S005
S007 · implies
Before
normal=[1, 1];bound=11;left dot=0;right dot=10
After
both endpoints satisfy the closed halfspace inequality
Conditions: none
First qualify both endpoint memberships.Do not infer them from the desired convexity;the same inequality also handles a zero normal.
Step identifiers and dependencies
Rule: halfspace_endpoint_membership · Uses: G001, S006
S008 · calculation
Before
halfspace point complementary weight := sub(1, 5/6)
After
halfspace point complementary weight = 1/6
Conditions: none
Compute exactly with this step's specified roles,retaining signs,denominators and original pairings.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S007
S009 · implies
Before
halfspace point:raw lambda=[10, 12];lambda=5/6;one-minus-lambda=1/6
After
in_closed_unit_interval=Yes;lambda weights left
Conditions: none
Lambda weights the left endpoint and1−lambda the right.Lambda0 selects right,1 selects left.Outside values still define the affine expression,but not a convex combination;do not clip.
Step identifiers and dependencies
Rule: two_point_direction_and_qualification · Uses: G001, S008
S010 · implies
Before
halfspace point:ordered vectors=[[0, 0], [10, 0]];aligned weights=[5/6, 1/6]
After
dimension=2;preserve duplicates and order
Conditions: none
Preserve vector order,duplicates and coefficient pairing.Sum every vector's contribution within the same coordinate.
Step identifiers and dependencies
Rule: ordered_vector_weight_pairing · Uses: G001, S009
S011 · calculation
Before
halfspace point coordinate0 term0 := mul(5/6, 0)
After
halfspace point coordinate0 term0 = 0
Conditions: none
Compute exactly with this step's specified roles,retaining signs,denominators and original pairings.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S010
S012 · calculation
Before
halfspace point coordinate0 term1 := mul(1/6, 10)
After
halfspace point coordinate0 term1 = 5/3
Conditions: none
Compute exactly with this step's specified roles,retaining signs,denominators and original pairings.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S011
S013 · calculation
Before
halfspace point coordinate0 sum := sum(0, 5/3)
After
halfspace point coordinate0 sum = 5/3
Conditions: none
Compute exactly with this step's specified roles,retaining signs,denominators and original pairings.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S012
S014 · calculation
Before
halfspace point coordinate1 term0 := mul(5/6, 0)
After
halfspace point coordinate1 term0 = 0
Conditions: none
Compute exactly with this step's specified roles,retaining signs,denominators and original pairings.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S013
S015 · calculation
Before
halfspace point coordinate1 term1 := mul(1/6, 0)
After
halfspace point coordinate1 term1 = 0
Conditions: none
Compute exactly with this step's specified roles,retaining signs,denominators and original pairings.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S014
S016 · calculation
Before
halfspace point coordinate1 sum := sum(0, 0)
After
halfspace point coordinate1 sum = 0
Conditions: none
Compute exactly with this step's specified roles,retaining signs,denominators and original pairings.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S015
S017 · calculation
Before
combined point dot term0 := mul(1, 5/3)
After
combined point dot term0 = 5/3
Conditions: none
Compute exactly with this step's specified roles,retaining signs,denominators and original pairings.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S016
S018 · calculation
Before
combined point dot term1 := mul(1, 0)
After
combined point dot term1 = 0
Conditions: none
Compute exactly with this step's specified roles,retaining signs,denominators and original pairings.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S017
S019 · calculation
Before
combined point dot sum := sum(5/3, 0)
After
combined point dot sum = 5/3
Conditions: none
Compute exactly with this step's specified roles,retaining signs,denominators and original pairings.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S018
S020 · calculation
Before
halfspace bound slack := sub(11, 5/3)
After
halfspace bound slack = 28/3
Conditions: none
Compute exactly with this step's specified roles,retaining signs,denominators and original pairings.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S019
S021 · implies
Before
normal dot z=5/3;endpoint dots=(0,10);lambda=5/6;bound=11
After
normal dot z=lambda*0+(1-lambda)*10<=11;inside=Yes
Conditions: none
Linearity makes the new dot product a nonnegative unit-weighted sum of endpoint values.Each is≤bound,so the result is≤bound.This algebraic reason is universal;the numbers instantiate it.
Step identifiers and dependencies
Rule: halfspace_linear_universal_reason · Uses: G001, S020