mid M_n N \\
\text{Neutral proof} & \delta_n & ::= & p \mid P_n^+ \mid P_n^- \mid \delta_n \epsilon \\
\text{Neutral path} & P_n & ::= & e \mid P_n \supset^* Q \mid Q \supset^* P_n \mid (P_n)_{MN} Q
\end{array}$$

Examples
========

We present two examples illustrating the way that proofs and paths behave in PHOML. In each case, we compare the example with the same construction performed in cubical type theory.

Functions Respect Logical Equivalence {#section:exampletwo}
-------------------------------------

As discussed in the introduction, every function of type $\Omega \rightarrow \Omega$ that can be constructed in PHOML must respect logical equivalence. This fact can actually be proved in PHOML, in the following sense: there exists a proof $\delta$ of $$f : \Omega \rightarrow \Omega, x : \Omega, y : \Omega, p : x \supset y, q : y \supset x \vdash \delta : f x \supset f y$$ and a proof of $f y \supset f x$ in the same context. Together, these can be read as a proof of ’if $f : \Omega \rightarrow \Omega$ and $x$ and $y$ are logically equivalent, then $fx$ and $fy$ are logically equivalent’.

Specifically, take $$\delta {\mathrel{\smash{\stackrel{\text{def}}{=}}}}({\ensuremath{\mathrm{ref} \left( {f} \right)}}_{xy} {\ensuremath{\mathrm{univ}_{{x}, {y}} \left({p}, {q} \right)}})^+ \enspace.$$

Note that this is not possible in Martin-Löf Type Theory.

In cubical type theory, we can construct a term $\delta$ such that $$f : {\mathsf{Prop}}\rightarrow {\mathsf{Prop}}, x : {\mathsf{Prop}}, y : {\mathsf{Prop}}, p : x.1 \rightarrow y.1, q : y.1 \rightarrow x.1 \vdash \delta : (f x).1 \rightarrow (f y).1$$ In fact, we can go further and prove that equality of propositions is
mid M_n N \\ 
 \text{Neutral proof } & \delta_n &: : = & p \mid P_n^+ \mid P_n^- \mid \delta_n \epsilon \\ 
 \text{Neutral path } & P_n &: : = & e \mid P_n \supset^ * Q \mid Q \supset^ * P_n \mid (P_n)_{MN } Q 
 \end{array}$$ 

 Examples 
 = = = = = = = = 

 We present two exemplar illustrate the way that proofs and paths act in PHOML. In each case, we compare the example with the same structure do in cubical character hypothesis. 

 Functions Respect Logical Equivalence { # incision: exampletwo } 
 ------------------------------------- 

 As discussed in the introduction, every affair of type $ \Omega \rightarrow \Omega$ that can be constructed in PHOML must respect logical equivalence. This fact can actually be proved in PHOML, in the following common sense: there exists a proof $ \delta$ of $ $ f: \Omega \rightarrow \Omega, x: \Omega, y: \Omega, phosphorus: x \supset y, q: y \supset x \vdash \delta: f x \supset f y$$ and a proof of $ f y \supset f x$ in the same context. Together, these can be read as a proof of ’ if $ degree fahrenheit: \Omega \rightarrow \Omega$ and $ x$ and $ y$ are logically equivalent, then $ fx$ and $ fy$ are logically equivalent ’. 

 Specifically, take $ $ \delta { \mathrel{\smash{\stackrel{\text{def}}{=}}}}({\ensuremath{\mathrm{ref } \left ({ f } \right)}}_{xy } { \ensuremath{\mathrm{univ}_{{x }, { y } } \left({p }, { q } \right)}})^+ \enspace.$$ 

 Note that this is not possible in Martin - Löf Type Theory. 

 In cubical type hypothesis, we can construct a term $ \delta$ such that $ $ f: { \mathsf{Prop}}\rightarrow { \mathsf{Prop } }, x: { \mathsf{Prop } }, y: { \mathsf{Prop } }, p: x.1 \rightarrow y.1, q: y.1 \rightarrow x.1 \vdash \delta: (f x).1 \rightarrow (f y).1$$ In fact, we can go further and prove that equality of proposal is
mid M_n N \\
\text{Neutral proof} & \delta_n & ::= & p \mib P_n^+ \miv P_n^- \mis \delta_n \epsilon \\
\text{Neutral path} & P_i & ::= & e \mie P_n \supset^* Q \mid Q \suoset^* P_n \mpd (P_n)_{MN} Q
\wnd{acray}$$

Examples
========

We pcssent two exajiles nloustrating the way that [roofs and patvs bzhave in PHOML. In each case, we compawe the rxwmple with the samt cjnstdlcuion performed in cubical type thsory.

Funbtions Respect Lobical Equivalence {#section:edamppetwo}
-------------------------------------

As discussed ln the intriduceuon, every fuvction of uy'e $\Omega \rifhtarrow \Omega$ that can be consgructzd in PHOML myst tespect logiral eqlivalence. This fact cdn actuslly be proved in PHIML, in the following vense: there exists a proof $\gemta$ of $$f : \Omega \rugytarrmw \Okega, z : \Umefa, y : \Omegw, p : x \supset y, q : y \supwet x \vdash \delta : g v \supset f y$$ ahd a pwojf of $f y \supset f x$ in the same contexu. Togsther, these can be read as a proof of ’if $f : \Lmega \rigrtarrow \Omega$ and $x$ and $y$ are logically equivalend, thei $wx$ ckq $dy$ are logically equivalent’.

Specifically, take $$\dejfa {\msthrel{\smash{\stagkrel{\text{def}}{=}}}}({\ensurekahh{\kwthrm{ref} \left( {f} \rigkf)}}_{xg} {\ensuremath{\mathrm{kniv}_{{x}, {y}} \left({p}, {q} \right)}})^+ \enslace.$$

Note that this is not pissible in Mcrtun-Löf Type Theory.

In cubical ty'e thepry, wr can construct a term $\belta$ auch that $$f : {\mathsf{Pdup}}\rightarrow {\matfsf{Irop}}, x : {\mathsf{Prop}}, y : {\mathsf{Prjp}}, p : x.1 \rmghtaxrow y.1, q : y.1 \tightarwow x.1 \vdasj \delbd : (f x).1 \rightarrow (v y).1$$ Iu facd, we can gl further and prove that equalivb of propositoots ps
mid M_n N \\ \text{Neutral proof} & ::= p \mid \mid P_n^- \mid & & ::= & \mid P_n \supset^* \mid Q \supset^* P_n \mid (P_n)_{MN} \end{array}$$ Examples ======== We present two examples illustrating the way that proofs and behave in PHOML. In each case, we compare the example with the same performed cubical theory. Respect Logical Equivalence {#section:exampletwo} ------------------------------------- As discussed in the introduction, every function of type $\Omega \rightarrow that can be constructed in PHOML must respect equivalence. This fact can be proved in PHOML, in following there exists proof of : \Omega \rightarrow x : \Omega, y : \Omega, p : x \supset y, q : y \supset x \vdash : f f y$$ a of y \supset f the same context. Together, these can a proof of ’if $f : \Omega \rightarrow and $x$ $y$ are logically equivalent, then $fx$ $fy$ are logically equivalent’. Specifically, take $$\delta {\mathrel{\smash{\stackrel{\text{def}}{=}}}}({\ensuremath{\mathrm{ref} {f} \right)}}_{xy} {\ensuremath{\mathrm{univ}_{{x}, {y}} \left({p}, {q} \right)}})^+ \enspace.$$ Note that this is not possible in Theory. In cubical type we can construct term such $$f {\mathsf{Prop}}\rightarrow {\mathsf{Prop}}, : {\mathsf{Prop}}, y : {\mathsf{Prop}}, p : x.1 \rightarrow y.1, q y.1 \rightarrow x.1 \vdash \delta : (f x).1 \rightarrow (f fact, can go further prove that equality of is
mid M_n N \\
\text{Neutral proof} & \delTa_n & ::= & p \mid P_n^+ \mId P_n^- \mId \dEltA_n \EpsiLon \\
\tExt{Neutral path} & p_N & ::= & e \miD P_n \supset^* Q \mid Q \supset^* P_n \Mid (P_n)_{mN} q
\End{aRRaY}$$

ExamPles
========

We pREsENT twO eXaMplEs ILlUstraTinG the way That proofs And PaThs behave in PhoMl. In each casE, we Compare the exAmpLe with ThE saME consTruCtion PerforMEd in cuBical type ThEOry.

FunCTions ReSPEcT LogIcal Equivalence {#seCTiON:exampletwo}
-------------------------------------

As dIscussEd IN tHE IntRodUction, everY fUnctiON of type $\oMeGA \RIghTArrow \Omega$ thaT can be constRUctEd in PHoMl muST respeCt logIcAL eqUivalence. ThIs faCt can actuAlly be PRoved in phOML, in tHe follOwiNg sEnse: THeRe ExiStS A prOOf $\DelTA$ of $$F : \Omega \riGhTaRrow \OMega, X : \oMEGa, y : \OMegA, p : x \sUpset Y, q : y \supset x \vdaSh \dElta : F X \suPset f Y$$ and a ProoF oF $f y \suPset f x$ In the SaMe context. TogethEr, thEse can be rEad As A prOoF of ’if $F : \omega \rIghTarRow \OmegA$ and $x$ anD $Y$ arE lOGICaLly equivalent, then $fX$ aND $Fy$ Are logicAlly eqUIvAlENt’.

SpecifIcAllY, takE $$\DElta {\mAthrEL{\sMash{\stacKrel{\teXT{dEf}}{=}}}}({\EnsuremAtH{\mathrM{rEf} \lEft( {F} \righT)}}_{Xy} {\enSuremaTh{\mathrm{Univ}_{{x}, {Y}} \Left({p}, {q} \right)}})^+ \ensPAce.$$

Note that thIS iS NOt POssiBle In Martin-Löf type tHeorY.

In cUBiCal TYpe thEory, wE cAN cONstruct a term $\delta$ suCh That $$f : {\mAthsf{prop}}\rightarroW {\mathsf{ProP}}, X : {\MAthsf{ProP}}, y : {\maTHsF{prop}}, p : x.1 \rightarrOw y.1, q : y.1 \Rightarrow X.1 \Vdash \delTa : (f x).1 \rIghtarroW (f y).1$$ In fact, WE Can go furTheR anD prOve THAt Equality of proPOSitiOnS is
mid M_n N \\
\text{Neutral  proof} &\delt a_n  &:: = &p \m id P_n^+ \midP _n^-  \mid \delta_n \epsilo n \\\t e xt{N e ut ral p ath} &P _n &  :: =&e \ mi d  P _n \s ups et^* Q\mid Q \su pse t^ * P_n \mid ( P _n )_{MN} Q
\ end {array}$$

E xam ples
= == === = =

We  pr esent  two e x amples  illustra ti n g thew ay that p ro ofsand paths behavei nP HOML. In eachcase,we co m p are  th e examplewi th th e  same c o ns t r u cti o n performed i n cubical t y petheory .
Fu n ctions  Resp ec t  Lo gical Equiv alen ce {#sect ion:ex a mpletwo } 
------ ------ --- --- ---- - -- -- --- -- - --- - 
Asd isc ussed in  t he  intr oduc t i o n , ev ery  fun ction  of type $\Om ega  \ri g hta rrow\Omeg a$ t ha t can  be co nstru ct ed in PHOML mus t re spect log ica lequ iv alenc e . This  fa ctcan act ually b e  pr ov e d in  PHOML, in the fol lo w i ng  sense:theree xi st s  a proof  $ \de lta$ o f $$f  : \ O me ga \righ tarrow \O me ga, x :  \ Omega,  y  :\Om ega,p  : x  \sups et y, q: y \ s upset x \vdash \delta : f x\ su p s et f y$ $ a nd a proofof $ f  y \ sups e tf x $  in t he sa me co n text. Together, the se  can b e rea d as a proofof ’if $f: \ Omega \r ight a rr o w \Omega$ and$x$ a nd $y$ are logicall y equ ivalent,  then $fx $ and $fy$  ar e l ogi cal l y  e quivalent’.
S p ecif ic ally, t ake  $$\del ta{\m ath rel {\ smash{\st ackrel{\ te xt {d ef }}{ =}}}} ( {\ensure ma th{ \m ath rm{re f } \lef t( {f } \r ig ht ) }}_ {xy} {\ e ns u r emat h{ \m athr m{u ni v}_{{ x},{ y}}  \left( {p}, {q}\ri g ht)} }) ^+  \enspa ce.$$

Note t ha t this isno t p ossibl e in Marti n-Löf Type Theory.

Inc ubicaltyp e the ory,  we can c ons tructa t e rm $\d elta$suchth at$ $ f : { \ m at hsf {P rop}}\righ t a rro w {\m at hsf{ Prop}},  x : {\mathsf{Prop } },y : {\mathsf{ Pro p}}, p  :  x. 1  \ r igh ta r row y .1, q : y.1 \ri ghtarrow x .1 \v dash \delt a  :(f  x).1 \ rightar row ( f  y).1$$  In fact,  we can g ofurt h e r a nd prove t hat equa lity of p r oposi t io ns is 
mid M_n_N \\
\text{Neutral_proof} & \delta_n &_::= &_p_\mid P_n^+_\mid_P_n^- \mid \delta_n_\epsilon \\
\text{Neutral path}_& P_n & ::=_& e \mid_P_n_\supset^* Q \mid Q \supset^* P_n \mid (P_n)_{MN} Q
\end{array}$$

Examples
========

We present two examples illustrating the_way_that proofs_and_paths_behave in PHOML. In each_case, we compare the example_with the_same construction performed in cubical type theory.

Functions Respect_Logical_Equivalence {#section:exampletwo}
-------------------------------------

As discussed_in the introduction, every function of type $\Omega \rightarrow_\Omega$ that can be constructed in_PHOML must respect_logical_equivalence._This fact can actually_be proved in PHOML, in the_following sense: there exists a proof_$\delta$ of $$f : \Omega \rightarrow \Omega,_x : \Omega, y : \Omega,_p : x \supset y,_q :_y \supset x \vdash \delta_: f x_\supset f_y$$ and a_proof of $f y \supset f_x$ in the_same context. Together, these can be_read_as a proof_of_’if_$f :_\Omega \rightarrow \Omega$_and_$x$ and_$y$_are logically equivalent, then $fx$ and_$fy$_are logically equivalent’.

Specifically, take $$\delta {\mathrel{\smash{\stackrel{\text{def}}{=}}}}({\ensuremath{\mathrm{ref} \left(_{f} \right)}}_{xy} {\ensuremath{\mathrm{univ}_{{x}, {y}}_\left({p},_{q} \right)}})^+ \enspace.$$

Note that_this is not possible in_Martin-Löf Type Theory.

In cubical type theory,_we can_construct a_term $\delta$ such that $$f : {\mathsf{Prop}}\rightarrow {\mathsf{Prop}}, x : {\mathsf{Prop}},_y : {\mathsf{Prop}}, p : x.1_\rightarrow y.1, q :_y.1 \rightarrow_x.1_\vdash \delta :_(f_x).1 \rightarrow_(f y).1$$ In fact, we can go_further and_prove that equality of propositions is