core

package
v0.1.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2025 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlphaEq

func AlphaEq(a, b ast.Term) bool

AlphaEq compares two core terms modulo alpha (de Bruijn makes this structural).

func Conv

func Conv(a, b ast.Term, _ EtaFlags) bool

Conv reports whether terms a and b are definitionally equal under the given eta flags. Strategy: normalize via NbE then alpha-compare normal forms. (We keep eta-expansion in eval.Reify for functions/pairs behind flags later; for now, Conv simply compares the normal forms returned by eval.Normalize.)

Types

type EtaFlags

type EtaFlags struct{ Pi, Sigma bool }

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL