AI-torney
AI-torney

Proof of concept · Phase 1

Can marriage-validity law be deterministic?

This view tests the idea that the Philippine Family Code's marriage-validity rules can be written as a deterministic network of logic gates. Every fact is an input, every rule an AND / OR / NOT / EXCEPTION gate, and every result can be traced back gate by gate. It is the engine behind the guided check, shown with nothing hidden.

⚠ Not legal advice. Educational review-stage prototype using anonymous hypothetical facts. It is not legal advice, not a court finding, and does not certify anyone's civil status or capacity to remarry. Rules await validation by a licensed Philippine family-law lawyer; verify with counsel, the civil registry and the courts.Research inventory research-2026-10-25 · fact schema phase1-2026-10-25 · evaluated locally in this browser; nothing is stored or sent. Educational facts-based triage only; not a court finding, legal advice, or certificate of capacity to remarry.

Validity at celebration (preliminary)APPARENTLY VALID — Appears valid on the supplied hypothetical facts

Current status indicator (separate)NO TERMINATING EVENT INDICATED — No terminating event indicated in the supplied facts

The link stores your fact selections in the URL itself; nothing is uploaded.

Hypothetical facts

A scenario-testing panel, not a questionnaire. Change any fact; the diagram recalculates immediately.

Hypothetical, anonymous facts. Parties aged 24 and 26, Philippine wedding in 2025, valid licence, judge officiating, personal ceremony, no disqualifiers.

Legal regime routing
  • The marriage was celebrated on or after 3 August 1988 (Family Code effectivity).
  • The marriage was celebrated in the Philippines.
  • The marriage was celebrated under Muslim personal law or an Indigenous customary rite.
Legal capacity
  • Both parties were at least 18 years old on the wedding date.
  • The parties were related within a relationship prohibited by FC Arts. 37–38.
  • Either party had a previous marriage at the time of the wedding.
  • That previous marriage had legally ended before the wedding (death, final judgment of nullity/annulment, or judicially recognised foreign divorce).
  • The prior spouse had been absent four consecutive years (two in Art. 391 danger-of-death cases) with a well-founded belief of death.
  • A court declared the absent spouse presumptively dead before the new wedding (Art. 41).
  • Both parties to the subsequent (Art. 41) marriage acted in bad faith.
Consent and ceremony
  • The parties personally appeared before the officer and declared they take each other as spouses, with at least two witnesses of legal age.
  • Each party actually gave consent to the marriage (consent was not wholly absent).
  • A party was mistaken about the identity of the other contracting party.
Solemnizing officer
  • The solemnizing officer had legal authority on the wedding date (FC Art. 7; R.A. 7160 §§444, 455 for mayors).
  • Either or both parties believed in good faith that the officer had legal authority.
Licence and exemptions
  • A valid marriage licence was issued and the wedding took place within its 120-day validity (Art. 20).
  • Either party was at the point of death at the marriage (Arts. 27, 29).
  • A party's residence had no means of transport to appear before the civil registrar (Arts. 28, 29).
  • A point-of-death marriage was solemnized by a ship captain or airplane chief during a voyage or flight (Art. 31).
  • A point-of-death marriage was solemnized by a qualifying military commander in a zone of operation (Art. 32).
  • The parties actually lived together as spouses for at least five years immediately before the wedding (Art. 34).
  • Neither party had a legal impediment to marry each other during that cohabitation (Art. 34).
  • The parties executed the Art. 34 affidavit stating the cohabitation facts.
  • The solemnizing officer executed the sworn statement that they ascertained the parties' qualifications and found no impediment (Art. 34).
Other void grounds
  • This marriage followed a prior annulment/nullity judgment without the Art. 52 recording and delivery requirements being met (Art. 53).
  • A psychological-incapacity (Art. 36) concern has been raised about either party.
Voidable grounds (Art. 45)
  • A party was aged 18 to 20 on the wedding date.
  • The parental or guardian consent required for a party aged 18–20 was obtained (Art. 14).
  • A party was of unsound mind at the time of the wedding (Art. 45(2)).
  • Consent was obtained by fraud falling within one of the exclusive Art. 46 categories (Art. 45(3)).
  • Consent was obtained by force, intimidation or undue influence (Art. 45(4)).
  • A party was physically incapable of consummating the marriage, continuing and apparently incurable (Art. 45(5)).
  • A party had a serious and apparently incurable sexually transmissible disease at the wedding (Art. 45(6)).
  • The parties freely cohabited after the Art. 45 cause ceased or was discovered (possible ratification, Art. 45).
