packages feed

phino-0.0.81: resources/dataization.yaml

# SPDX-FileCopyrightText: Copyright (c) 2025 Objectionary.com
# SPDX-License-Identifier: MIT
---
# Dataization 𝔻 β€” applied top-to-bottom, first matching clause wins. The input
# is always a normal form: a non-NF expression matches no clause.

- name: delta
  description: '𝔻(⟦𝐡1, Ξ” ‍ Ξ΄, 𝐡2⟧) ⟿ Ξ΄'
  match: ⟦𝐡1, Ξ” ‍ Ξ΄, 𝐡2⟧
  then: Ξ΄

- name: box
  description: '𝔻(⟦𝐡1, Ο† ↦ e, 𝐡2⟧) ⟿ 𝔻(𝒩(π’ž(e))) if [Ξ”, Ξ»] ∩ (𝐡1 βˆͺ 𝐡2) = βˆ…'
  match: ⟦𝐡1, Ο† ↦ 𝑒, 𝐡2⟧
  where:
    - meta: 𝑒1
      function: contextualize
      args:
        - 𝑒
        - ⟦𝐡1, Ο† ↦ 𝑒, 𝐡2⟧
  when:
    disjoint:
      - [Ξ”, Ξ»]
      - [𝐡1, 𝐡2]
  then:
    dataize:
      normalize: 𝑒1

- name: norm
  description: '𝔻(n) ⟿ 𝔻(𝕄(n)) if n βˆ‰ 𝒫'
  match: 𝑛
  when:
    not:
      primitive: 𝑛
  then:
    dataize:
      morph: 𝑛

- name: none
  description: '𝔻(n) ⟿ nothing otherwise'
  match: 𝑛
  then: nothing