feat(axiom5): Angle bisector (bisect --l1 --l2 toward .p) #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "v0.4-axiom5"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds classic axiom 5 — the fold placing one line onto another (the angle bisector) — as
bisect --l1 --l2 toward .p. Two intersecting lines have two bisectors; the optionaltoward .pselector picks the one whose angular sector contains.p; two parallel lines give their single midline.This is the first axiom to leave ℚ, so the geometry core is migrated from
Qto the exact constructible reals (Num, v0.3) — axioms 1–4 stay rational on the fast-path (behaviour unchanged, regression-gated), and bisectors carry exact√coordinates (e.g. slope√2−1).Errors: identical lines; intersecting without
toward;.pon a fold line. 52 tests green; version0.3.0-dev. Spec §4.5; theNumdecision is ADR 0010.Examples this PR adds (rendered with
tools/fold2svg.mjs):bisect-a.belvsbisect-b.bel— same two midlines (--v/--h),toward .ppicks a different bisector:bisect-parallel.bel— parallel inputs → their single midline (notoward):bisect-intermediate.bel—toward .int(a constructed point at (1/4,0)) selects the side only; the a–c bisector does not pass through.int:9cb2223b80to51bf3951c240eea18148to5653ec6595