Documentary and procedural
  • A party was aged 21 to 25 when applying for the licence.
  • Parental advice was obtained for a party aged 21–25 (Art. 15).
  • Marriage counselling documentation was missing or the licence was issued early (Arts. 15–16).
  • No PSA marriage record was found.
  • A marriage document has a formal or processing irregularity (e.g. clerical error, late registration).
Court orders and current status
  • A final Philippine judgment declaring the marriage void has been reported.
  • A final Philippine judgment annulling the marriage has been reported.
  • A spouse has since died.
  • A decree of legal separation has been issued (Arts. 55–63).
  • A foreign divorce has been obtained.
  • A Philippine court has judicially recognised that foreign divorce (Art. 26(2)).

Logic-gate diagram

Legend
  • ActivatedCondition is met / rule fires (solid heavy border).
  • InactiveCondition is not met / rule does not fire (thin solid border).
  • UnknownNot supplied; never treated as no (dashed border).
  • DisputedContested; needs evidence or court resolution (dash-dot border, hatched).
  • Not appliedReference only on the selected legal route (dotted, faded).
  • Exception edge (suppresses the rule when established)

Gate types (badge colour)

  • AND
  • OR
  • NOT
  • EXCEPTION
  • ROUTE
  • RULE
  • RESULT

Branches (lane colour and node stripe)

  • 1. Legal-regime routing
  • 2. Legal capacity
  • 3. Consent and ceremony
  • 4. Marriage licence and statutory exemptions
  • 5. Authorized solemnizing officer
  • 6. Other void grounds
  • 7. Essential and formal requisites
  • 8. Voidable grounds
  • 9. Documentary and procedural irregularities
  • 10. Special-law or foreign-marriage review
  • 11. Validity at celebration vs current status
Zoom

Tab into the diagram, then use arrow keys to move between gates and Enter to inspect. Scroll or drag horizontally on small screens.

