⚠ 您正在浏览 Cubical 库。 返回 Bedrock
Bedrock
English · 中文
菜单
依赖地图
模块
  • Landmarks
  • Base
    • Prelude
    • Truth
    • Impredicativity
    • Classical
    • Choice
  • FOL
    • Syntax
    • ZFStructure
    • Semantics
    • LevyHierarchy
    • Absoluteness
    • ZFModel
    • Manipulation
      • Relabelling
      • Bounding
      • Parameters
      • Renaming
      • Relativize
    • Coding
  • V
    • Hierarchy
    • Smallness
    • Model
    • Coding
  • L
    • Definability
    • Constructible
    • Ordinal
    • Rank
    • Ordinal
      • Linear
      • Stages
    • WellOrder
      • Base
    • Coding
      • Base
      • Environment
      • Model
      • InL
      • Closed
      • EnvSet
      • Sat
      • Bridge
      • Table
      • Sound
      • Unique
      • Slot
      • Descent
      • Shape
      • Recover
      • CodeSet
      • Graph
      • Satisfaction
      • Uniform
      • Powerset
      • Sequence
    • Stage
    • Axioms
      • Basic
      • Separation
      • Full
      • Power
      • Numerals
      • Infinity
    • Reflect
    • ReflectFo
    • Absoluteness
    • Recursion
    • Hierarchy
    • Choice
      • Stage
      • Finite
      • Name
      • Step
      • Internal
      • Table
      • Faithful
      • Adequate
      • Limit
      • Before
      • Order
      • Transversal
    • Model
{-# OPTIONS --cubical-compatible --safe --no-universe-polymorphism
            --no-sized-types --no-guardedness --level-universe #-}

module Agda.Builtin.Bool where

data Bool : Set where
  false true : Bool

{-# BUILTIN BOOL  Bool  #-}
{-# BUILTIN FALSE false #-}
{-# BUILTIN TRUE  true  #-}

{-# COMPILE JS Bool  = function (x,v) { return ((x)? v["true"]() : v["false"]()); } #-}
{-# COMPILE JS false = false #-}
{-# COMPILE JS true  = true  #-}
使用改编自 1lab 的生成器渲染 (AGPL-3.0)。
© 2026 Bedrock Institute · 内容以 CC BY-NC-SA 4.0 许可 · 源码