Skip to content

Fix/collapse bare tuple - #2

Merged
MesTTo merged 3 commits into
MesTTo:metatheoryfrom
zariuq:fix/collapse-bare-tuple
Jul 19, 2026
Merged

Fix/collapse bare tuple#2
MesTTo merged 3 commits into
MesTTo:metatheoryfrom
zariuq:fix/collapse-bare-tuple

Conversation

@zariuq

@zariuq zariuq commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Courtesy of Fable 5, Opus 4.8, Codex 5.5 and 5.6.

What this changes

Repairs equality-class binding reconciliation so a variable's equality class survives
matching and instantiation: (g $a $a $b) against (= (g $p1 $p2 $p2) (f $p1 $p2))
now returns (f $a $a) to match Hyperon, not (f $a $b). A preliminary commit aligns
the malformed unify error atom with the interpreter's message shape.

The checklist (all verified locally, once the fix above is folded in)

  • lake build succeeds: the kernel, the LeaTTa binary, and the Mathlib metatheory.
  • No sorry, admit, native_decide, partial, or unsafe in MettaHyperonFull/.
  • The differential oracle passes 270/270 (make oracle).
  • The regression suite passes (make regression).
  • New theorems keep their proofs under Proofs/, and the executable kernel stays Mathlib free.
  • Prose and comments follow the house style: plain and direct, no em dashes, no commenting the obvious.

Evidence, each run just now on the branch:

  • check-no-forbidden.sh → OK (this is what closes the partial/unsafe question my earlier sweeps never checked)
  • make oracle → 270/270 across 22 files
  • make regression → 47/47 + mettail-runtime PASS
  • lake build (full) → 8781 jobs green, std3 axioms
  • em-dash scan of the added diff lines → clean

zariuq and others added 3 commits July 15, 2026 15:16
Bad-arity unify now surfaces the upstream interpreter.rs message shape
("expected: (unify <atom> <pattern> <then> <else>), found: ...") instead of
a generic string. Upstream-PR candidate.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Represent variable aliases explicitly, reconcile class-wide values, retain unifier alias traces, and prove the repaired binding and substitution laws.
@MesTTo
MesTTo merged commit 3885010 into MesTTo:metatheory Jul 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants