Skip to content

Evidence

Equality evidence records an equality between indices that the checker has established. Matching a constructor can fix an index, and later checks use that equality to justify a type conversion. The checker generates this evidence and carries the refinement through the computation.

evidence

Kernel-generated equality evidence.

The first QIEC kernel has no arbitrary user proof language. Evidence is either reflexivity or a rigid branch given introduced by GADT elimination.

EqualityEvidence

EqualityEvidence = Reflexivity | BranchGiven

Kernel-generated evidence of a static equality: reflexivity or a branch's given.

Reflexivity didactic-model

Reflexivity(*, equality: EqualityType = field(opaque=True, extras=OPAQUE_BY_VALUE), tag: Literal['reflexivity'] = 'reflexivity')

Bases: QiecModel

Evidence that an equality holds because both sides are the same term.

PARAMETER DESCRIPTION
equality

The proposition witnessed, whose sides must be equal.

TYPE: EqualityType DEFAULT: field(opaque=True, extras=OPAQUE_BY_VALUE)

tag

The serialization discriminator; always "reflexivity".

TYPE: Literal['reflexivity'] DEFAULT: 'reflexivity'

BranchGiven didactic-model

BranchGiven(*, id: EqualityId = field(opaque=True, extras=OPAQUE_BY_VALUE), equality: EqualityType = field(opaque=True, extras=OPAQUE_BY_VALUE), tag: Literal['branch_given'] = 'branch_given')

Bases: QiecModel

Evidence granted by a case branch's constructor refinement.

PARAMETER DESCRIPTION
id

The stable identity of the given, derived from the branch scope.

TYPE: EqualityId DEFAULT: field(opaque=True, extras=OPAQUE_BY_VALUE)

equality

The proposition the branch's constructor makes available.

TYPE: EqualityType DEFAULT: field(opaque=True, extras=OPAQUE_BY_VALUE)

tag

The serialization discriminator; always "branch_given".

TYPE: Literal['branch_given'] DEFAULT: 'branch_given'