Skip to content

Record changes to the Kochen–Specker port - #1070

Merged
Vilin97 merged 1 commit into
mainfrom
reviewer/kochen-specker-change-notices
Nov 28, 2026
Merged

Vilin97 merged 1 commit into
mainfrom
reviewer/kochen-specker-change-notices

Conversation

@Vilin97

@Vilin97 Vilin97 commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

Adds an Apache-2.0 change notice to each of the five Kochen–Specker files that differs from the pinned upstream source. This follows up on the source review of #1065.

Each notice describes the local adaptation and follows the existing author and license header. Removing the five inserted comments reproduces the corresponding files on main byte for byte. git diff --check passed. Pinned upstream · Apache-2.0 §4

@greptile-apps

greptile-apps Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Advisory cross-file review against Lean Pool's supervisory rubric. This is not by itself a significance, source-verification, or merge verdict.

No blocking issue was found in this comment-only patch.RetriggerView in Greptile

[Low impact] No blocking issue was found in this comment-only patch.

Summary

Adds change notices to five Kochen–Specker files while preserving the existing copyright and license headers.

  • Five Kochen–Specker files now explain their local changes.

Reviews (1) · Last reviewed commit: "Record changes to the Kochen–Specker por..." · Reviewed by Greptile

@github-actions

Copy link
Copy Markdown
Contributor

Proof profile (new / modified Lean files)

Statement changes

✅ No statements changed — all 57 tracked declarations across 5 modified files kept their type; only proofs / definition bodies changed.

Statements are compared textually against the merge base (comments and whitespace ignored; by proof terms embedded in a type are treated as proof-irrelevant), the same method as physlib's /check-golf. Anonymous instances and examples are not tracked.

Compile cost of modified files — base → head

Heartbeats: 195,087 → 195,087 (+0, +0.0%). Commands: 93 → 93.

Per-file wall sum: 41.4 s → 33.5 s (-19.1%). Wall clock is measured under parallel load and is noisy; heartbeats are deterministic and are the regression signal.

Files: 5 compared — 0 cheaper, 0 costlier, 5 within noise (threshold: |Δ heartbeats| ≥ 1,000 and ≥ 1%).

Both sides are elaborated against the merge-base build of the pool — sound when only proofs and definition bodies change; a file whose statements changed may fail there and is flagged ⚠. Heartbeats come from disjoint root command traces with trace.profiler.useHeartbeats and synchronous elaboration, converted to maxHeartbeats units. Failed measurements are not classified as cheaper or costlier. Δ lines counts added/deleted lines from this PR diff.

File Δ lines HB base HB head Δ HB Δ HB % Wall base (s) Wall head (s)
LeanPool/KochenSpecker.lean +2/-0 0 0 +0 +0.0% 4.61 4.46
LeanPool/KochenSpecker/Cabello18.lean +2/-0 22,892 22,892 +0 +0.0% 7.62 6.98
LeanPool/KochenSpecker/Checker.lean +2/-0 10,748 10,748 +0 +0.0% 3.79 2.73
LeanPool/KochenSpecker/Main.lean +2/-0 6,997 6,997 +0 +0.0% 4.10 2.90
LeanPool/KochenSpecker/Peres33.lean +2/-0 154,449 154,449 +0 +0.0% 21.30 16.42
Total +10/-0 195,087 195,087 +0 +0.0% 41.4 33.5

Per-project compile cost (top 2 of 2 projects by |Δ heartbeats|):

Project Files HB base HB head Δ HB Δ HB %
(root) 1 0 0 +0 +0.0%
KochenSpecker 4 195,086 195,086 +0 +0.0%

Advisory only — never blocks merge. Full log uploaded as the proof-profile artifact.

@Vilin97

Vilin97 commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator Author

🤖 LLM review — refactor (gpt-6.2-sol)

Reviewed head: 4b557a6b95a4869b254368670cd0c3fe1611bc92

Verdict: ✅ approve

The PR adds five comments that accurately describe earlier changes to the Kochen–Specker port, including import adaptations, documentation edits, and the replacement Peres certificate. Reversing the insertions reproduces all five files on the PR base byte for byte. git diff --check passed, and the PR proof profile reports identical heartbeat counts. Pinned upstream · Proof profile

Aspect Value
Scope comment-only change notices
Introduces tech debt ✅ no
Maintainability ✅ improved
Brittleness ➖ unchanged
Risk ✅ low

The notices make local adaptations easier to trace during future upstream comparisons and preserve the existing proof structure.


Tokens: 267,993 in / 3,146 out · Tier: codex-subscription · Effort: xhigh · Billing: Codex subscription quota (no API credits) · Estimated cost: $0.5674 (Standard API equivalent; uncached input)
Automated review against .github/REFACTOR_REVIEW_RULES.md. Disagree? Reply on the PR; rules can be updated in a PR of their own.

@Vilin97
Vilin97 added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit 2ba0fbc Nov 28, 2026
27 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.

1 participant