On/after 3 Aug 1988✓ YESFACT: On/after 3 Aug 1988, state ActivatedCelebrated in PH✓ YESFACT: Celebrated in PH, state ActivatedMuslim / IP rite✕ NOFACT: Muslim / IP rite, state InactiveBoth 18+✓ YESFACT: Both 18+, state ActivatedProhibited relation✕ NOFACT: Prohibited relation, state InactivePrior marriage✕ NOFACT: Prior marriage, state InactivePrior bond legally …✕ NOFACT: Prior bond legally ended, state InactiveAbsent spouse 4 yrs✕ NOFACT: Absent spouse 4 yrs, state InactivePresumptive-death o…✕ NOFACT: Presumptive-death order, state InactiveBoth in bad faith (…✕ NOFACT: Both in bad faith (Art. 44), state InactivePersonal ceremony✓ YESFACT: Personal ceremony, state ActivatedConsent existed✓ YESFACT: Consent existed, state ActivatedMistaken identity✕ NOFACT: Mistaken identity, state InactiveOfficer authorised✓ YESFACT: Officer authorised, state ActivatedGood-faith belief✓ YESFACT: Good-faith belief, state ActivatedValid licence✓ YESFACT: Valid licence, state ActivatedPoint of death✕ NOFACT: Point of death, state InactiveNo transport to reg…✕ NOFACT: No transport to registrar, state InactiveShip/aircraft emerg…✕ NOFACT: Ship/aircraft emergency, state InactiveMilitary emergency✕ NOFACT: Military emergency, state InactiveActual 5-yr cohabit…✕ NOFACT: Actual 5-yr cohabitation, state InactiveNo impediment in 5 …? UNKFACT: No impediment in 5 yrs, state UnknownJoint affidavit✕ NOFACT: Joint affidavit, state InactiveOfficer's sworn sta…✕ NOFACT: Officer's sworn statement, state InactiveArt. 52/53 not comp…✕ NOFACT: Art. 52/53 not complied, state InactiveArt. 36 concern rai…✕ NOFACT: Art. 36 concern raised, state InactiveParty aged 18–20✕ NOFACT: Party aged 18–20, state InactiveParental consent? UNKFACT: Parental consent, state UnknownUnsound mind✕ NOFACT: Unsound mind, state InactiveArt. 46 fraud✕ NOFACT: Art. 46 fraud, state InactiveForce / intimidation✕ NOFACT: Force / intimidation, state InactiveIncapacity to consu…✕ NOFACT: Incapacity to consummate, state InactiveSerious incurable S…✕ NOFACT: Serious incurable STD, state InactiveLater free cohabita…✕ NOFACT: Later free cohabitation, state InactiveParty aged 21–25✓ YESFACT: Party aged 21–25, state ActivatedParental advice✓ YESFACT: Parental advice, state ActivatedCounselling / early…✕ NOFACT: Counselling / early issue, state InactivePSA record not found✕ NOFACT: PSA record not found, state InactiveDocument irregulari…✕ NOFACT: Document irregularity, state InactiveFinal nullity judgm…✕ NOFACT: Final nullity judgment, state InactiveFinal annulment jud…✕ NOFACT: Final annulment judgment, state InactiveSpouse deceased✕ NOFACT: Spouse deceased, state InactiveLegal separation✕ NOFACT: Legal separation, state InactiveForeign divorce✕ NOFACT: Foreign divorce, state InactivePH recognition of d…✕ NOFACT: PH recognition of divorce, state InactiveNOT✕ NOPre-1988 regimeNOT: Pre-1988 regime, state InactiveNOT✕ NOCelebrated abroadNOT: Celebrated abroad, state InactiveRULE✕ NOSpecial personal lawRULE: Special personal law, state InactiveNOT✓ YESNot special-law riteNOT: Not special-law rite, state ActivatedAND✓ YESDomestic Family CodeAND: Domestic Family Code, state ActivatedROUTE✓ YESDOMESTICROUTE: Regime router, state Activated, outcome DOMESTICNOTV01✕ NOUnder 18NOT V01: Under 18, state InactiveRULEV02✕ NOProhibited relationRULE V02: Prohibited relation, state InactiveAND✕ NOArt. 41 exceptionAND: Art. 41 exception, state InactiveOR✕ NOPrior bond clearedOR: Prior bond cleared, state InactiveEXCEPTIONV03✕ NOSubsisting prior marriageEXCEPTION V03: Subsisting prior marriage, state InactiveANDV09✕ NOArt. 44 bad faithAND V09: Art. 44 bad faith, state InactiveNOTV04a✕ NONo ceremonyNOT V04a: No ceremony, state InactiveNOTV04b✕ NONo consent at allNOT V04b: No consent at all, state InactiveRULEV07✕ NOMistaken identityRULE V07: Mistaken identity, state InactiveNOT✕ NONo valid licenceNOT: No valid licence, state InactiveRULEL27✕ NOPoint of deathRULE L27: Point of death, state InactiveRULEL28✕ NONo transportRULE L28: No transport, state InactiveRULEL31✕ NOShip / aircraftRULE L31: Ship / aircraft, state InactiveRULEL32✕ NOMilitary zoneRULE L32: Military zone, state InactiveRULEL33✕ NOCustomary riteRULE L33: Customary rite, state InactiveANDL34✕ NOArt. 34 cohabitationAND L34: Art. 34 cohabitation, state InactiveOR✕ NOAny exemptionOR: Any exemption, state InactiveEXCEPTIONV06✕ NONo licence / exemptionEXCEPTION V06: No licence / exemption, state InactiveNOT✕ NOOfficer unauthorisedNOT: Officer unauthorised, state InactiveEXCEPTIONV05✕ NOUnauthorised officerEXCEPTION V05: Unauthorised officer, state InactiveRULEV08✕ NOArt. 53 breachRULE V08: Art. 53 breach, state InactiveRULEV10✕ NOArt. 36 (court only)RULE V10: Art. 36 (court only), state InactiveOR✕ NOEssential defectOR: Essential defect, state InactiveNOT✓ YESEssential requisitesNOT: Essential requisites, state ActivatedOR✕ NOFormal requisite absentOR: Formal requisite absent, state InactiveNOT✓ YESFormal requisitesNOT: Formal requisites, state ActivatedOR✕ NOAny void groundOR: Any void ground, state InactiveNOT? UNKNo parental consentNOT: No parental consent, state UnknownANDA45_1✕ NO18–20, no consentAND A45_1: 18–20, no consent, state InactiveRULEA45_2✕ NOUnsound mindRULE A45_2: Unsound mind, state InactiveRULEA45_3✕ NOArt. 46 fraudRULE A45_3: Art. 46 fraud, state InactiveRULEA45_4✕ NOForce / intimidationRULE A45_4: Force / intimidation, state InactiveRULEA45_5✕ NOCannot consummateRULE A45_5: Cannot consummate, state InactiveRULEA45_6✕ NOSerious STDRULE A45_6: Serious STD, state InactiveOR✕ NOAny Art. 45 groundOR: Any Art. 45 ground, state InactiveAND✕ NORatification reviewAND: Ratification review, state InactiveNOT✕ NONo parental adviceNOT: No parental advice, state InactiveANDI01✕ NO21–25, no adviceAND I01: 21–25, no advice, state InactiveRULEI02✕ NOCounselling / timingRULE I02: Counselling / timing, state InactiveRULEI03✕ NONo PSA recordRULE I03: No PSA record, state InactiveRULEI04✕ NODocument irregularityRULE I04: Document irregularity, state InactiveOR✕ NOArt. 26(1) exceptionsOR: Art. 26(1) exceptions, state InactiveOR✕ NOFinal PH judgmentOR: Final PH judgment, state InactiveRULEI05✕ NOLegal separation onlyRULE I05: Legal separation only, state InactiveAND✕ NODivorce recognisedAND: Divorce recognised, state InactiveEXCEPTION✕ NODivorce unrecognisedEXCEPTION: Divorce unrecognised, state InactiveOR✕ NOTerminating eventOR: Terminating event, state InactiveRESULT✓ YESAPPARENTLY VALIDRESULT: Validity at celebration, state Activated, outcome APPARENTLY VALIDRESULT✓ YESNO TERMINATING EVENT INDICATEDRESULT: Current status, state Activated, outcome NO TERMINATING EVENT INDICATED

Rule inspector

ROUTE · node ROUTE · rule ROUTE · Legal-regime routing

Legal-regime router

Activated

Legal-regime router

What a “yes” means
Selects the governing regime before any validity rule is applied.
Why it has this state
Router inputs: Domestic Family Code = yes; Pre-1988 regime = no; Celebrated abroad = no; Special personal law = no.
Legal basis
Research spec §1; FC Art. 26; MC 85; P.D. 1083
Provenance
Structural gate added for the diagram; not in the research inventory.

Inputs

Feeds into

Explainable results

Conditional, educational classifications only. No result here is a judicial determination.

1 · Validity at celebration

Appears valid on the supplied hypothetical factsAPPARENTLY_VALID · preliminary, educational

  • Every critical gate resolved without a void or voidable ground on the supplied hypothetical facts. This is a presumption-based educational reading, not a certification.

2 · Current marital-status indicator

No terminating event indicated in the supplied factsNO_TERMINATING_EVENT_INDICATED · preliminary, educational

  • No death, final judgment, recognised divorce or legal separation is indicated. If the marriage is valid, the bond is presumed to subsist.
  • Capacity to remarry is not certified by this tool.

Route: DOMESTIC. Celebrated in the Philippines on or after 3 August 1988, not under Muslim or Indigenous personal law: ordinary Family Code gates apply.

Legal review recommended

  • Educational prototype: rules and classifications await validation by a Philippine family-law lawyer.

Activated rules (0)

No rule is activated on the current facts.

Rules suppressed by exceptions (0)

No exception is currently suppressing a rule.

Unresolved facts affecting the result (0)

None. 2 other unknown/disputed fact(s) do not currently change any gate.

Evidence uncertainties and specialist-review warnings (0)

No specific warning on the current facts.

Relevant Philippine legal provisions and citations (1)

Educational review-stage prototype using anonymous hypothetical facts. It is not legal advice, not a court finding, and does not certify anyone's civil status or capacity to remarry. Rules await validation by a licensed Philippine family-law lawyer; verify with counsel, the civil registry and the courts.

Part of AI-torney PH. Runs entirely in your browser; no facts you select are stored or sent anywhere. Original snapshot: branch claude/poc-logic-gates-v1.