Submit Search
Upload
03 - Scala. Boolean type
•
0 likes
•
53 views
Roman Brovko
Follow
03 - Scala. Boolean type
Read less
Read more
Software
Report
Share
Report
Share
1 of 5
Download now
Download to read offline
Recommended
12 - Scala. Empty and unit types
12 - Scala. Empty and unit types
Roman Brovko
10 - Scala. Co-product type (sum type)
10 - Scala. Co-product type (sum type)
Roman Brovko
11 - Scala. Function type
11 - Scala. Function type
Roman Brovko
Variational inference using implicit distributions
Variational inference using implicit distributions
Tomasz Kusmierczyk
Paper Summary of Infogan-CR : Disentangling Generative Adversarial Networks w...
Paper Summary of Infogan-CR : Disentangling Generative Adversarial Networks w...
준식 최
Automatic variational inference with latent categorical variables
Automatic variational inference with latent categorical variables
Tomasz Kusmierczyk
09 - Scala. Product type
09 - Scala. Product type
Roman Brovko
17 - Scala. Identity type. Curry–Howard correspondence
17 - Scala. Identity type. Curry–Howard correspondence
Roman Brovko
Recommended
12 - Scala. Empty and unit types
12 - Scala. Empty and unit types
Roman Brovko
10 - Scala. Co-product type (sum type)
10 - Scala. Co-product type (sum type)
Roman Brovko
11 - Scala. Function type
11 - Scala. Function type
Roman Brovko
Variational inference using implicit distributions
Variational inference using implicit distributions
Tomasz Kusmierczyk
Paper Summary of Infogan-CR : Disentangling Generative Adversarial Networks w...
Paper Summary of Infogan-CR : Disentangling Generative Adversarial Networks w...
준식 최
Automatic variational inference with latent categorical variables
Automatic variational inference with latent categorical variables
Tomasz Kusmierczyk
09 - Scala. Product type
09 - Scala. Product type
Roman Brovko
17 - Scala. Identity type. Curry–Howard correspondence
17 - Scala. Identity type. Curry–Howard correspondence
Roman Brovko
130701 04-01-2013
130701 04-01-2013
Sampath Reddy
[Question Paper] Object Oriented Programming With C++ (Revised Course) [Janua...
[Question Paper] Object Oriented Programming With C++ (Revised Course) [Janua...
Mumbai B.Sc.IT Study
04 - Scala. Type of natural numbers
04 - Scala. Type of natural numbers
Roman Brovko
Gram-Schmidt and QR Decomposition (Factorization) of Matrices
Gram-Schmidt and QR Decomposition (Factorization) of Matrices
Isaac Yowetu
Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014
Sreeju Sree
3 trig identitiessumdiffsinecosine
3 trig identitiessumdiffsinecosine
Media4math
Sigma type
Sigma type
Dmytro Mitin
lossless data compression and decompression using simple byte coding
lossless data compression and decompression using simple byte coding
Harshini Thota
N4.4
N4.4
susan70
Logarithm Problems
Logarithm Problems
Reversearp
Shortest Path Search with pgRouting
Shortest Path Search with pgRouting
FOSS4G 2011
Eliminators into dependent types
Eliminators into dependent types
Dmytro Mitin
19 - Scala. Eliminators into dependent types (induction)
19 - Scala. Eliminators into dependent types (induction)
Roman Brovko
Fun with automata
Fun with automata
John De Goes
Graph theory ppt
Graph theory ppt
LakshmiPriyaM6
Robot Exploration with Combinatorial Auctions
Robot Exploration with Combinatorial Auctions
techmonkey4u
Alg II 2-7 Transformations
Alg II 2-7 Transformations
jtentinger
Individual task Networking
Individual task Networking
Roman Brovko
Networking essentials lect3
Networking essentials lect3
Roman Brovko
Gl embedded starterkit_ethernet
Gl embedded starterkit_ethernet
Roman Brovko
Networking essentials lect2
Networking essentials lect2
Roman Brovko
Networking essentials lect1
Networking essentials lect1
Roman Brovko
More Related Content
What's hot
130701 04-01-2013
130701 04-01-2013
Sampath Reddy
[Question Paper] Object Oriented Programming With C++ (Revised Course) [Janua...
[Question Paper] Object Oriented Programming With C++ (Revised Course) [Janua...
Mumbai B.Sc.IT Study
04 - Scala. Type of natural numbers
04 - Scala. Type of natural numbers
Roman Brovko
Gram-Schmidt and QR Decomposition (Factorization) of Matrices
Gram-Schmidt and QR Decomposition (Factorization) of Matrices
Isaac Yowetu
Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014
Sreeju Sree
3 trig identitiessumdiffsinecosine
3 trig identitiessumdiffsinecosine
Media4math
Sigma type
Sigma type
Dmytro Mitin
lossless data compression and decompression using simple byte coding
lossless data compression and decompression using simple byte coding
Harshini Thota
N4.4
N4.4
susan70
Logarithm Problems
Logarithm Problems
Reversearp
Shortest Path Search with pgRouting
Shortest Path Search with pgRouting
FOSS4G 2011
Eliminators into dependent types
Eliminators into dependent types
Dmytro Mitin
19 - Scala. Eliminators into dependent types (induction)
19 - Scala. Eliminators into dependent types (induction)
Roman Brovko
Fun with automata
Fun with automata
John De Goes
Graph theory ppt
Graph theory ppt
LakshmiPriyaM6
Robot Exploration with Combinatorial Auctions
Robot Exploration with Combinatorial Auctions
techmonkey4u
Alg II 2-7 Transformations
Alg II 2-7 Transformations
jtentinger
What's hot
(17)
130701 04-01-2013
130701 04-01-2013
[Question Paper] Object Oriented Programming With C++ (Revised Course) [Janua...
[Question Paper] Object Oriented Programming With C++ (Revised Course) [Janua...
04 - Scala. Type of natural numbers
04 - Scala. Type of natural numbers
Gram-Schmidt and QR Decomposition (Factorization) of Matrices
Gram-Schmidt and QR Decomposition (Factorization) of Matrices
Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014
3 trig identitiessumdiffsinecosine
3 trig identitiessumdiffsinecosine
Sigma type
Sigma type
lossless data compression and decompression using simple byte coding
lossless data compression and decompression using simple byte coding
N4.4
N4.4
Logarithm Problems
Logarithm Problems
Shortest Path Search with pgRouting
Shortest Path Search with pgRouting
Eliminators into dependent types
Eliminators into dependent types
19 - Scala. Eliminators into dependent types (induction)
19 - Scala. Eliminators into dependent types (induction)
Fun with automata
Fun with automata
Graph theory ppt
Graph theory ppt
Robot Exploration with Combinatorial Auctions
Robot Exploration with Combinatorial Auctions
Alg II 2-7 Transformations
Alg II 2-7 Transformations
More from Roman Brovko
Individual task Networking
Individual task Networking
Roman Brovko
Networking essentials lect3
Networking essentials lect3
Roman Brovko
Gl embedded starterkit_ethernet
Gl embedded starterkit_ethernet
Roman Brovko
Networking essentials lect2
Networking essentials lect2
Roman Brovko
Networking essentials lect1
Networking essentials lect1
Roman Brovko
Bare metal training_07_spi_flash
Bare metal training_07_spi_flash
Roman Brovko
Bare metal training_06_I2C
Bare metal training_06_I2C
Roman Brovko
Glesk worshop
Glesk worshop
Roman Brovko
Bare metal training_05_uart
Bare metal training_05_uart
Roman Brovko
Bare metal training_04_adc_temp_sensor
Bare metal training_04_adc_temp_sensor
Roman Brovko
Bare metal training_03_timers_pwm
Bare metal training_03_timers_pwm
Roman Brovko
Bare metal training_02_le_ds_and_buttons
Bare metal training_02_le_ds_and_buttons
Roman Brovko
Bare metal training_01_hello_world
Bare metal training_01_hello_world
Roman Brovko
Bare metal training_00_prerequisites
Bare metal training_00_prerequisites
Roman Brovko
C language lect_23_advanced
C language lect_23_advanced
Roman Brovko
C language lect_22_advanced
C language lect_22_advanced
Roman Brovko
C language lect_21_advanced
C language lect_21_advanced
Roman Brovko
подготовка рабочего окружения
подготовка рабочего окружения
Roman Brovko
C language lect_20_advanced
C language lect_20_advanced
Roman Brovko
C language lect_19_basics
C language lect_19_basics
Roman Brovko
More from Roman Brovko
(20)
Individual task Networking
Individual task Networking
Networking essentials lect3
Networking essentials lect3
Gl embedded starterkit_ethernet
Gl embedded starterkit_ethernet
Networking essentials lect2
Networking essentials lect2
Networking essentials lect1
Networking essentials lect1
Bare metal training_07_spi_flash
Bare metal training_07_spi_flash
Bare metal training_06_I2C
Bare metal training_06_I2C
Glesk worshop
Glesk worshop
Bare metal training_05_uart
Bare metal training_05_uart
Bare metal training_04_adc_temp_sensor
Bare metal training_04_adc_temp_sensor
Bare metal training_03_timers_pwm
Bare metal training_03_timers_pwm
Bare metal training_02_le_ds_and_buttons
Bare metal training_02_le_ds_and_buttons
Bare metal training_01_hello_world
Bare metal training_01_hello_world
Bare metal training_00_prerequisites
Bare metal training_00_prerequisites
C language lect_23_advanced
C language lect_23_advanced
C language lect_22_advanced
C language lect_22_advanced
C language lect_21_advanced
C language lect_21_advanced
подготовка рабочего окружения
подготовка рабочего окружения
C language lect_20_advanced
C language lect_20_advanced
C language lect_19_basics
C language lect_19_basics
Recently uploaded
top nidhi software solution freedownload
top nidhi software solution freedownload
vrstrong314
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
Tendenci - The Open Source AMS (Association Management Software)
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Shahin Sheidaei
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2
Studiovity film pre-production and screenwriting software
Studiovity film pre-production and screenwriting software
info611746
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
Jelle | Nordend
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
iGaming Platform & Lottery Solutions by Skilrock
iGaming Platform & Lottery Solutions by Skilrock
Skilrock Technologies
AI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning Framework
Alluxio, Inc.
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
Alluxio, Inc.
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should Know
Peter Caitens
Breaking the Code : A Guide to WhatsApp Business API.pdf
Breaking the Code : A Guide to WhatsApp Business API.pdf
Meon Technology
GraphAware - Transforming policing with graph-based intelligence analysis
GraphAware - Transforming policing with graph-based intelligence analysis
Neo4j
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
Tier1 app
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
Alluxio, Inc.
Top Mobile App Development Companies 2024
Top Mobile App Development Companies 2024
XongoLab Technologies LLP
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
kalichargn70th171
AI/ML Infra Meetup | ML explainability in Michelangelo
AI/ML Infra Meetup | ML explainability in Michelangelo
Alluxio, Inc.
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
KnowledgeSeed
Recently uploaded
(20)
top nidhi software solution freedownload
top nidhi software solution freedownload
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
Studiovity film pre-production and screenwriting software
Studiovity film pre-production and screenwriting software
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
iGaming Platform & Lottery Solutions by Skilrock
iGaming Platform & Lottery Solutions by Skilrock
AI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
AI/ML Infra Meetup | Improve Speed and GPU Utilization for Model Training & S...
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should Know
Breaking the Code : A Guide to WhatsApp Business API.pdf
Breaking the Code : A Guide to WhatsApp Business API.pdf
GraphAware - Transforming policing with graph-based intelligence analysis
GraphAware - Transforming policing with graph-based intelligence analysis
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
Top Mobile App Development Companies 2024
Top Mobile App Development Companies 2024
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
AI/ML Infra Meetup | ML explainability in Michelangelo
AI/ML Infra Meetup | ML explainability in Michelangelo
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
A Python-based approach to data loading in TM1 - Using Airflow as an ETL for TM1
03 - Scala. Boolean type
1.
Boolean type Dmytro Mitin https://stepik.org/course/49181 December
2018 Dmytro Mitin Boolean type
2.
Boolean type Haskell import Prelude
hiding (Bool, True, False) data Bool = True | False Scala sealed trait Bool case object True extends Bool case object False extends Bool Java public interface Bool {} public class True implements Bool {} public class False implements Bool {} Dmytro Mitin Boolean type
3.
Boolean type 1 Type
Formation Γ ctx Γ Bool : ∗ 2 Constructors Γ ctx Γ true : Bool Γ ctx Γ false : Bool 3 Eliminator Γ c1 : C Γ c2 : C Γ, x : Bool if(x)(c1, c2) : C x match { case True => c1; case False => c2 } Dmytro Mitin Boolean type
4.
Boolean type 4 Computation
rules (”β-reduction“) Γ c1 : C Γ c2 : C Γ, x : Bool if(true)(c1, c2) ≡ c1 : C Γ c1 : C Γ c2 : C Γ, x : Bool if(false)(c1, c2) ≡ c2 : C 5 Uniqueness principle (”η-conversion“) Dmytro Mitin Boolean type
5.
ProvingGround git clone --recursive
https://github.com/siddhartha-gadgil/ProvingGround.git cd ProvingGround mill -i mantle.repl import provingground.HoTT. import provingground.induction.TLImplicits. import shapeless. val Bool = "Boolean" :: Type val b = "b" :: Bool val BoolInd = ("true" ::: Bool) |: ("false" ::: Bool) =: Bool val tru :: fls :: HNil = BoolInd.intros val recBB = BoolInd.rec(Bool) val not = recBB(fls)(tru) not(tru) == fls val recBBB = BoolInd.rec(Bool ->: Bool) val and = recBBB(b :-> b)(b :-> fls) and(tru)(fls) == fls Dmytro Mitin Boolean type
Download now