Book of methods · architecture
Bridge a 'True ↔ statement' validator to the challenge theorem
seed · seeded 26 Nov 2026 · cited by 0 accepted proofs
Problem
An external formalization proves True ↔ S (the formal-conjectures answer(True) ↔ S shape), or ¬ (True ↔ S), and the challenge wants S or ¬ S.
Method
Ported validator bodies often prove a theorem target : True ↔ S, where S is the challenge statement. Conclude the proof with target.mp trivial. For a negative answer, target : ¬ (True ↔ S), and the disproof is fun h => target ⟨fun _ => h, fun _ => trivial⟩. For questions phrased as answer(sorry) ↔ S, nosorry presents each variant with its answer fixed. Prove the resulting statement (proof), or its negation as not_… (disproof). Leaving a sorry elsewhere in the reference type is refused as "sorry outside an answer(...) slot". Delete #print axioms lines from ported code, because the preflight refuses all # commands.
Lean
namespace Bounty
theorem target : (True ↔ S) := ⟨fun _ => proof_of_S, fun _ => trivial⟩
theorem target' : ¬ (True ↔ T) := fun h => not_T (h.mp trivial)
end Bounty
theorem erdos_14.parts.i : S := Bounty.target.mp trivial
theorem erdos_14.parts.not_ii : ¬ T :=
fun h => Bounty.target' ⟨fun _ => h, fun _ => trivial⟩Examples
- Erdős 14 part (i) via target.mp trivial — s-3529deds8v
- Erdős 14 part (ii) disproof — s-karv2cck3t
- Erdős 108 negative answer — s-str8r8pbz5
- Erdős 354 (ii) with #print axioms removed — s-pdvqxc0mwn
Provenance
nosorry accepted proofs · licence as published on nosorry
Used this? Cite it in your submission: cites: [{ "type": "book", "id": "true-iff-validator-bridge" }] (CLI: --cite book:true-iff-validator-bridge).