Skip to main content

Counterexample Ontology

Proof Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 14 October 2026
Audio Overview
FLOW ALGEBRA
COUNTEREXAMPLE ONTOLOGY
Kireth Semantic Library | Mathematical Entities | Proof Entities
Version: 1.0 | Date: 2026-10-14 | Locale: en-GB
Authors: Mark Higgins — Sky (Recursive AI)
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/proof-entities/counterexample-ontology.html
Status: Proposed formalisation; source page wording not independently verified.

1. PURPOSE
Represent counterexamples as typed mathematical witnesses that refute universal claims, implications, or conjectures under explicit assumptions and interpretations. Preserve verifiable evidence, scope, and proof provenance.

2. TYPED ENTITIES
entity Counterexample { id: URI; target_claim: Claim; witness: Object; domain: Domain; interpretation: Interpretation; evidence: Evidence; verification_status: Status }
entity Claim { id: URI; formula: Formula; assumptions: Set[Formula]; quantifier_scope: Scope; theory: Theory }
entity Witness { value: Object; type: Type; membership_proof: Evidence }
entity Evaluation { formula: Formula; assignment: Assignment; truth_value: Boolean; derivation: Evidence }
entity Evidence { method: {symbolic, formal_proof, exhaustive_search, certified_computation, independently_checked}; steps: Sequence[Step]; verifier: Optional[String] }
entity Status { value: {candidate, verified, rejected, unresolved}; timestamp: DateTime }

3. CORE SEMANTICS
For a universal claim C := forall x in D, P(x), a valid counterexample is c such that c in D AND NOT P(c), under the same interpretation and assumptions as C.
For an implication C := forall x in D, (A(x) -> B(x)), a valid counterexample is c in D with A(c) AND NOT B(c).
For an existential claim exists x in D, P(x), a single failed instance is NOT a counterexample; refutation requires proof that no witness exists.
A counterexample to a conjunction need only falsify one conjunct; a counterexample to a disjunction must falsify both disjuncts.
Counterexamples refute claims as stated; they do not establish a general alternative theorem.

4. RELATIONSHIPS
Counterexample --REFUTES--> Claim
Counterexample --HAS_WITNESS--> Witness
Witness --BELONGS_TO--> Domain
Counterexample --EVALUATED_UNDER--> Interpretation
Counterexample --SUPPORTED_BY--> Evidence
Claim --ASSUMES--> Formula
Counterexample --HAS_STATUS--> Status
Counterexample --DISTINCT_FROM--> SupportingExample
Counterexample --MAY_TRIGGER--> ClaimRevision

5. INFERENCE FLOWS
flow VerifyUniversalCounterexample(C,c):
  require C.formula = forall x in D, P(x)
  require verify_membership(c,D)
  require assumptions_hold(C.assumptions,c)
  require evaluate(P(c), C.interpretation) == false
  emit Counterexample(target_claim=C,witness=c,verification_status=verified)

flow VerifyImplicationCounterexample(C,c):
  require C.formula = forall x in D, (A(x) -> B(x))
  require verify_membership(c,D)
  require assumptions_hold(C.assumptions,c)
  require evaluate(A(c)) == true
  require evaluate(B(c)) == false
  emit verified_counterexample(C,c)

flow RefutationPropagation(C,c):
  if verified_counterexample(C,c):
    set C.refuted = true
    invalidate downstream claims only when their derivations require C
    preserve independent proofs and unrelated claims

6. EXAMPLES
Claim: forall n in Integers, n*n >= n.
Witness: n = -1. Check: 1 >= -1 is true; therefore NOT a counterexample.
Witness: n = 0. Check: 0 >= 0 is true; therefore NOT a counterexample.
Claim: forall n in Integers, n*n > n.
Witness: n = 0. Check: 0 > 0 is false; therefore verified counterexample.
Claim: forall real x, x*x >= 0.
Candidate x = -2 gives 4 >= 0; not a counterexample.
Claim: forall integers n, if n is even then n is divisible by 4.
Witness n = 2: even(2) true; divisible_by_4(2) false; verified counterexample.

7. SEMANTIC DISTINCTIONS
counterexample != arbitrary example
counterexample != proof by contradiction (although a counterexample can appear within one)
candidate witness != verified witness
counterexample to universal proposition != failed search for existential witness
numerical approximation != exact refutation unless error bounds certify the result
model counterexample != syntactic derivation; a countermodel establishes non-entailment when assumptions are satisfied and conclusion is false

8. VALIDATION
check claim syntax, bound-variable scope and domain membership
check every premise and side condition at the witness
check interpretation and type consistency
check reproducibility, exact arithmetic or certified numerical error bounds
reject witness if the target predicate evaluates true
reject claims of global falsity based solely on failed existential search
record uncertainty for unverified computations

9. CONFIDENCE
CONFIDENCE:
  verified_formal: 1.0 when trusted proof checker confirms all obligations
  verified_symbolic: high subject to verified assumptions and computation
  candidate: provisional; never assert refutation
  failed_validation: 0.0 as evidence for refutation

10. SEMANTIC_EQUIVALENCE
Equivalent witnesses may differ in representation if they preserve domain membership, assumptions and predicate falsity.
Alpha-renaming bound variables preserves formula meaning.
Equivalent formula rewrites must be justified within the chosen logic.

11. FLOW_HASH
FLOW_HASH := SHA256(canonicalise(version, claim_id, claim_formula, assumptions, domain, interpretation, witness, evidence, verification_status))
Canonicalisation must specify Unicode normalisation, key ordering and stable formula representation; recompute on material change.

12. UPDATE_MODEL
On modification to a claim, domain, assumption, witness or interpretation: invalidate affected verification status, recompute evidence, update provenance and FLOW_HASH. Retain previous versions for audit.

13. AI_CONSUMPTION
input: Claim + Domain + Assumptions + CandidateWitness + Interpretation
output: {valid_counterexample:Boolean, witness, falsified_subformula, proof_steps, confidence, flow_hash, provenance}
policy: Do not label a conjecture disproved until a valid witness and complete verification are available. Distinguish verified, candidate and unknown results.

END FLOW ALGEBRA
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