Skip to content

Questions: morphisms F-8 to F-10, unit test, rejection control - #26

Merged
hyperpolymath merged 1 commit into
mainfrom
claude/questions-instance
Nov 11, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
claude/questions-instance

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

Follow-up to #25, part 1 of 2. Classifies morphisms out of the Questions instance and gives it a unit test and an expected-rejection control. Part 2 records receipts and grades; it must follow the merge of this PR, because this PR changes the inputs of all three proof legs.

Changes

  • src/ResourceAlgebra/Morphism.agda:
    • F-8: one-question-hom, one-question-needs, one-question-unique. Out of one question there is exactly one strict morphism into an algebra B, and it exists exactly when B has 𝟘 ⊗ 𝟘 ≡ 𝟘.
    • F-9: first-question, later-questions. Each question can be read alone.
    • F-10: count-not-⊕. The number of lost questions does not preserve ⊕.
  • verification/proofs/coq/ResourceAlgebra.v and verification/proofs/lean4/ResourceAlgebra.lean: the same theorems, with 6 new assumption/axiom print lines in each.
  • tests/unit/QuestionsTest.agda, imported by AllTests.agda.
  • tests/reject/QuestionsMeetIsABranch.agda: the ninth expected rejection, the control for Q-4.
  • docs/status/PROOF-STATUS.adoc: rows F-8 to F-10, correspondence, nine rejections, the open list. Census: 29 rows, all ungraded.
  • README.adoc, docs/pre-registration.adoc, CHANGELOG.adoc.

Which morphisms to classify was a design choice made in this PR, not specified by the owner. Not classified: morphisms out of Questions n for n ≥ 2 beyond the projections, and every morphism into Questions.

RSR Quality Checklist

Required

  • Tests pass: see Testing. just test and just quality were not run as recipes.
  • Code is formatted (not run)
  • Linter is clean (not run)
  • No banned language patterns
  • No unsafe blocks (none)
  • No banned functions (no Admitted, no sorry, no postulate)
  • SPDX license headers present on the new source files, copied from the sibling files
  • No secrets, credentials, or .env files included

As Applicable

  • Documentation updated
  • CHANGELOG updated

Testing

  • bash scripts/check-agda.sh: pass, with all 9 expected rejections (Agda 2.6.3 locally; CI pins 2.6.4.3).
  • bash tests/unit/resource_algebra_test.sh: pass.
  • bash scripts/check-proofs.sh lean4 with Lean 4.35.0: pass. 56 of 56 printed theorems depend on no axiom.
  • Rocq: compiled with Coq 8.18.0 in a scratch copy with From Stdlib replaced by From Coq; 48 of 48 printed theorems are closed. Rocq 9.3.0 and rocqchk run only in CI.
  • check-adoc-renders, check-invisible-characters, check-no-placeholders, check-escape-hatches, check-no-md-in-docs, check-root-shape, just validate-claude-md: pass.

The commit is not signed. The session has no signing key.


Generated by Claude Code

Morphism.agda classifies the strict morphisms out of one question (F-8),
adds the per-question projections (F-9) and shows that the number of lost
questions does not preserve alternatives (F-10). Each is re-proved in the
Rocq and Lean legs. Adds tests/unit/QuestionsTest.agda and the ninth
expected rejection, QuestionsMeetIsABranch, as the control for Q-4. The
ledger records the rows; the census is 29, all ungraded.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_0136P7ZngnAq35mYcMvxDyS4
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath marked this pull request as ready for review November 11, 2026 15:58
@hyperpolymath
hyperpolymath merged commit e210630 into main Nov 11, 2026
45 checks passed
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-11T15:58:45.982455Z
We couldn’t complete this review. Comment @codex review to try again.
db26a96 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@hyperpolymath
hyperpolymath deleted the claude/questions-instance branch November 11, 2026 15:58
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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.

3 participants