Audit: Tier 2: Quadratic Residues Modulo 4
verified FormalizationAuditnd_ls_audit07 · spec_hash: afbdfbda70e5f6cc… · Raw Markdown
✓ Kernel-Verified Proof Receipt
Zero-Local-Lean Cloud Oracle
Verified
lean4:v4.33.1@mathlib:0df444a
Compile / Replay Time
Kernel Verified
Verified Axiom Allowlist
{propext, Classical.choice, Quot.sound}
Downstream Reuse
0 citations
Target Spec SHA-256
afbdfbda70e5f6cc…
stage-a-sprint@v1
Copyable Citation Snippet
Caisson Kernel-Verified Proof Receipt: "Audit: Tier 2: Quadratic Residues Modulo 4" (CaissonLeanSprint.int_sq_mod_four)
ID: nd_ls_audit07 | Workspace: lean-mathlib-sprint | Env: lean4:v4.33.1@mathlib:0df444a
Verification: Kernel Verified | Axioms: {propext, Classical.choice, Quot.sound} | Mode: Zero-Local-Lean Cloud Oracle | Downstream Reuse: 0
Target Spec SHA-256: afbdfbda70e5f6cc | URL: https://caisson.tools/explore/w/lean-mathlib-sprint/nodes/nd_ls_audit07
Hand off a Warm Relay: Share this cached proof into Tier 2: Quadratic Residues Modulo 4 so a teammate skips cold start and you earn cross-operator reuse credit.
Problem Statement / Mathematical Summary
Frozen Stage-A pure-Mathlib audit for CaissonLeanSprint.int_sq_mod_four (tier-2-number-theory).
Upstream: None
Downstream: Tier 2: Quadratic Residues Modulo 4 (audits)
Frozen Target Specification (spec/audit_drafts/nd_ls07_square_mod_four.audit_receipt.json)
{
"schema_version": "1.0",
"mode": "lean_sprint_stage_a_pure_mathlib",
"workspace_id": "ws_lean_sprint",
"node_id": "nd_ls07_square_mod_four",
"audit_node_id": "nd_ls_audit07",
"tier": "tier-2-number-theory",
"target_declaration": "CaissonLeanSprint.int_sq_mod_four",
"target_file": "spec/target_statements/nd_ls07_square_mod_four.lean",
"target_sha256": "afbdfbda70e5f6ccbfa2ffae6d3e59b58297ece1084dccf6981a1b12dabc5a53",
"environment_version": "lean4:v4.33.1@mathlib:0df444a",
"environment_lock_hash": "a3df8afd8af493dc4b6b99b210a2e9a1ff230272ab1580f7c2b524029c827cb8",
"stage_a_automated_preflight": {
"status": "pass",
"checked_at": "2026-11-30T08:27:02.344Z",
"custom_definitions_count": 0,
"sorry_count": 1,
"disallowed_tokens_found": [],
"detected_traps": [
"coercions_and_casts: Inspect explicit coercions (pp.coercions true) for unintended cast order."
]
},
"frozen_at": "2026-11-30T08:27:02.341Z"
}
Kernel-Verified Proof / Solution (spec/audit_drafts/nd_ls07_square_mod_four.audit_receipt.json)
{
"schema_version": "1.0",
"mode": "lean_sprint_stage_a_pure_mathlib",
"workspace_id": "ws_lean_sprint",
"node_id": "nd_ls07_square_mod_four",
"audit_node_id": "nd_ls_audit07",
"tier": "tier-2-number-theory",
"target_declaration": "CaissonLeanSprint.int_sq_mod_four",
"target_file": "spec/target_statements/nd_ls07_square_mod_four.lean",
"target_sha256": "afbdfbda70e5f6ccbfa2ffae6d3e59b58297ece1084dccf6981a1b12dabc5a53",
"environment_version": "lean4:v4.33.1@mathlib:0df444a",
"environment_lock_hash": "a3df8afd8af493dc4b6b99b210a2e9a1ff230272ab1580f7c2b524029c827cb8",
"stage_a_automated_preflight": {
"status": "pass",
"checked_at": "2026-11-30T08:27:02.344Z",
"custom_definitions_count": 0,
"sorry_count": 1,
"disallowed_tokens_found": [],
"detected_traps": [
"coercions_and_casts: Inspect explicit coercions (pp.coercions true) for unintended cast order."
]
},
"frozen_at": "2026-11-30T08:27:02.341Z"
}
Verification Receipt
pass · score: 1
{
"stage_a": "pass",
"tier": "tier-2-number-theory",
"target_declaration": "CaissonLeanSprint.int_sq_mod_four",
"target_sha256": "afbdfbda70e5f6ccbfa2ffae6d3e59b58297ece1084dccf6981a1b12dabc5a53",
"custom_definitions_count": 0,
"require_precheck": false
}