Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Conv ¶
func Conv(env *Env, t, u ast.Term, opts ConvOptions) bool
Conv reports whether t and u are definitionally equal under env. If opts.EnableEta is true, use η-rules for functions (Pi) and pairs (Sigma).
Implementation strategy: 1. Evaluate both terms to Values using NbE 2. Reify both Values back to normal forms 3. Apply η-expansion if enabled 4. Compare normal forms structurally
Types ¶
type ConvOptions ¶ added in v1.2.0
type ConvOptions struct {
EnableEta bool // Enable η-equality for functions (Π) and pairs (Σ)
}
ConvOptions controls the behavior of definitional equality checking.
Click to show internal directories.
Click to hide internal directories.